forked from FirmanKurniawan/Python-Projects
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwp_checker.py
More file actions
46 lines (40 loc) · 1.44 KB
/
wp_checker.py
File metadata and controls
46 lines (40 loc) · 1.44 KB
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
#!/usr/bin/python
import os
import string
import random
from multiprocessing.dummy import Pool as ThreadPool
from multiprocessing import Pool
import requests
from time import time as timer
requests.packages.urllib3.disable_warnings()
def banner():
print("Zekkel ganteng")
def scanner(webnya):
if "://" not in webnya:
target = "http://"+webnya
else:
target = webnya
exploiter = "/wp-includes/"
exploiter2 = "wp-content"
try:
headers={"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:76.0) Gecko/20100101 Firefox/76.0"}
request = requests.get(target, verify=False, timeout=5, headers=headers).text
if exploiter2 in request:
print("{} -> WordPress" .format(target))
open('result_wp.txt', 'a').write(target+"\n")
elif exploiter in request:
print("{} -> WordPress" .format(target))
open('result_wp.txt', 'a').write(target+"\n")
else:
print("{} -> Unknown CMS" .format(target))
except Exception as e:
print("{} -> Unknown Error : {}" .format(target,e))
if __name__ == '__main__':
os.system('cls' if os.name == 'nt' else 'clear')
banner()
mmc = input(' LIST : ')
threadny = input(' Thread : ')
a = open(mmc, 'r').read().splitlines()
ThreadPool = Pool(int(threadny))
Threads = ThreadPool.map(scanner, a)
#Hacktoberfest-indonesia-2021