clinton 0.0.1__tar.gz → 0.0.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {clinton-0.0.1 → clinton-0.0.2}/Clinton/__init__.py +1 -1
- {clinton-0.0.1 → clinton-0.0.2}/Clinton/functions/function01.py +10 -6
- clinton-0.0.2/Clinton/scripts/__init__.py +3 -0
- clinton-0.0.2/Clinton/scripts/script01.py +4 -0
- clinton-0.0.2/Clinton/scripts/script02.py +32 -0
- clinton-0.0.2/Clinton/scripts/script05.py +14 -0
- {clinton-0.0.1/clinton.egg-info → clinton-0.0.2}/PKG-INFO +1 -1
- {clinton-0.0.1 → clinton-0.0.2/clinton.egg-info}/PKG-INFO +1 -1
- {clinton-0.0.1 → clinton-0.0.2}/clinton.egg-info/SOURCES.txt +3 -0
- clinton-0.0.2/clinton.egg-info/dependency_links.txt +1 -0
- clinton-0.0.1/Clinton/scripts/__init__.py +0 -1
- clinton-0.0.1/Clinton/scripts/script01.py +0 -4
- {clinton-0.0.1 → clinton-0.0.2}/Clinton/functions/__init__.py +0 -0
- /clinton-0.0.1/clinton.egg-info/dependency_links.txt → /clinton-0.0.2/Clinton/functions/function02.py +0 -0
- {clinton-0.0.1 → clinton-0.0.2}/LICENSE +0 -0
- {clinton-0.0.1 → clinton-0.0.2}/README.md +0 -0
- {clinton-0.0.1 → clinton-0.0.2}/clinton.egg-info/requires.txt +0 -0
- {clinton-0.0.1 → clinton-0.0.2}/clinton.egg-info/top_level.txt +0 -0
- {clinton-0.0.1 → clinton-0.0.2}/setup.cfg +0 -0
- {clinton-0.0.1 → clinton-0.0.2}/setup.py +0 -0
|
@@ -1,20 +1,24 @@
|
|
|
1
|
+
import json
|
|
1
2
|
import socket
|
|
2
3
|
import requests
|
|
3
|
-
from ..scripts import
|
|
4
|
-
|
|
4
|
+
from ..scripts import Apis
|
|
5
|
+
#================================================================
|
|
5
6
|
|
|
6
7
|
class InterNet:
|
|
7
8
|
|
|
8
9
|
def GetIP():
|
|
9
|
-
moones = requests.get(
|
|
10
|
+
moones = requests.get(Apis.DATA02)
|
|
10
11
|
moonus = moones.json()
|
|
11
12
|
return moonus['ip']
|
|
12
13
|
|
|
13
|
-
#====================================================================
|
|
14
|
-
|
|
15
14
|
def GetLIP():
|
|
16
15
|
moones = socket.gethostname()
|
|
17
16
|
moonus = socket.gethostbyname(moones)
|
|
18
17
|
return moonus
|
|
19
18
|
|
|
20
|
-
|
|
19
|
+
def tracker(IP):
|
|
20
|
+
mainse = requests.get(Apis.DATA01.format(IP))
|
|
21
|
+
moonus = json.loads(mainse.text)
|
|
22
|
+
return moonus
|
|
23
|
+
|
|
24
|
+
#================================================================
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
from .script01 import Script01
|
|
2
|
+
|
|
3
|
+
class Scripted(Script01):
|
|
4
|
+
|
|
5
|
+
TRACKER01 = "Targeted IP : {}"
|
|
6
|
+
TRACKER02 = "IP type : {}"
|
|
7
|
+
TRACKER03 = "Country : {}"
|
|
8
|
+
TRACKER04 = "Country Code : {}"
|
|
9
|
+
TRACKER05 = "City : {}"
|
|
10
|
+
TRACKER06 = "Continent : {}"
|
|
11
|
+
TRACKER07 = "Continent Code : {}"
|
|
12
|
+
TRACKER07 = "Region : {}"
|
|
13
|
+
TRACKER09 = "Region Code : {}"
|
|
14
|
+
TRACKER10 = "Latitude : {}"
|
|
15
|
+
TRACKER11 = "Longitude : {}"
|
|
16
|
+
TRACKER12 = "EU : {}"
|
|
17
|
+
TRACKER13 = "Postal : {}"
|
|
18
|
+
TRACKER14 = "Calling Code : {}"
|
|
19
|
+
TRACKER15 = "Capital : {}"
|
|
20
|
+
TRACKER16 = "Borders : {}"
|
|
21
|
+
TRACKER17 = "Country Flag : {}"
|
|
22
|
+
TRACKER18 = "ASN : {}"
|
|
23
|
+
TRACKER19 = "ORG : {}"
|
|
24
|
+
TRACKER20 = "ISP : {}"
|
|
25
|
+
TRACKER21 = "Domain : {}"
|
|
26
|
+
TRACKER22 = "ID : {}"
|
|
27
|
+
TRACKER23 = "ABBR : {}"
|
|
28
|
+
TRACKER24 = "DST : {}"
|
|
29
|
+
TRACKER25 = "Offset : {}"
|
|
30
|
+
TRACKER26 = "UTC : {}"
|
|
31
|
+
TRACKER27 = "Current Time : {}"
|
|
32
|
+
TRACKER28 = "Maps : {}"
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
#====================================================================
|
|
2
|
+
|
|
3
|
+
class Apis(object):
|
|
4
|
+
|
|
5
|
+
DATA01 = "http://ipwho.is/{}"
|
|
6
|
+
DATA02 = "https://api.ipify.org?format=json"
|
|
7
|
+
|
|
8
|
+
#====================================================================
|
|
9
|
+
|
|
10
|
+
class Links(object):
|
|
11
|
+
|
|
12
|
+
DATA01 = "https://www.google.com/maps/@{},{},8z"
|
|
13
|
+
|
|
14
|
+
#====================================================================
|
|
@@ -4,8 +4,11 @@ setup.py
|
|
|
4
4
|
Clinton/__init__.py
|
|
5
5
|
Clinton/functions/__init__.py
|
|
6
6
|
Clinton/functions/function01.py
|
|
7
|
+
Clinton/functions/function02.py
|
|
7
8
|
Clinton/scripts/__init__.py
|
|
8
9
|
Clinton/scripts/script01.py
|
|
10
|
+
Clinton/scripts/script02.py
|
|
11
|
+
Clinton/scripts/script05.py
|
|
9
12
|
clinton.egg-info/PKG-INFO
|
|
10
13
|
clinton.egg-info/SOURCES.txt
|
|
11
14
|
clinton.egg-info/dependency_links.txt
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
from .script01 import Scripted
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|