-x = This will find the file extension that might be on the site.
Focusing on the 2 files that I highlighted we can see that there is a UploadedFiles and Transfer.aspx location on the site.
Heading back over to the site we can see there is a upload option on the site.
After playing around with the upload's button I figure out that I am able to upload a config file to the site. Some further reading and I come across the following article that should allow me to get an RCE on the site.
Scrolling down to the bottom of the page we can see that the script is adding 2+1 and should equal 3 once uploaded on the site. Give it a go and see if you are able to get it running.
Command:
cat > web.config nano web.config
Now copy + paste the code into the newly created file.
Now after uploading the file head over to uploadfiles/web.config!
We are now going to create a Reverse shell that should allow us to get a interactive shell on the machine.
Command:
echo > shell2.ps1
I am going to copy/paste the following nishang Reverse Shell in the newly created file link.
Now at the bottom of the shell2.ps1 script past the following: