MSF使用小技巧(无限更新…)
总是忘掉,记录一下
1. msf db备份
msf db_export 导出备份后再导入总是显示”Could not automatically determine file type”,只能备份pq的数据文件,不过也比较方便快捷安全。
导出:
1 2 3 |
/opt/metasploit/postgrepsql/bin/psql -U user -d database //进入数据库。默认数据库配置位置/opt/metasploit/appd/pro/ui/config/database.yml select oid from pg_database where datname='msf3'; //查询数据库oid,默认为16358 备份文件夹 /opt/metasploit/postgrepsql/data/base/16358 |
导入
删除原有16358文件夹,把备份的16358替换过去,完事注意查看文件所属用户和用户组,如果不是progres用户的使用下面命令
1 |
chown -R postgres:postgres /opt/metasploit/postgrepsql/data/base/16358 |
2.对于不同目标数据记录在不同space
1 2 3 |
workspace -a name //添加空间 workspace name //选择当前工作空间 workspace -d name //删除 |
暂无评论