Skip to content

Instantly share code, notes, and snippets.

@pfspence
Created October 22, 2021 14:32
Show Gist options
  • Save pfspence/4610f514c3f4662484a91ca33f40b6c5 to your computer and use it in GitHub Desktop.
Save pfspence/4610f514c3f4662484a91ca33f40b6c5 to your computer and use it in GitHub Desktop.
#!/bin/bash
#Check if root
if [ "$EUID" -ne 0 ]
then echo "Please run as root"
exit
fi
URL='https://raw.githubusercontent.com/pfspence/metasploit-framework/master/modules/auxiliary/scanner/http/dlink_dir_session_cgi_http_login.rb'
TARGET='/usr/share/metasploit-framework/modules/auxiliary/scanner/http/dlink_dir_session_cgi_http_login.rb'
rm $TARGET
curl $URL -o $TARGET
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment