当前位置:网站首页>Classic CTF topic about FTP protocol

Classic CTF topic about FTP protocol

2022-07-06 00:18:00 qq_ twenty-nine million five hundred and sixty-six thousand six

Gave one to pcap package , The prompt uses ftp agreement :

  1. After filtration , track tcp Flow get :
     Insert picture description here
    It can be seen that ftp Passive mode transfers two files , Again because ftp The protocol transmits a file using a connection , So two ports are opened before and after , Here is how to calculate the open port number :
    The following is an example  Insert picture description here
    The open port is 159*256+247 = 40951

  2. Now that you know the port for transferring files , Then get these two files out , See what it is .
    First look at hello.txt
    The open port is 33303, Then filter the port first 33303 Data packets of :
     Insert picture description here
    track TCP flow :
     Insert picture description here
    Look at the other one ( We can also see from the title flag It must be here ):
     Insert picture description here
    save as-> 2.png
    see :
     Insert picture description here

原网站

版权声明
本文为[qq_ twenty-nine million five hundred and sixty-six thousand six]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/02/202202140232472533.html