Skip to content

Commit

Permalink
Update tor_scapy_app.py
Browse files Browse the repository at this point in the history
  • Loading branch information
VolkanSah authored Nov 18, 2024
1 parent 7553159 commit 0996bdc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tor_scapy_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,10 @@ def start_tor_process():
print("Starting Tor process...")
tor_process = launch_tor_with_config(
config = {
# add your configs here!
'SocksPort': '9050',
'ControlPort': '9051',

},
init_msg_handler = lambda line: print(line),
)
Expand Down Expand Up @@ -60,6 +62,7 @@ def send_packet_via_tor(destination):
request_new_identity(controller)

# Send a packet via Tor
# Example
destination_ip = "8.8.8.8"
send_packet_via_tor(destination_ip)

Expand Down

0 comments on commit 0996bdc

Please sign in to comment.