-
Notifications
You must be signed in to change notification settings - Fork 11
/
PPyBass.py
57 lines (48 loc) · 1.28 KB
/
PPyBass.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
54
55
56
57
#!/usr/bin/python
import urllib2
class bcolors:
OKGREEN = '\033[92m'
WARNING = '\033[93m'
FAIL = '\033[91m'
ENDC = '\033[0m'
def banner():
os.system('clear')
file1 = open('banner', 'r')
print(' ')
print bcolors.OKGREEN + file1.read() + bcolors.ENDC
file1.close()
def fblg():
os.system('clear')
print bcolors.OKGREEN + '''
$$$$$$$$$$$$$$$$$$$$$$
$$$$$$$$$$$$$_____$$$$
$$$$$$$$$$$$__$$$$$$$$
$$$$$$$$$$$$__$$$$$$$$
$$$$$$$$$$$$__$$$$$$$$
$$$$$$$$$________$$$$$
$$$$$$$$$$$$__$$$$$$$$
$$$$$$$$$$$$__$$$$$$$$
$$$$$$$$$$$$__$$$$$$$$
$$$$$$$$$$$$__$$$$$$$$
$$$$$$$$$$$$$$$$$$$$$$
''' + bcolors.ENDC
try:
try:
import requests
import re
import os
except ImportError:
print ('''There was an error
Please install the requirements:
pip install -r requirements.txt''')
banner()
url = raw_input(bcolors.WARNING + "[i]-Enter the Profile URL: " + bcolors.ENDC)
idre = re.compile('"entity_id":"([0-9]+)"')
page = requests.get(url)
fblg()
id = str(idre.findall(page.content))
idp = id[2:-2]
print bcolors.OKGREEN + "[+]-The Profile ID is: " + bcolors.ENDC + idp
print bcolors.OKGREEN + "[+]-The Profile Picture: " + bcolors.ENDC + "https://graph.facebook.com/" + idp + "/picture?width=800"
except KeyboardInterrupt:
print(bcolors.FAIL + '\nCancelled' + bcolors.ENDC)