Serving Scripts

Serve scripts from local or from a user-defined URL

Amnesiac leverages external scripts located in the "Scripts" folder within the repository. These scripts are executed on target systems and can be sourced in various ways.

By default, Amnesiac instructs the target system to fetch scripts from the Amnesiac GitHub repository. However, to accommodate scenarios with web filtering or without internet access, users have the flexibility to serve scripts from alternative locations.

The Serve command facilitates the download and local serving of all necessary scripts from the "C:\Users\Public\Documents\Amnesiac\Scripts" folder. This ensures that all script-related traffic remains internal, without the need to download scripts from the internet.

In cases where internet access is unavailable or Github URLs are filtered, users must manually download the required scripts to their host machine and place them in the "C:\Users\Public\Documents\Amnesiac\Scripts" folder.

Note that storing scripts locally may trigger antivirus alerts and result in some scripts being deleted. It is advisable to create an exclusion for this folder in your antivirus settings.

Upon executing the Serve command, Amnesiac initiates a local file server as a background process to serve the required files. Amnesiac provides users with the process ID of the file server, allowing them to terminate it at any time using the displayed command.

The file server will serve any file placed within the "C:\Users\Public\Documents\Amnesiac\Scripts" folder, allowing users to serve additional files as needed.

Additionally, users can opt to serve scripts from a user-specified URL using the "RepoURL" command, followed by the desired URL. This approach may help bypass web filtering while avoiding script storage on the local disk.

To revert to the default script source (the Amnesiac GitHub repo), simply use the "RepoURL" command on its own to reset the script source URL.

Last updated