Web Hacking & War Games Discuss f.ex. SQL injection and legal hacking here.

InterN0T Affiliates:
EvilZonepy1337

SirCapsAlot.NET

Reply
 
LinkBack Thread Tools Display Modes
  #1  
Old 8th February 2010, 01:28
 
Join Date: Feb 2010
Posts: 3
Rep Power: 1
Reputation: 1
Nancio is an unknown memory address at this point
Question on SQL Injection and Absinthe

Hello

I want to try some blind SQL injections with Absinthe.
I have already tested manually that my target site is valnurable to sql injections, but in the manual of Absinthe it says that the target URL should also contain the specific port.

Is there any program / scanner with which i can find out the port of a website?

And furthermore does it matter whether I use socks or proxies for my own security. Should I prefer socks like socks5 over proxies? I can specify both in Absinthe's options.

Another thing that surprised me was when I tested another site for sql injection valnurability, I added a ' to &id=' and content on the page disappeared.
But when I tried to do a next test with "and 1=1" and "and 1=2" nothing happened no changes at all, why is that?

I would be grateful for any help.
Reply With Quote
  #2  
Old 8th February 2010, 10:45
MaXe's Avatar
The BOFH
 
Join Date: Jun 2008
Location: Sweden - Ljusdal
Posts: 2,718
Blog Entries: 31
Rep Power: 10
Reputation: 146
MaXe will become a Token soonMaXe will become a Token soon
Re: Question on SQL Injection and Absinthe

Quote:
Originally Posted by Nancio View Post
Hello

I want to try some blind SQL injections with Absinthe.
I have already tested manually that my target site is valnurable to sql injections, but in the manual of Absinthe it says that the target URL should also contain the specific port.
The target port for HTTP is (almost) always port 80. For HTTPS it's port 443.

Absinthe is a cool program though I haven't really used it that much, I
prefer Pangolin (even the free edition is cool though Pro is a little better).

You should try it out, google this: Pangolin SQL Injection Tool

Quote:
Originally Posted by Nancio View Post
Is there any program / scanner with which i can find out the port of a website?
NMAP is a Network Mapper / port scanner. However you don't need a program
or scanner in order to find the port. Here's a list of port numbers:
http://www.iana.org/assignments/port-numbers (eventually you'll remember the most common).

Quote:
Originally Posted by Nancio View Post
And furthermore does it matter whether I use socks or proxies for my own security. Should I prefer socks like socks5 over proxies? I can specify both in Absinthe's options.
That's all up to you, but keep in mind that even though it is possible to
send data through socks5 and socks4 proxies then you should use an
anonymous http proxy in my opinion.

Personally I prefer tunneling data through SSH or VPN.

Quote:
Originally Posted by Nancio View Post
Another thing that surprised me was when I tested another site for sql injection valnurability, I added a ' to &id=' and content on the page disappeared.
But when I tried to do a next test with "and 1=1" and "and 1=2" nothing happened no changes at all, why is that?
That is because no data is retrieved via the SQL-query

The query could have looked like:
Code:
SELECT * FROM articles WHERE id = '$id';
In your case if the site is secured properly the query would've looked like:
Example 1:
Code:
SELECT * FROM articles WHERE id = '\'';
Example 2:
Code:
SELECT * FROM articles WHERE id = '\" and 1=1';
Example 3:
Code:
SELECT * FROM articles WHERE id = '\" and 1=2';
When you don't know the code, you must know that there are different
ways to attack web applications. In some cases you will need ' , in others "
and in the third way you may need a blank space before the AND operator.

The reason why all of the above failed is because the query was incorrect.

