Cartus_C Posted September 29, 2007 Report Posted September 29, 2007 | Hacking with Shells |-----------------------Written by entr0py-= www.securitybay.org =-Introduction-------------------I am very sure that many of you must have heard about variousattackers who deploy web shells to deface and disfigure websites.But, do you actually know what are web shells and how to use themin order to deface websites? Well, the main motive of this tutorialis to make you all aware of the various ways to deface websites usingweb shells. I know some of you may be thinking that I am just providingscript kiddiesh information, but let me tell you that the number ofqueries I have received on this topic cannot be counted. Thats why I amdoing full justice to all the wannabe-h4x0rs and script kiddies who arecraving to learn about these web shells and attacks associated with it.So, just sit back and enjoy...Web Shells-------------------A web shell is a script programmed in web application programminglanguages like ASP, PHP etc. If the shell is executed on a particularweb server, the attacker can generate capricious commands. The shellsallows the attacker to delete, upload, replicate, create and alter files.Web shells are popularly used by script kiddies, because its somewhateasy to execute on a specific web server. Mostly, web shells are executedby manipulating the URL string. You dont expect the script kiddies tomould an altered URL string! So, that's why they find RFI (Remote FileInclusion) vulnerabilities to gather the obfuscated URL string thatenables them to upload the web shell on a web server remotely.Hacking with Shells--------------------In the previous section, I have briefly explained the web shells. Now, inthis section, I am going to elucidate the technique to use such web shellsto deface websites. So, first and foremost, you need to have a web shell.The commonly used web shells are c99, c66, r57 etc. Obtain a web shell fromwww.hacktivist.net or you can search Google for c99 shell. After, obtaininga web shell, search for web space. Actually, you require web space to uploadthe web shell. You can get web space from AOL Hometown or Free Web. Afteracquiring a web space, upload your web shell as .txt (Text file). Now, you arepanoplied with web shell. Next, you need to find Remote File Inclusion (RFI)vulnerabilities. You can get them from Security Bay Exploit Den or milw0rm orSecurity Focus or Packetstorm Security. In the RFI disclosure you will findObfuscated URL string that enables you to upload web shells remotely. An exampleof a malformed URL would be www.anysite.com/nameofthecompany/somephp=evilscript.Once you obtain the malformed URL, search for a website that is vulnerable tothe specific RFI. You can use Google to find websites that equates with thevulnerability. Now, that you have a vulnerable website and web shell gear, whatwould you do next. Just substitute the malformed URL string with the informationyou have gathered and then execute it, in order to connect to the web server remotelyvia web shells. If everything goes perfectly, then you will be redirected to theweb shell. In the web shell, you will get features and options to alter the webserver settings!I need a live description--------------------------To make your work easier, let me give you an elucidated explanation of web shells. Inthis section, I am actually going to show you how to deface a website using shells.Please note that the site have been concealed for security reasons.Say, I got a c99 shell, uploaded it in www.entr0py.securitybay.org. I also obtaineda Remote File Inclusion (RFI) vulnerability of a popular forum application. I also searchedGoogle for vulnerable websites. So, finally got all the things ready, like web shell, RFIand vulnerable website. Next off, I execute the obfuscated URL string and find myselfin the web shell data screen. I wonder what should I do to please the readers. I suddenlyfeel that I should get administrator privileges in the forum, which is vulnerable to theRFI vulnerability. So, I quickly find the forum config.php file and acquire the databaseusername and password. Now, in the c99 web shell I shoot the SQL Manager and provide thedatabase username and password. This redirects me to the SQL information of the forum. Inthe SQL information tables, I find the user table. There, I search for my username and alterit in such a manner that I get to sit in the administrator group. So, it's clear that onceI get to be in the administrator group, I am myself the administrator of the forum! Piece ofcake, ain't it?Conclusion--------------Whew, justice done to all those who mass-mailed me for this tutorial. Though, there are manyother techniques associated with web shells. But, I guess you can figure out those yourselves.I will get back to you as soon as possible. And, one more thing, these techniques are deployed by script kiddies, so I recommend you to try out high-end and sophisticated techniques like XSS or script injections to hack websites, not that I support defacement, just an advice. So, that pretty much concludes the tutorial on Hacking with Shells by Yours Truly. So, until next time ...Peace Out ... Quote
zbeng Posted September 30, 2007 Report Posted September 30, 2007 BA NENE AICI E ROMANA ALEA IN ENGLEZA SE POSTEAZA MAI JOSDECI MARE ATENTIE UNDE POSTEZI Quote