-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathwg.py
More file actions
40 lines (40 loc) · 1 KB
/
wg.py
File metadata and controls
40 lines (40 loc) · 1 KB
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
# import argparse
# import socket
#
# # add other domains here for reverse dns
# domains = ["www.canarytokens.org"]
#
#
# def check_file(file):
# content = open(file).read().split() # read file and split it to obtain a list
# temp = ""
#
# for i in range(len(content)):
# if content[i].__contains__("Endpoint"):
# temp += content[i + 2]
# ip = temp.split(":")[0]
# print(ip)
# domain_ip = reverse_dns()
# if domain_ip is not None and domain_ip == ip:
# print("<----!!!!----> Honey-Token found <----!!!!---->")
# else:
# print("Nothing found")
#
#
#
# def main():
# print("-------- START WIREGUARD.PY --------")
# parser = argparse.ArgumentParser()
# parser.add_argument("--file", "-f", type=str, required=True)
# args = parser.parse_args()
# file = args.file
# check_file(file)
#
#
# def reverse_dns():
# return socket.gethostbyname(domains[0])
#
#
# # /Users/mm/Desktop/canary-tokens/wg
# if __name__ == "__main__":
# main()