Quote:
Originally Posted by Nancio View Post
I would be grateful for any help.
No problem
__________________
Code:
                                ____/____\_________________
                      \|/      | OMG IT'S TEH LEET STORY!! |
    /*\         /\    -*-      |______  ________/\_________|
   // \\       /  \   /|\        /    \/    \  /  \
  /// \\\     /    \            /            \/    \
   // \\     /      \          /      \o/     \     \
    | |     /        \        /        |       \     \
 ___| |____/          \______/________/ \_______\_____\_________
          /     o      \
               #"=-
               /\
 __________________________________________________________
    On a mission, to find the lost member of Teh Unkwon.. 

Last edited by MaXe; 8th February 2010 at 10:47.
Reply With Quote
  #3  
Old 8th February 2010, 12:23
 
Join Date: Sep 2009
Posts: 78
Rep Power: 2
Reputation: 1
ccoder is an unknown memory address at this point
Re: Question on SQL Injection and Absinthe

MaXe , pangolin isn't infected ? i have heared all version all backdoored by coder .
__________________
I love InterN0T
Reply With Quote
  #4  
Old 8th February 2010, 12:33
MaXe's Avatar
The BOFH
 
Join Date: Jun 2008
Location: Sweden - Ljusdal
Posts: 2,718
Blog Entries: 31
Rep Power: 10
Reputation: 146
MaXe will become a Token soonMaXe will become a Token soon
Re: Question on SQL Injection and Absinthe

Quote:
Originally Posted by ccoder View Post
MaXe , pangolin isn't infected ? i have heared all version all backdoored by coder .
They probably are since they originate from China, however I don't really care
since I used it on an installation where there was no secret information at all.

Just use it in a VM, the program is doing it's job very well
__________________
Code:
                                ____/____\_________________
                      \|/      | OMG IT'S TEH LEET STORY!! |
    /*\         /\    -*-      |______  ________/\_________|
   // \\       /  \   /|\        /    \/    \  /  \
  /// \\\     /    \            /            \/    \
   // \\     /      \          /      \o/     \     \
    | |     /        \        /        |       \     \
 ___| |____/          \______/________/ \_______\_____\_________
          /     o      \
               #"=-
               /\
 __________________________________________________________
    On a mission, to find the lost member of Teh Unkwon.. 
Reply With Quote
  #5  
Old 9th February 2010, 16:47
 
Join Date: Feb 2010
Posts: 3
Rep Power: 1
Reputation: 1
Nancio is an unknown memory address at this point
Re: Question on SQL Injection and Absinthe

Thanks a lot MaXe for taking the time and answering all my questions that detailled.

I will try to use some of the sql hints you suggested.
Reply With Quote
  #6  
Old 9th February 2010, 17:26
MaXe's Avatar
The BOFH
 
Join Date: Jun 2008
Location: Sweden - Ljusdal
Posts: 2,718
Blog Entries: 31
Rep Power: 10
Reputation: 146
MaXe will become a Token soonMaXe will become a Token soon
Re: Question on SQL Injection and Absinthe

No problem, it was an easy question for me and I had fun giving a good reply

Thus someone else might see this in the future and learn as well.
__________________
Code:
                                ____/____\_________________
                      \|/      | OMG IT'S TEH LEET STORY!! |
    /*\         /\    -*-      |______  ________/\_________|
   // \\       /  \   /|\        /    \/    \  /  \
  /// \\\     /    \            /            \/    \
   // \\     /      \          /      \o/     \     \
    | |     /        \        /        |       \     \
 ___| |____/          \______/________/ \_______\_____\_________
          /     o      \
               #"=-
               /\
 __________________________________________________________
    On a mission, to find the lost member of Teh Unkwon.. 
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Xss hacking question. VipVince General Hacking Discussions 1 Yesterday 00:42
Question About XOR usage ccoder General Security Discussions 5 1st November 2009 18:37
Question, Collage hestas General Hacking Discussions 2 11th May 2009 10:47
Question macd3v Java // Ruby 2 22nd December 2008 14:07
Question: hestas Perl // Python 6 18th November 2008 02:13


All times are GMT +2. The time now is 23:35.
Copyright ©2007 - Forever, InterN0T & Teh Unkwon

Hosted by 1and1