-
Notifications
You must be signed in to change notification settings - Fork 8
Configuring
Configuration of Wormnest is done by Environment Variables, meaning that the configuration can be written to a file, and sourced before the execution.
ALIAS_DIGITS_MAX=12
MANAGE_URL_DIR="00001112managedir"
EXPIRED=redir
REDIRECT_URL="https://google.com"
The Environment Variables are explained below:
This can be either 127.0.0.1
, the IP address of some particular network interface, or 0.0.0.0
for all interfaces.
Defaults to 0.0.0.0
.
The TCP port of the Web Server.
Defaults to 8000
The directory that will serve as the base directory. The files that will be served have to be in this directory.
Defaults to test_directory/
The random URLs created by Wormnest will have a certain length. This length will be randomly selected to be between ALIAS_DIGITS_MIN
and ALIAS_DIGITS_MAX
. It has to be ALIAS_DIGITS_MIN
<= ALIAS_DIGITS_MAX
Both default to 8
The Base URL of the management Web Interface. It serves as a password, as there is no other way to manage the Application. It MUST contain no slashes (/
)
- Defaults to 'manage'
- Random String if "*" is used
If a non-existent URL alias is used. Values: [redir
|abort
]
Defaults to "abort".
If an expired URL alias is used. Values: [redir
|abort
]
Defaults to "abort".
-
redir
: will redirect the client toREDIRECT_URL
using anHTTP Response Code
of 302 -
abort
: will serve anHTTP 404 Not Found
error page
The URL that will be used if the application redirects a client away.
Defaults to "https://amazon.com"
A filename that will be used in case there is not selected filename for a URL alias. If USE_ORIGINAL_EXTENSION
is set to True
, the real filename's extension will be used.
Defaults to "ClientDesktopApp"
See above DEFAULT_FILENAME
.
Defaults to "True"
Logs lines like "/MANAGE_URL_DIR PORT DATE" for every execution. This is mostly to keep track of the MANAGE_URL_DIR
, in case it is randomized.
Defaults to "wormnest.mgmt_route.txt"
A JSON file containing URL aliases that will be used as defaults. They are registered without the file existence check.
Defaults to "urls.default.json"
{
"download_now":{
"path":"metasploit/generated/meter_pinning_443.exe",
"filename":"CrazyTaxi_cracked_singlefile_by_Raz0r_team_2006.exe"
},
"android":{
"path":"metasploit/generated/meter_pinning_443.apk",
},
[.. More definitions ..]
}
The above will make the default setup of wormnest
route the following:
-
http[s]://payload-server:8000/download_now
to servemetasploit/generated/meter_pinning_443.exe
with a"Content-Disposition" HTTP Header
containingCrazyTaxi_cracked_singlefile_by_Raz0r_team_2006.exe
as thefilename
argument -
http[s]://payload-server:8000/android
to servemetasploit/generated/meter_pinning_443.apk
with the default filename ofClientDesktopApp
and the file's original extension (USE_ORIGINAL_EXTENSION
parameter). HenceClientDesktopApp.apk
will be placed in the"Content-Disposition" HTTP Header
.