Transferring Files with Code
Python
Python 2 - Descargar archivo
sherlock28@htb[/htb]$ python2.7 -c 'import urllib;urllib.urlretrieve("https://raw.githubusercontent.com/rebootuser/LinEnum/master/LinEnum.sh", "LinEnum.sh")'Python 3 - Descargar archivo
sherlock28@htb[/htb]$ python3 -c 'import urllib.request;urllib.request.urlretrieve("https://raw.githubusercontent.com/rebootuser/LinEnum/master/LinEnum.sh", "LinEnum.sh")'PHP
PHP - Descargar archivo con file_get_contents()
file_get_contents()PHP - Descargar archivo con fopen()
fopen()PHP - Descargar un archivo y enviarlo a bash
Otros Lenguajes
Ruby - Descargar un archivo
Perl - Descargar un archivo
JavaScript
Descargar un archivo usando JavaScript y cscript.exe
cscript.exeVBScript
Descargar un archivo usando VBScript y cscript.exe
cscript.exeOperaciones de Carga utilizando Python3
Iniciar el Módulo de Carga en Python
Cargar un archivo usando un One-liner en Python
Recapitulación de la Sección
Last updated