1
1
#!/usr/bin/env python
2
2
# -*- coding: utf-8 -*-
3
3
4
- from Osintgram import Osintgram
4
+ from src . Osintgram import Osintgram
5
5
import argparse
6
- import printcolors as pc
6
+ from src import printcolors as pc
7
7
import sys
8
8
9
9
@@ -15,15 +15,20 @@ def printlogo():
15
15
pc .printout ("\_______ /____ >__|___| /__| \___ /|__| (____ /__|_| /\n " , pc .YELLOW )
16
16
pc .printout (" \/ \/ \/ /_____/ \/ \/ \n " , pc .YELLOW )
17
17
print ('\n ' )
18
- pc .printout ("Version 0.3 - Developed by Giuseppe Criscione - 2019\n \n " , pc .YELLOW )
18
+ pc .printout ("Version 0.5 - Developed by Giuseppe Criscione - 2019\n \n " , pc .YELLOW )
19
19
pc .printout ("Type 'list' to show all allowed commands\n " )
20
20
pc .printout ("Type 'FILE=y' to save results to files like '<target username>_<command>.txt (deafult is disabled)'\n " )
21
21
pc .printout ("Type 'FILE=n' to disable saving to files'\n " )
22
+ pc .printout ("Type 'JSON=y' to export results to a JSON files like '<target username>_<command>.json (deafult is "
23
+ "disabled)'\n " )
24
+ pc .printout ("Type 'JSON=n' to disable exporting to files'\n " )
22
25
23
26
24
27
def cmdlist ():
25
28
pc .printout ("FILE=y/n\t " )
26
29
print ("Enable/disable output in a '<target username>_<command>.txt' file'" )
30
+ pc .printout ("JSON=y/n\t " )
31
+ print ("Enable/disable export in a '<target username>_<command>.json' file'" )
27
32
pc .printout ("info\t \t " )
28
33
print ("Get target info" )
29
34
pc .printout ("addrs\t \t " )
@@ -66,7 +71,7 @@ def cmdlist():
66
71
while True :
67
72
pc .printout ("Run a command: " , pc .YELLOW )
68
73
cmd = input ()
69
- if ( cmd == "quit" or cmd == "exit" ) :
74
+ if cmd == "quit" or cmd == "exit" :
70
75
pc .printout ("Goodbye!\n " , pc .RED )
71
76
sys .exit (0 )
72
77
elif cmd == "list" or cmd == "help" :
@@ -93,6 +98,10 @@ def cmdlist():
93
98
api .setWriteFile (True )
94
99
elif cmd == "FILE=n" :
95
100
api .setWriteFile (False )
101
+ elif cmd == "JSON=y" :
102
+ api .setJsonDump (True )
103
+ elif cmd == "JSON=n" :
104
+ api .setJsonDump (False )
96
105
elif cmd == "photos" :
97
106
api .getUserPhoto ()
98
107
elif cmd == "captions" :
0 commit comments