From 92d1683a86c358cd954f149ab2f3ef255f2caade Mon Sep 17 00:00:00 2001 From: sundowndev Date: Tue, 11 Dec 2018 14:57:01 +0100 Subject: [PATCH] Python script update feature --- phoneinfoga.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/phoneinfoga.py b/phoneinfoga.py index 0980452..707cbbc 100644 --- a/phoneinfoga.py +++ b/phoneinfoga.py @@ -80,7 +80,7 @@ if args.update: if chunk: # filter out keep-alive new chunks handle.write(chunk) - print('Updating PhoneInfoga.') + print('Updating PhoneInfoga...') print('Actual version: {}'.format(__version__)) # Fetching last github tag @@ -90,10 +90,18 @@ if args.update: osintFiles = ['disposable_num_providers.json', 'individuals.json', 'reputation.json', 'social_medias.json'] try: + print('[*] Updating OSINT files') + for file in osintFiles: url = 'https://raw.githubusercontent.com/sundowndev/PhoneInfoga/master/osint/{}'.format(file) output_directory = 'osint/{}'.format(file) download_file(url, output_directory) + + print('[*] Updating python script') + + url = 'https://raw.githubusercontent.com/sundowndev/PhoneInfoga/master/phoneinfoga.py' + output_directory = 'phoneinfoga.py' + download_file(url, output_directory) except: print('Update failed. Try using git pull.') sys.exit()