forked from Clats97/ClatScope
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathClatScope(1.10.1)GUI.pyw
2255 lines (2142 loc) · 113 KB
/
ClatScope(1.10.1)GUI.pyw
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
import tkinter as tk
from tkinter import ttk, scrolledtext, simpledialog, messagebox, filedialog
import requests
from phonenumbers import geocoder, carrier
import phonenumbers
import os
import socket
import ssl
from concurrent.futures import ThreadPoolExecutor, as_completed
import dns.resolver
from dns import reversename
from email_validator import validate_email, EmailNotValidError
from urllib.parse import quote
import secrets
import json
from bs4 import BeautifulSoup
import re
from email.parser import Parser
import whois
from tqdm import tqdm
from datetime import datetime
import openai
import magic
import stat
from PIL import Image
from PIL.ExifTags import TAGS, GPSTAGS
import PyPDF2
import openpyxl
import docx
from docx.opc.constants import RELATIONSHIP_TYPE as RT
from pptx import Presentation
from mutagen.easyid3 import EasyID3
from mutagen.mp3 import MP3
from mutagen.mp4 import MP4
from mutagen.id3 import ID3
from mutagen.flac import FLAC
import wave
from mutagen.oggvorbis import OggVorbis
from tinytag import TinyTag
import multiprocessing
default_color = 'white'
HIBP_API_KEY = "INSERT API KEY HERE"
HUNTER_API_KEY = "INSERT API KEY HERE"
CASTRICK_API_KEY = "INSERT API KEY HERE"
VIRUSTOTAL_API_KEY = "INSERT API KEY HERE"
OPENAI_API_KEY = "INSERT API KEY HERE"
PERPLEXITY_API_KEY = "INSERT API KEY HERE"
RAPIDAPI_KEY = "INSERT API KEY HERE"
_global_session = requests.Session()
requests.get = _global_session.get
MAX_WORKERS = min(32, (multiprocessing.cpu_count() or 1) * 5)
class ClatScopeGUI:
def __init__(self, root):
self.root = root
self.root.title("ClatScope Info Tool v1.09.1")
self.root.geometry("1200x800")
self.root.resizable(True, True)
# Create a single ThreadPoolExecutor to handle all tasks
self.executor = ThreadPoolExecutor(max_workers=MAX_WORKERS)
self.task_count = 0 # Track tasks in progress
# Create main frames
header_frame = ttk.Frame(root)
header_frame.pack(side=tk.TOP, fill=tk.X, padx=10, pady=10)
button_frame = ttk.Frame(root)
button_frame.pack(side=tk.LEFT, fill=tk.Y, padx=10, pady=10)
output_frame = ttk.Frame(root)
output_frame.pack(side=tk.RIGHT, fill=tk.BOTH, expand=True, padx=10, pady=10)
# Display ASCII Art and Author Information (centered)
ascii_art = (
"██████╗ ██╗ █████╗ ████████╗ ███████╗ ██████╗ ██████╗ ██████╗ ███████╗\n"
"██╔════╝ ██║ ██╔══██╗ ╚══██╔══╝ ██╔════╝ ██╔════╝ ██╔═══██╗ ██╔══██╗ ██╔════╝\n"
"██║ ██║ ███████║ ██║ ███████╗ ██║ ██║ ██║ ██████╔╝ █████╗ \n"
"██║ ██║ ██╔══██║ ██║ ╚════██║ ██║ ██║ ██║ ██╔═══╝ ██╔══╝ \n"
"╚██████╗ ███████╗ ██║ ██║ ██║ ███████║ ╚██████╗ ╚██████╔╝ ██║ ███████╗\n"
" ╚═════╝ ╚══════╝ ╚═╝ ╚═╝ ╚═╝ ╚══════╝ ╚═════╝ ╚═════╝ ╚═╝ ╚══════╝\n"
"C L A T S C O P E I N F O T O O L (Version 1.10.1)\n"
)
author = "By Joshua Clatney - Ethical Pentesting Enthusiast\n[OSINT]\nOpen Sources. Clear Conclusions\n"
header_label = ttk.Label(header_frame, text=ascii_art + author, justify=tk.CENTER, anchor="center", font=("Courier", 10))
header_label.pack()
# Progress label
self.progress_label = ttk.Label(header_frame, text="", font=("Arial", 12))
self.progress_label.pack()
# Create a canvas and scrollbar for the buttons
canvas = tk.Canvas(button_frame, width=300)
scrollbar = ttk.Scrollbar(button_frame, orient="vertical", command=canvas.yview)
self.buttons_inner_frame = ttk.Frame(canvas)
self.buttons_inner_frame.bind(
"<Configure>",
lambda e: canvas.configure(scrollregion=canvas.bbox("all"))
)
canvas.create_window((0, 0), window=self.buttons_inner_frame, anchor="nw")
canvas.configure(yscrollcommand=scrollbar.set)
canvas.pack(side="left", fill="both", expand=True)
scrollbar.pack(side="right", fill="y")
# Output area with scrollbar
self.output_textbox = scrolledtext.ScrolledText(output_frame, wrap=tk.WORD, state='disabled', font=("Courier", 10))
self.output_textbox.pack(fill=tk.BOTH, expand=True)
# Create buttons for each function
self.create_buttons()
# ------------------ Utility Methods ------------------
def show_in_progress(self):
self.task_count += 1
self.progress_label.config(text="Your request is in progress....")
def hide_in_progress(self, future):
def _hide():
self.task_count -= 1
if self.task_count <= 0:
self.task_count = 0
self.progress_label.config(text="")
self.root.after(0, _hide)
def clear_output(self):
self.output_textbox.config(state=tk.NORMAL)
self.output_textbox.delete('1.0', tk.END)
self.output_textbox.config(state=tk.DISABLED)
def gui_print(self, text, color='white'):
self.output_textbox.config(state=tk.NORMAL)
self.output_textbox.insert(tk.END, text + "\n")
self.output_textbox.tag_add(color, "end-2c linestart", "end-1c lineend")
self.output_textbox.tag_config(color, foreground=color)
self.output_textbox.see(tk.END)
self.output_textbox.config(state=tk.DISABLED)
def gui_input(self, prompt):
return simpledialog.askstring("Input", prompt, parent=self.root)
def log_option(self, output_text):
if messagebox.askyesno("Save Log", "Would you like to save this output to a log file?"):
stamp = datetime.now().strftime("[%Y-%m-%d %H:%M:%S] ")
with open("clatscope_log.txt", "a", encoding="utf-8") as log_file:
log_file.write(f"{stamp}{output_text}\n\n")
self.gui_print("[!] > Output has been saved to clatscope_log.txt")
def timeConvert(self, atime):
newtime = datetime.fromtimestamp(atime)
return newtime.date()
def sizeFormat(self, size):
newsize = format(size/1024, ".2f")
return newsize + " KB"
def get_permission_string(self, file_mode):
permissions = [
stat.S_IRUSR, stat.S_IWUSR, stat.S_IXUSR,
stat.S_IRGRP, stat.S_IWGRP, stat.S_IXGRP,
stat.S_IROTH, stat.S_IWOTH, stat.S_IXOTH
]
labels = ['Owner', 'Group', 'Other']
permission_descriptions = []
for i, label in enumerate(labels):
read = 'Yes' if file_mode & permissions[i * 3] else 'No'
write = 'Yes' if file_mode & permissions[i * 3 + 1] else 'No'
execute = 'Yes' if file_mode & permissions[i * 3 + 2] else 'No'
description = f"{label} {{Read: {read}, Write: {write}, Execute: {execute}}}"
permission_descriptions.append(description)
return ', '.join(permission_descriptions)
def gps_extract(self, exif_dict):
gps_metadata = exif_dict['GPSInfo']
lat_ref_num = 1 if gps_metadata['GPSLatitudeRef'] == 'N' else -1
lat_list = [float(num) for num in gps_metadata['GPSLatitude']]
lat_coordinate = (lat_list[0] + lat_list[1]/60 + lat_list[2]/3600) * lat_ref_num
long_ref_num = 1 if gps_metadata['GPSLongitudeRef'] == 'E' else -1
long_list = [float(num) for num in gps_metadata['GPSLongitude']]
long_coordinate = (long_list[0] + long_list[1]/60 + long_list[2]/3600) * long_ref_num
return (lat_coordinate, long_coordinate)
def check_password_strength(self, password):
txt_file_path = os.path.join(os.path.dirname(__file__), "passwords.txt")
if os.path.isfile(txt_file_path):
try:
with open(txt_file_path, "r", encoding="utf-8") as f:
common_words = f.read().splitlines()
for word in common_words:
if word and word in password:
return "Weak password (may contain common phrase or word)"
except Exception:
pass
score = 0
if len(password) >= 8:
score += 1
if len(password) >= 12:
score += 1
if re.search(r'[A-Z]', password):
score += 1
if re.search(r'[a-z]', password):
score += 1
if re.search(r'\d', password):
score += 1
if re.search(r'[^a-zA-Z0-9]', password):
score += 1
if score <= 2:
return "Weak password"
elif 3 <= score <= 4:
return "Moderate password"
else:
return "Strong password"
# ------------------ Button Creation ------------------
def create_buttons(self):
functions = [
("1", "IP Address Search", self.ip_info_gui),
("2", "Deep Account Search", self.deep_account_search_gui),
("3", "Phone Search", self.phone_info_gui),
("4", "DNS Record Search", self.dns_lookup_gui),
("5", "Email MX Search", self.email_lookup_gui),
("6", "Person Name Search", self.person_search_gui),
("7", "Reverse DNS Search", self.reverse_dns_gui),
("8", "Email Header Search", self.analyze_email_header_gui),
("9", "Email Breach Search", self.haveibeenpwned_check_gui),
("10", "WHOIS Search", self.whois_lookup_gui),
("11", "Password Analyzer", self.password_strength_tool_gui),
("12", "Username Search", self.username_check_gui),
("13", "Reverse Phone Search", self.reverse_phone_lookup_gui),
("14", "SSL Search", self.check_ssl_cert_gui),
("15", "Web Crawler Search", self.check_robots_and_sitemap_gui),
("16", "DNSBL Search", self.check_dnsbl_gui),
("17", "Web Metadata Search", self.fetch_webpage_metadata_gui),
("18", "Travel Risk Search", self.travel_assessment_gui),
("19", "Botometer Search", self.botometer_search_gui),
("20", "Business Search", self.business_search_gui),
("21", "HR Email Search", self.hudson_rock_email_infection_check_gui),
("22", "HR Username Search", self.hudson_rock_username_infection_check_gui),
("23", "HR Domain Search", self.hudson_rock_domain_infection_check_gui),
("24", "HR IP Search", self.hudson_rock_ip_infection_check_gui),
("25", "Fact Check Search", self.fact_check_text_gui),
("26", "Relationship Search", self.relationship_search_gui),
("27", "File Metadata Search", self.read_file_metadata_gui),
("28", "Subdomain Search", self.subdomain_enumeration_gui),
("29", "Domain Search (Hunter.io)", self.hunter_domain_search_gui),
("30", "Email Search (Hunter.io)", self.hunter_email_finder_gui),
("31", "Email Verify Search (Hunter.io)", self.hunter_email_verifier_gui),
("32", "Company Search (Hunter.io)", self.hunter_company_enrichment_gui),
("33", "Person Info Search (Hunter.io)", self.hunter_person_enrichment_gui),
("34", "Combined Search (Hunter.io)", self.hunter_combined_enrichment_gui),
("35", "Email Search (CastrickClues)", self.castrick_email_search_gui),
("36", "Domain Report (VirusTotal)", self.virustotal_domain_report_gui),
("37", "Malice Search", self.malice_search_gui),
("0", "Exit", self.exit_gui)
]
for num, name, command in functions:
btn = ttk.Button(self.buttons_inner_frame, text=f"[{num}] {name}", command=command)
btn.pack(fill=tk.X, padx=5, pady=2)
# ------------------ GUI Handler Methods ------------------
def ip_info_gui(self):
ip = self.gui_input("Enter IP Address:")
if ip:
self.clear_output()
self.gui_print(f"Fetching information for IP: {ip}")
self.show_in_progress()
future = self.executor.submit(self.ip_info, ip)
future.add_done_callback(self.hide_in_progress)
def deep_account_search_gui(self):
nickname = self.gui_input("Enter Username:")
if nickname:
self.clear_output()
self.gui_print(f"Performing Deep Account Search for username: {nickname}")
self.show_in_progress()
future = self.executor.submit(self.deep_account_search, nickname)
future.add_done_callback(self.hide_in_progress)
def phone_info_gui(self):
phone_number = self.gui_input("Enter Phone Number:")
if phone_number:
self.clear_output()
self.gui_print(f"Fetching phone information for: {phone_number}")
self.show_in_progress()
future = self.executor.submit(self.phone_info, phone_number)
future.add_done_callback(self.hide_in_progress)
def dns_lookup_gui(self):
domain = self.gui_input("Enter Domain/URL:")
if domain:
self.clear_output()
self.gui_print(f"Performing DNS lookup for: {domain}")
self.show_in_progress()
future = self.executor.submit(self.dns_lookup, domain)
future.add_done_callback(self.hide_in_progress)
def email_lookup_gui(self):
email = self.gui_input("Enter Email:")
if email:
self.clear_output()
self.gui_print(f"Performing Email MX lookup for: {email}")
self.show_in_progress()
future = self.executor.submit(self.email_lookup, email)
future.add_done_callback(self.hide_in_progress)
def person_search_gui(self):
first_name = self.gui_input("Enter First Name:")
last_name = self.gui_input("Enter Last Name:")
city = self.gui_input("Enter City/Location:")
if first_name and last_name:
self.clear_output()
self.gui_print(f"Performing Person Search for: {first_name} {last_name}, {city}")
self.show_in_progress()
future = self.executor.submit(self.person_search, first_name, last_name, city)
future.add_done_callback(self.hide_in_progress)
else:
messagebox.showerror("Error", "First Name and Last Name are required.")
def reverse_dns_gui(self):
ip = self.gui_input("Enter IP Address:")
if ip:
self.clear_output()
self.gui_print(f"Performing Reverse DNS lookup for: {ip}")
self.show_in_progress()
future = self.executor.submit(self.reverse_dns, ip)
future.add_done_callback(self.hide_in_progress)
def analyze_email_header_gui(self):
raw_headers = self.gui_input("Paste Raw Email Headers:")
if raw_headers:
self.clear_output()
self.gui_print("Analyzing Email Headers...")
self.show_in_progress()
future = self.executor.submit(self.analyze_email_header, raw_headers)
future.add_done_callback(self.hide_in_progress)
def haveibeenpwned_check_gui(self):
email = self.gui_input("Enter Email Address:")
if email:
self.clear_output()
self.gui_print(f"Checking if email has been pwned: {email}")
self.show_in_progress()
future = self.executor.submit(self.haveibeenpwned_check, email)
future.add_done_callback(self.hide_in_progress)
def whois_lookup_gui(self):
domain = self.gui_input("Enter Domain/URL:")
if domain:
self.clear_output()
self.gui_print(f"Performing WHOIS lookup for: {domain}")
self.show_in_progress()
future = self.executor.submit(self.whois_lookup, domain)
future.add_done_callback(self.hide_in_progress)
def password_strength_tool_gui(self):
password = simpledialog.askstring("Password Analyzer", "Enter Password:", show='*', parent=self.root)
if password:
self.clear_output()
self.gui_print("Analyzing password strength...")
self.show_in_progress()
future = self.executor.submit(self.password_strength_tool, password)
future.add_done_callback(self.hide_in_progress)
def username_check_gui(self):
username = self.gui_input("Enter Username:")
if username:
self.clear_output()
self.gui_print(f"Checking username: {username}")
self.show_in_progress()
future = self.executor.submit(self.username_check, username)
future.add_done_callback(self.hide_in_progress)
def reverse_phone_lookup_gui(self):
phone_number = self.gui_input("Enter phone number or name to perfoem a reverse lookup:")
if phone_number:
self.clear_output()
self.gui_print(f"Performing Reverse Phone lookup for: {phone_number}")
self.show_in_progress()
future = self.executor.submit(self.reverse_phone_lookup, phone_number)
future.add_done_callback(self.hide_in_progress)
def check_ssl_cert_gui(self):
domain = self.gui_input("Enter Domain/URL:")
if domain:
self.clear_output()
self.gui_print(f"Checking SSL certificate for: {domain}")
self.show_in_progress()
future = self.executor.submit(self.check_ssl_cert, domain)
future.add_done_callback(self.hide_in_progress)
def check_robots_and_sitemap_gui(self):
domain = self.gui_input("Enter Domain:")
if domain:
self.clear_output()
self.gui_print(f"Checking robots.txt and sitemap.xml for: {domain}")
self.show_in_progress()
future = self.executor.submit(self.check_robots_and_sitemap, domain)
future.add_done_callback(self.hide_in_progress)
def check_dnsbl_gui(self):
ip_address = self.gui_input("Enter IP Address:")
if ip_address:
self.clear_output()
self.gui_print(f"Performing DNSBL check for IP: {ip_address}")
self.show_in_progress()
future = self.executor.submit(self.check_dnsbl, ip_address)
future.add_done_callback(self.hide_in_progress)
def fetch_webpage_metadata_gui(self):
url = self.gui_input("Enter URL:")
if url:
self.clear_output()
self.gui_print(f"Fetching webpage metadata for: {url}")
self.show_in_progress()
future = self.executor.submit(self.fetch_webpage_metadata, url)
future.add_done_callback(self.hide_in_progress)
def travel_assessment_gui(self):
location = self.gui_input("Enter Location:")
if location:
self.clear_output()
self.gui_print(f"Performing Travel Risk Assessment for: {location}")
self.show_in_progress()
future = self.executor.submit(self.travel_assessment, location)
future.add_done_callback(self.hide_in_progress)
def botometer_search_gui(self):
username = self.gui_input("Enter X/Twitter Username:")
if username:
self.clear_output()
self.gui_print(f"Checking Botometer score for: {username}")
self.show_in_progress()
future = self.executor.submit(self.botometer_search, username)
future.add_done_callback(self.hide_in_progress)
def business_search_gui(self):
business_name = self.gui_input("Enter Business or Person's Name:")
if business_name:
self.clear_output()
self.gui_print(f"Performing Business Search for: {business_name}")
self.show_in_progress()
future = self.executor.submit(self.business_search, business_name)
future.add_done_callback(self.hide_in_progress)
def hudson_rock_email_infection_check_gui(self):
email = self.gui_input("Enter Email to Check Infection Status:")
if email:
self.clear_output()
self.gui_print(f"Checking infection status for email: {email}")
self.show_in_progress()
future = self.executor.submit(self.hudson_rock_email_infection_check, email)
future.add_done_callback(self.hide_in_progress)
def hudson_rock_username_infection_check_gui(self):
username = self.gui_input("Enter Username to Check Infection Status:")
if username:
self.clear_output()
self.gui_print(f"Checking infection status for username: {username}")
self.show_in_progress()
future = self.executor.submit(self.hudson_rock_username_infection_check, username)
future.add_done_callback(self.hide_in_progress)
def hudson_rock_domain_infection_check_gui(self):
domain = self.gui_input("Enter Domain/URL to Check Infection Status:")
if domain:
self.clear_output()
self.gui_print(f"Checking infection status for domain: {domain}")
self.show_in_progress()
future = self.executor.submit(self.hudson_rock_domain_infection_check, domain)
future.add_done_callback(self.hide_in_progress)
def hudson_rock_ip_infection_check_gui(self):
ip_address = self.gui_input("Enter IP Address to Check Infection Status:")
if ip_address:
self.clear_output()
self.gui_print(f"Checking infection status for IP: {ip_address}")
self.show_in_progress()
future = self.executor.submit(self.hudson_rock_ip_infection_check, ip_address)
future.add_done_callback(self.hide_in_progress)
def fact_check_text_gui(self):
text_to_check = self.gui_input("Enter Text to Fact-Check:")
if text_to_check:
self.clear_output()
self.gui_print("Performing Fact Check...")
self.show_in_progress()
future = self.executor.submit(self.fact_check_text, text_to_check)
future.add_done_callback(self.hide_in_progress)
def relationship_search_gui(self):
query = self.gui_input("Enter Query to Analyze Relationships:")
if query:
self.clear_output()
self.gui_print(f"Analyzing relationships for: {query}")
self.show_in_progress()
future = self.executor.submit(self.relationship_search, query)
future.add_done_callback(self.hide_in_progress)
else:
messagebox.showerror("Error", "A query is required.")
def read_file_metadata_gui(self):
file_path = filedialog.askopenfilename(title="Select File for Metadata Analysis")
if file_path:
self.clear_output()
self.gui_print(f"🐢 Checking File Data\n {file_path}")
self.show_in_progress()
future = self.executor.submit(self.read_file_metadata, file_path)
future.add_done_callback(self.hide_in_progress)
def subdomain_enumeration_gui(self):
domain = self.gui_input("Enter Domain for Subdomain Enumeration:")
if domain:
self.clear_output()
self.gui_print(f"Performing Subdomain Enumeration for: {domain}")
self.show_in_progress()
future = self.executor.submit(self.subdomain_enumeration, domain)
future.add_done_callback(self.hide_in_progress)
def hunter_domain_search_gui(self):
domain = self.gui_input("Enter Domain to Search via Hunter.io:")
if domain:
self.clear_output()
self.gui_print(f"Performing Hunter.io Domain Search for: {domain}")
self.show_in_progress()
future = self.executor.submit(self.hunter_domain_search, domain)
future.add_done_callback(self.hide_in_progress)
def hunter_email_finder_gui(self):
domain = self.gui_input("Enter Domain (e.g., reddit.com):")
first_name = self.gui_input("Enter First Name:")
last_name = self.gui_input("Enter Last Name:")
if domain and first_name and last_name:
self.clear_output()
self.gui_print(f"Performing Hunter.io Email Finder for: {first_name} {last_name} @ {domain}")
self.show_in_progress()
future = self.executor.submit(self.hunter_email_finder, domain, first_name, last_name)
future.add_done_callback(self.hide_in_progress)
else:
messagebox.showerror("Error", "Domain, First Name, and Last Name are required.")
def hunter_email_verifier_gui(self):
email = self.gui_input("Enter Email to Verify:")
if email:
self.clear_output()
self.gui_print(f"Performing Hunter.io Email Verification for: {email}")
self.show_in_progress()
future = self.executor.submit(self.hunter_email_verifier, email)
future.add_done_callback(self.hide_in_progress)
def hunter_company_enrichment_gui(self):
domain = self.gui_input("Enter Domain for Company Enrichment:")
if domain:
self.clear_output()
self.gui_print(f"Performing Hunter.io Company Enrichment for: {domain}")
self.show_in_progress()
future = self.executor.submit(self.hunter_company_enrichment, domain)
future.add_done_callback(self.hide_in_progress)
def hunter_person_enrichment_gui(self):
email = self.gui_input("Enter Email for Person Enrichment:")
if email:
self.clear_output()
self.gui_print(f"Performing Hunter.io Person Enrichment for: {email}")
self.show_in_progress()
future = self.executor.submit(self.hunter_person_enrichment, email)
future.add_done_callback(self.hide_in_progress)
def hunter_combined_enrichment_gui(self):
email = self.gui_input("Enter Email for Combined Enrichment:")
if email:
self.clear_output()
self.gui_print(f"Performing Hunter.io Combined Enrichment for: {email}")
self.show_in_progress()
future = self.executor.submit(self.hunter_combined_enrichment, email)
future.add_done_callback(self.hide_in_progress)
def castrick_email_search_gui(self):
email = self.gui_input("Enter Email to Check via CastrickClues:")
if email:
self.clear_output()
self.gui_print(f"Performing CastrickClues Email Search for: {email}")
self.show_in_progress()
future = self.executor.submit(self.castrick_email_search, email)
future.add_done_callback(self.hide_in_progress)
def virustotal_domain_report_gui(self):
domain = self.gui_input("Enter domain for VirusTotal report:")
if domain:
self.clear_output()
self.show_in_progress()
future = self.executor.submit(self.virustotal_domain_report, domain)
future.add_done_callback(self.hide_in_progress)
def malice_search_gui(self):
input_text = self.gui_input("Enter text to analyze for malicious content:")
if input_text:
self.clear_output()
self.gui_print("Performing Malice Search...")
self.show_in_progress()
future = self.executor.submit(self.malice_search, input_text)
future.add_done_callback(self.hide_in_progress)
def exit_gui(self):
self.executor.shutdown(wait=False)
self.root.quit()
# ------------------ Worker Methods (Functionality) ------------------
def subdomain_enumeration(self, domain):
url = f"https://crt.sh/?q=%.{domain}&output=json"
try:
resp = requests.get(url, timeout=30)
if resp.status_code == 200:
try:
data = resp.json()
except json.JSONDecodeError:
msg = "[!] > Error: crt.sh returned non-JSON or empty data."
self.gui_print(msg)
messagebox.showerror("Subdomain Enumeration", msg)
return
found_subs = set()
for entry in data:
if 'name_value' in entry:
for subd in entry['name_value'].split('\n'):
subd_strip = subd.strip()
if subd_strip and subd_strip != domain:
found_subs.add(subd_strip)
elif 'common_name' in entry:
c = entry['common_name'].strip()
if c and c != domain:
found_subs.add(c)
if found_subs:
out_text = f"\n[+] Found {len(found_subs)} subdomains for {domain}:\n"
for s in sorted(found_subs):
out_text += f" {s}\n"
self.gui_print(out_text)
if messagebox.askyesno("Save Log", "Would you like to save this output to a log file?"):
stamp = datetime.now().strftime("[%Y-%m-%d %H:%M:%S] ")
with open("clatscope_log.txt", "a", encoding="utf-8") as f:
f.write(stamp + out_text + "\n")
self.gui_print("[!] > Subdomains saved to clatscope_log.txt")
else:
msg = "[!] > No subdomains found."
self.gui_print(msg)
messagebox.showinfo("Subdomain Enumeration", msg)
else:
err = f"[!] > HTTP {resp.status_code} from crt.sh"
self.gui_print(err)
messagebox.showerror("Subdomain Enumeration", err)
except Exception as exc:
err_msg = f"[!] > Subdomain enumeration error: {exc}"
self.gui_print(err_msg)
messagebox.showerror("Subdomain Enumeration", err_msg)
def validate_domain_input(self, domain):
if not domain or len(domain) > 253 or ".." in domain:
return False
pattern = r"^[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$"
return bool(re.match(pattern, domain))
def get_ip_details(self, ip):
try:
response = requests.get(f"https://ipinfo.io/{ip}/json", timeout=30)
response.raise_for_status()
return response.json()
except:
return None
def person_search(self, first_name, last_name, city):
query = f"{first_name} {last_name} {city}"
payload_person_search = {
"model": "sonar-reasoning-pro",
"messages": [
{
"role": "system",
"content": (
"When searching for information about [PERSON NAME], please provide a comprehensive analysis that includes:"
"their full name including any variations or aliases; date and place of birth (if known); current location or"
"place of death if deceased; educational background including institutions and years of attendance; professional"
"history with dates and notable achievements; any significant public roles or positions held; major life events"
"or controversies; family connections and relationships relevant to their public life; and their current status"
"or most recent known activities. For any claims made, include specific citations using [Source X] notation"
"within the text, where X corresponds to the numbered source in the reference list. Each piece of information"
"should be attributed to at least one credible source, with preference given to primary sources, official records,"
"reputable news organizations, and peer-reviewed academic works where applicable. Avoid speculation beyond verifiable"
"data. When researching [PERSON NAME], first verify the specific individual by their distinguishing characteristics"
"(occupation, time period, location, or notable achievements). If the person has appeared in a news article or public interview, discuss the details of it."
"If multiple people share similar names, acknowledge their existence at the beginning of your response like this: Note: There are other notable individuals named"
"[Similar Name], including [Brief one-line identifier for each]. This analysis focuses on [Target Person] who is known for [Key Identifier]."
"Then proceed with the detailed analysis of only the target individual, including their background, achievements, and current status."
"If you cannot confidently distinguish between similarly named individuals based on the available context, state this uncertainty clearly"
"and list the potential matches with their key identifiers, requesting additional details to ensure accurate identification. All information"
"should be properly cited using numbered references, and only include verified information about the specific target individual. At the end of the analysis,"
"provide a numbered list of all sources cited, including full bibliographic information (author, title, publication, date, URL if applicable) in Chicago style format."
"If any critical information is missing orunverifiable, explicitly note these gaps in the analysis. Include information about their current job, employment status, and other relevant professional information."
)
},
{
"role": "user",
"content": f"Provide detailed background or publicly known information about: {query}"
}
],
"max_tokens": 8000,
"temperature": 1.1
}
PERPLEXITY_API_URL = "https://api.perplexity.ai/chat/completions"
perplexity_headers = {
"Authorization": f"Bearer {PERPLEXITY_API_KEY}",
"Content-Type": "application/json",
}
results_text = ""
try:
response = requests.post(PERPLEXITY_API_URL, headers=perplexity_headers, json=payload_person_search)
if response.status_code == 200:
data = response.json()
info_content = data["choices"][0]["message"]["content"]
results_text = (
f"\nPERSON SEARCH RESULTS\n"
f"=====================\n\n"
f"NAME:\n{first_name} {last_name}\n\n"
f"LOCATION:\n{city}\n\n"
f"PUBLIC INFORMATION:\n{info_content}\n"
)
else:
results_text = f"[!] > Error from Perplexity: HTTP {response.status_code}\n{response.text}\n"
except Exception as e:
results_text = f"[!] > Error: {e}\n"
self.gui_print(results_text)
self.log_option(results_text)
def fetch_page_text(self, url):
headers = {
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36)"
}
try:
resp = requests.get(url, headers=headers, timeout=30)
resp.raise_for_status()
soup = BeautifulSoup(resp.text, "lxml")
for tag_name in ["header", "footer", "nav", "aside", "script", "style", "noscript", "form"]:
for t in soup.find_all(tag_name):
t.decompose()
text = soup.get_text(separator=' ')
text = ' '.join(text.split())
return text if text else "No meaningful content found."
except Exception:
return "Could not retrieve or parse the webpage content."
def ip_info(self, ip):
try:
data = self.get_ip_details(ip)
if data:
output = json.dumps(data, indent=2)
self.gui_print(f"IP Information:\n{output}")
messagebox.showinfo("IP Address Search", "IP information retrieved successfully.")
else:
self.gui_print("[!] > Could not retrieve IP information.")
messagebox.showerror("IP Address Search", "Could not retrieve IP information.")
except Exception as e:
self.gui_print(f"[!] > Error: {e}")
messagebox.showerror("IP Address Search", f"An error occurred: {e}")
def fetch_social_urls(self, urls, title):
def check_url(url):
try:
response = requests.get(url, timeout=30)
status_code = response.status_code
if status_code == 200:
return f"[+] > {url:<50}|| Found"
elif status_code == 404:
return f"[-] > {url:<50}|| Not found"
else:
return f"[-] > {url:<50}|| Error: {status_code}"
except requests.exceptions.Timeout:
return f"[-] > {url:<50}|| Timeout"
except requests.exceptions.ConnectionError:
return f"[-] > {url:<50}|| Connection error"
except requests.exceptions.RequestException:
return f"[-] > {url:<50}|| Request error"
except Exception:
return f"[-] > {url:<50}|| Unexpected error"
result_str = f"""
╭─{' '*78}─╮
|{' '*27}{title}{' '*27}|
|{'='*80}|
"""
with ThreadPoolExecutor(max_workers=MAX_WORKERS) as executor:
results = list(executor.map(check_url, urls))
for result in results:
result_str += f"| {result:<78} |\n"
result_str += f"╰─{' '*78}─╯"
return result_str
def deep_account_search(self, nickname):
sites = [
"https://youtube.com/@{target}",
"https://facebook.com/{target}",
"https://wikipedia.org/wiki/User:{target}",
"https://instagram.com/{target}",
"https://reddit.com/user/{target}",
"https://medium.com/@{target}",
"https://www.quora.com/profile/{target}",
"https://bing.com/{target}",
"https://x.com/{target}",
"https://yandex.ru/{target}",
"https://whatsapp.com/{target}",
"https://yahoo.com/{target}",
"https://amazon.com/{target}",
"https://duckduckgo.com/{target}",
"https://yahoo.co.jp/{target}",
"https://tiktok.com/@{target}",
"https://msn.com/{target}",
"https://netflix.com/{target}",
"https://weather.com/{target}",
"https://live.com/{target}",
"https://naver.com/{target}",
"https://microsoft.com/{target}",
"https://twitch.tv/{target}",
"https://office.com/{target}",
"https://vk.com/{target}",
"https://pinterest.com/{target}",
"https://discord.com/{target}",
"https://aliexpress.com/{target}",
"https://github.com/{target}",
"https://adobe.com/{target}",
"https://rakuten.co.jp/{target}",
"https://ikea.com/{target}",
"https://bbc.co.uk/{target}",
"https://amazon.co.jp/{target}",
"https://speedtest.net/{target}",
"https://samsung.com/{target}",
"https://healthline.com/{target}",
"https://medlineplus.gov/{target}",
"https://roblox.com/users/{target}/profile",
"https://cookpad.com/{target}",
"https://indiatimes.com/{target}",
"https://mercadolivre.com.br/{target}",
"https://britannica.com/{target}",
"https://merriam-webster.com/{target}",
"https://hurriyet.com.tr/{target}",
"https://steamcommunity.com/id/{target}",
"https://booking.com/{target}",
"https://support.google.com/{target}",
"https://bbc.com/{target}",
"https://playstation.com/{target}",
"https://ebay.com/usr/{target}",
"https://poki.com/{target}",
"https://walmart.com/{target}",
"https://medicalnewstoday.com/{target}",
"https://gov.uk/{target}",
"https://nhs.uk/{target}",
"https://detik.com/{target}",
"https://cricbuzz.com/{target}",
"https://nih.gov/{target}",
"https://uol.com.br/{target}",
"https://ilovepdf.com/{target}",
"https://clevelandclinic.org/{target}",
"https://cnn.com/{target}",
"https://globo.com/{target}",
"https://nytimes.com/{target}",
"https://taboola.com/{target}",
"https://pornhub.com/users/{target}",
"https://redtube.com/users/{target}",
"https://xnxx.com/profiles/{target}",
"https://brazzers.com/profile/{target}",
"https://xhamster.com/users/{target}",
"https://onlyfans.com/{target}",
"https://xvideos.es/profiles/{target}",
"https://xvideos.com/profiles/{target}",
"https://chaturbate.com/{target}",
"https://redgifs.com/users/{target}",
"https://tinder.com/{target}",
"https://pof.com/{target}",
"https://match.com/{target}",
"https://eharmony.com/{target}",
"https://bumble.com/{target}",
"https://okcupid.com/{target}",
"https://Badoo.com/{target}",
"https://dating.com/{target}",
"https://trello.com/{target}",
"https://mapquest.com/{target}",
"https://zoom.com/{target}",
"https://apple.com/{target}",
"https://dropbox.com/{target}",
"https://weibo.com/{target}",
"https://wordpress.com/{target}",
"https://cloudflare.com/{target}",
"https://salesforce.com/{target}",
"https://fandom.com/{target}",
"https://paypal.com/{target}",
"https://soundcloud.com/{target}",
"https://forbes.com/{target}",
"https://theguardian.com/{target}",
"https://hulu.com/{target}",
"https://stackoverflow.com/users/{target}",
"https://businessinsider.com/{target}",
"https://huffpost.com/{target}",
"https://booking.com/{target}",
"https://pastebin.com/u/{target}",
"https://producthunt.com/@{target}",
"https://pypi.org/user/{target}",
"https://slideshare.com/{target}",
"https://strava.com/athletes/{target}",
"https://tldrlegal.com/{target}",
"https://t.me/{target}",
"https://last.fm/user{target}",
"https://data.typeracer.com/pit/profile?user={target}",
"https://tryhackme.com/p/{target}",
"https://trakt.tv/users/{target}",
"https://scratch.mit.edu/users/{target}",
"https://replit.com?{target}",
"https://hackaday.io/{target}",
"https://freesound.org/people/{target}",
"https://hub.docker.com/u/{target}",
"https://disqus.com/{target}",
"https://www.codecademy.com/profiles/{target}",
"https://www.chess.com/member/{target}",
"https://bitbucket.org/{target}",
"https://www.twitch.tv?{target}",
"https://wikia.com/wiki/User:{target}",
"https://steamcommunity.com/groups{target}",
"https://keybase.io?{target}",
"http://en.gravatar.com/{target}",
"https://vk.com/{target}",
"https://deviantart.com/{target}",
"https://www.behance.net/{target}",
"https://vimeo.com/{target}",
"https://www.youporn.com/user/{target}",
"https://profiles.wordpress.org/{target}",
"https://tryhackme.com/p/{target}",
"https://www.scribd.com/{target}",
"https://myspace.com/{target}",
"https://genius.com/{target}",
"https://genius.com/artists/{target}",
"https://www.flickr.com/people/{target}",
"https://www.fandom.com/u/{target}",
"https://www.chess.com/member/{target}",
"https://buzzfeed.com/{target}",
"https://www.buymeacoffee.com/{target}",
"https://about.me/{target}",
"https://discussions.apple.com/profile/{target}",
"https://archive.org/details/@{target}",
"https://giphy.com/{target}",
"https://scholar.harvard.edu/{target}",
"https://www.instructables.com/member/{target}",
"http://www.wikidot.com/user:info/{target}",
"https://erome.com/{target}",
"https://www.alik.cz/u/{target}",
"https://rblx.trade/p/{target}",
"https://www.paypal.com/paypalme/{target}",
"https://hackaday.io/{target}",
"https://connect.garmin.com/modern/profile/{target}"
]
urls = [site_format.format(target=nickname) for site_format in sites]
search_results = self.fetch_social_urls(urls, "Deep Account Search")
self.gui_print(search_results)
self.log_option(search_results)
def phone_info(self, phone_number):
try:
parsed_number = phonenumbers.parse(phone_number)
country = geocoder.country_name_for_number(parsed_number, "en")
region = geocoder.description_for_number(parsed_number, "en")
operator = carrier.name_for_number(parsed_number, "en")
valid = phonenumbers.is_valid_number(parsed_number)
validity = "Valid" if valid else "Invalid"
phonetext = f"""
╭─{' '*50}─╮
|{' '*17}Phone number info{' '*18}|
|{'='*52}|
| [+] > Number || {phone_number:<33}|
| [+] > Country || {country:<33} |
| [+] > Region || {region:<33} |
| [+] > Operator || {operator:<33} |
| [+] > Validity || {validity:<33} |
╰─{' '*15}─╯╰─{' '*31}─╯
"""
self.gui_print(phonetext)
self.log_option(phonetext)
except phonenumbers.phonenumberutil.NumberParseException:
msg = "\n[!] > Error: invalid phone number format (+1-000-000-0000)"
self.gui_print(msg)
messagebox.showerror("Phone Search", msg)
def reverse_phone_lookup(self, phone_number):
PERPLEXITY_API_URL = "https://api.perplexity.ai/chat/completions"
payload_reverse_phone_lookup = {
"model": "sonar-reasoning-pro",
"messages": [
{
"role": "system",
"content": (
"You are a specialized reverse phone lookup assistant that provides bidirectional search capabilities between phone numbers "
"and individual/business names across public directories and databases. You search for phone numbers from a name or business name, "
"or search for a name or business name based on a phone number. You help users find associated contact information. You clarify search "
"parameters when needed and provide relevant contextual details about found associations. You must cite all your sources at the end of the prompt."
)