-
-
Notifications
You must be signed in to change notification settings - Fork 23
/
Copy pathsettings.py
46 lines (40 loc) · 1.63 KB
/
settings.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
import os
import datetime
import requests
import json
from core.bssidFinder import bssidFinder
from core.employee_lookup import employee_lookup
from core.google import google
from core.hashDecrypt import hashdecrypt
from core.ipFinder import ipFinder
from core.mailToIP import mailToIP
from core.profilerFunc import profilerFunc
from core.searchAdresse import searchAdresse
from core.searchTwitter import searchTwitter
from core.searchPersonne import searchPersonne
from core.searchInstagram import searchInstagram
from core.searchUserName import searchUserName
from core.searchNumber import searchNumber
from core.searchEmail import SearchEmail
from core.Profiler import Profiler
from core.facebookStalk import facebookStalk
# Function to initialize the variables
def init():
global version
global monip, monpays, codemonpays, pathDatabase
global bssidFinder, employee_lookup, google, hashdecrypt, ipFinder, mailToIP, profilerFunc
global searchPersonne, SearchEmail, searchInstagram, searchTwitter, searchNumber, searchAdresse, searchUserName, facebookStalk
global Profiler
version = '6.0.2'
# Get the path to the database
pathDatabase = os.path.dirname(os.path.abspath(__file__)) + "/Watched"
# Get the public IP address
monip = requests.get("https://api.ipify.org/").text
# Get country information based on the IP address
monpays = requests.get("http://ip-api.com/json/" + monip).text
value = json.loads(monpays)
monpays = value['country']
codemonpays = value['countryCode']
# Create the "Watched" directory if it doesn't exist
if not os.path.exists(pathDatabase):
os.mkdir(pathDatabase)