Skip to content

Commit

Permalink
ADD : CLOUDFLARE DUMP IP'S AND PROXIES REQUESTS.
Browse files Browse the repository at this point in the history
  • Loading branch information
anouarbensaad committed Mar 18, 2022
1 parent 5c17a8d commit f3ec7b6
Show file tree
Hide file tree
Showing 4 changed files with 97 additions and 7 deletions.
25 changes: 20 additions & 5 deletions db/vulners.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,23 @@
{
"base" : {
"host": "synk.io",
"url": "https://snyk.io/",
"endpoint": "website-scanner/",
"scanner": "wp-admin/admin-ajax.php"
"base": {
"statMapper": {
"host": "synk.io",
"url": "https://snyk.io/",
"endpoint": "website-scanner/",
"scanner": "wp-admin/admin-ajax.php"
},
"cloudFlare": {
"host": "search.censys.io",
"url": "https://search.censys.io",
"endpoint": "/_search",
"scanner": null
},
"proxies": {
"host": "free-proxy-list.net",
"url": "https://free-proxy-list.net/",
"endpoint": null,
"scanner": null
}
}
}

53 changes: 53 additions & 0 deletions modules/cloudf_dump.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
import requests
import json
import re
import sys
from regex import CF_PARSE_SUB_AND_DOMAIN,CF_IP
from gen_proxies import proxies_chain
end = '\033[1;0m'
red = '\033[1;91m'

f = open('../db/vulners.json')
DB_LOAD = json.load(f)
URL = DB_LOAD["base"]["cloudFlare"]["url"]+DB_LOAD["base"]["cloudFlare"]["endpoint"]

def parse_sub_and_domain(data):
matched = re.findall(CF_PARSE_SUB_AND_DOMAIN,data)
try:
return matched
except Exception as err:
return None

def parse_ip(data):
matched = re.findall(CF_IP,data)
try:
return matched
except Exception as err:
return None

def cloud_grap(url,target):
success = False
while not success:
for p in proxies_chain():
proxy = {
"https": p
}
params = {
"resource":"hosts",
"sort":"RELEVANCE",
"per_page":"25",
"virtual_hosts":"EXCLUDE",
"q":url
}
try:
res = requests.get(url,params=params,timeout=4,proxies=proxy)
if parse_ip(res.text) is not None:
print(parse_ip(res.text))
if parse_sub_and_domain(res.text) is not None:
success = True
print(parse_sub_and_domain(res.text))
break
except Exception as error:
print("%sProxy FAIL: %s%s"%(red,p,end))

# cloud_grap(URL,"")
22 changes: 22 additions & 0 deletions modules/proxy_masquerade.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import requests
import re
import json
from regex import PROXY_PARSE

f = open('../db/vulners.json')
DB_LOAD = json.load(f)
URL = DB_LOAD["base"]["proxies"]["url"]

def get_proxies():
headers = {
"User-Agent": "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:98.0) Gecko/20100101 Firefox/98.0"
}
res = requests.get(URL,headers=headers)
return res.text

def proxies_chain():
proxies = []
matched = re.findall(PROXY_PARSE,get_proxies())
for m in matched:
proxies.append(m[0]+":"+m[1])
return proxies
4 changes: 2 additions & 2 deletions wsvuls.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@
f = open('./db/vulners.json')
DB_LOAD = json.load(f)

URL = DB_LOAD["base"]["url"]+DB_LOAD["base"]["endpoint"]
URL_SCANNER = DB_LOAD["base"]["url"]+DB_LOAD["base"]["scanner"]
URL = DB_LOAD["base"]["statMapper"]["url"]+DB_LOAD["base"]["statMapper"]["endpoint"]
URL_SCANNER = DB_LOAD["base"]["statMapper"]["url"]+DB_LOAD["base"]["statMapper"]["scanner"]

def generate_phpsession():
nosalted="anouarbensaad"
Expand Down

0 comments on commit f3ec7b6

Please sign in to comment.