Minggu, 24 Juli 2011

Automatic Sql injection and Database Take Over tool

Hey... today i will show you how to generate a simple backdoor using sql injection technique by using sqlmap tool.
once I was found a web application that vulnerable of sql injection attack. the target url like this "192.168.56.2/coba/index.php?id=1" a simple testing I tried to insert character " ' " on the parameter id the result url like this 192.168.56.2/coba/index.php?id='1 it has a error like below :
"the result cant be found because,..You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '\'1' at line 1" it means that this target is vulnerable and possible to be exploit by using sqlmap.
sqlmap is one of several tools that using for sql injection attack..
open the sqlmap then I tried write this syntax :

Selasa, 19 Juli 2011

"Permission Denied" are you root??

Today I want to show you how to get root access trough web application flaws on the web server.
Once I have to find out the vulnerable of the web application for exploit..
target for today is 192.xxx.xx.101 /xxx. This web, support for vulnerable at the upload image feature. And it can be exploit by use temper data tool, like burpsuit/
before start upload setting your proxy on your browser to intercept the POST data from your browser client use burpsuit.
Now, this web application only can uploading an image or jpg extension, so I renamed my shell backdoor to be jpg extension then I click Upload. The file not exactly to POST to server but it can be edit with burpsuit tool. Like this

The Difference Betwen Socks4 and Socks5

Socks is a standard protocol that use to handle network traffic for TCP trough proxy server. SOCKS proxy servers are more flexible and do not seize you. While HTTP proxy servers could hide your IP only when you are browsing a web page, SOCKS proxy servers could help you keep your information private (your IP) even when you are using such programs like ICQ, Skype, MSN or even email clients like Outlook, TheBat, Thhunderbird.
there are two implementation from protocol SOCKS, here are SOCKS4 and SOCKS5.

the main difference between them are :

SOCKS4:
is a simple extension to SOCKS 4 protocol that allows a client that cannot resolve the destination host's domain name to specify it.
The client should set the first three bytes of DSTIP to NULL and the last byte to a non-zero value. (This corresponds to IP address 0.0.0.x, with x nonzero, an inadmissible destination address and thus should never occur if the client can resolve the domain name.) Following the NULL byte terminating USERID, the client must send the destination domain name and terminate it with another NULL byte. This is used for both "connect" and "bind" requests.

SOCKS5 :
provide additional security trough authentication.
socks5 is compatible with most of TCP application.
provide an base firewall for authenticate input and output packet, and
provide Network Address Translation (NAT).
support for UDP and IPv6.
Client connects and sends a greeting which includes a list of authentication methods supported.
Server responds similar to SOCKS 4.Another advantage of SOCSK5 is various authentication mechanisms

thanks...