-
Notifications
You must be signed in to change notification settings - Fork 269
/
weeman.py
executable file
·41 lines (35 loc) · 1.09 KB
/
weeman.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
#!/usr/bin/env python2
##
## weeman - http server for phishing.
##
## Written by Hypsurus <[email protected]>
##
import sys
from core.misc import printt
try:
from bs4 import BeautifulSoup as bs
except ImportError:
printt(1, "Please install beautifulsoup 4 to continue ...")
def tests_pyver():
if sys.version[:3] == "2.7" or "2" in sys.version[:3]:
pass # All good
elif "3" in sys.version[:3]:
printt(1,"Weeman has no support for Python 3.")
else:
printt(1, "Your Python version is very old ..")
def tests_platform():
if "linux" in sys.platform:
printt(3, "Running Weeman on linux ... (All good)")
elif "darwin" in sys.platform:
printt(3, "Running Weeman on \'Mac\' (Not tested)")
elif "win" in sys.platform:
printt(3, "Running Weeman on \'Windows\' (Not tested)")
else:
printt(3, "If \'Weeman\' runs sucsessfuly on your platform %s\nPlease let me (@Hypsurus) know!" %sys.platform)
def main():
tests_pyver()
tests_platform()
from core.shell import shell
shell()
if __name__ == '__main__':
main()