-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathname.py
46 lines (34 loc) · 1.63 KB
/
name.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
import tkinter as tk
from tkinter import ttk
from webbrowser import open_new
def do_search(site, first_name, last_name):
if site == 'TruePeople':
url = f'https://www.truepeoplesearch.com/results?name={first_name}%20{last_name}'
elif site == 'FastPeople':
url = f'https://www.fastpeoplesearch.com/name/{first_name}-{last_name}'
# Add more elif conditions for other sites
open_new(url)
def main():
root = tk.Tk()
root.title("IntelTechniques Name Tool")
# Create the sidebar
sidebar = tk.Frame(root, width=200, bg='#f1f1f1')
sidebar.pack(side=tk.LEFT, fill=tk.BOTH)
menu_items = ["Offline Tools", "Online Tools", "Search Engines", "Facebook"] # Add more as needed
for item in menu_items:
ttk.Button(sidebar, text=item).pack(fill=tk.X)
# Create the main content area
content = tk.Frame(root, width=800)
content.pack(side=tk.RIGHT, fill=tk.BOTH, expand=True)
tk.Label(content, text="First Name").grid(row=0, column=0)
tk.Label(content, text="Last Name").grid(row=0, column=1)
first_name_entry = tk.Entry(content)
last_name_entry = tk.Entry(content)
first_name_entry.grid(row=1, column=0)
last_name_entry.grid(row=1, column=1)
ttk.Button(content, text="TruePeople", command=lambda: do_search("TruePeople", first_name_entry.get(), last_name_entry.get())).grid(row=1, column=2)
ttk.Button(content, text="FastPeople", command=lambda: do_search("FastPeople", first_name_entry.get(), last_name_entry.get())).grid(row=2, column=2)
# Add more buttons as needed
root.mainloop()
if __name__ == "__main__":
main()