上一页 1 ··· 13 14 15 16 17
摘要: 获取路径 import os //导入模块 print(os.getcwd()) //打印当前路径 os.chdir("C:\\Windows\\System32") //修改当前路径 print(os.getcwd()) 增删目录文件 os.makedirs("E:\\a\\b") //创建目录, 阅读全文
posted @ 2020-12-02 15:50 lnterpreter 阅读(75) 评论(0) 推荐(0) 编辑
摘要: 一、定义一个函数 def hello(name): print('hello ' + name) name = input('请输入您的用户名: ') hello(name) 二、多参数 def hello(name1,name2): print('hello ' + name1 + ' ' +na 阅读全文
posted @ 2020-12-02 15:10 lnterpreter 阅读(63) 评论(0) 推荐(0) 编辑
摘要: 循环遍历字典 user = {'admin1':'123456','admin2':'test123','admin3':'admin888'} //定义一个字典 for item in user.items(): if item[0] == 'admin' and item[1] == 'admi 阅读全文
posted @ 2020-12-02 14:55 lnterpreter 阅读(80) 评论(0) 推荐(0) 编辑
摘要: 一、实验环境配置 1、SSH服务安装 sudo apt install openssh-server 2、启动服务端 sudo service ssh start 3、重新启动服务端 sudo service ssh restart 二、连接服务器(默认22端口) 1、ssh -p 端口号 用户名@ 阅读全文
posted @ 2020-11-25 12:19 lnterpreter 阅读(107) 评论(0) 推荐(0) 编辑
摘要: 一、查看绝对路径 select @@basedir; 二、日志文件写一句话 1、查看是否开启日志 show variables like '%general%'; 2、设置日志状态 show variables like 'general_log'; // 查看日志是否开启 set global g 阅读全文
posted @ 2020-11-24 18:55 lnterpreter 阅读(179) 评论(0) 推荐(0) 编辑
摘要: 一、sudoers文件规则 sudo命令的配置文件保存在/etc/sudoers文件中,可以使用cat命令查看文件内容 //root(用户名),第一个ALL表示所有的终端,第二个ALL表示所有用户,第三个ALL表示所有组,第四个ALL表示所有命令 root ALL=(ALL:ALL) ALL 二、s 阅读全文
posted @ 2020-11-23 18:03 lnterpreter 阅读(237) 评论(0) 推荐(0) 编辑
摘要: 一、指令编码(硬编码)的结构 二、前缀指令是分组的: 1、 LOCK 和 REPEAT 前缀指令 LOCK F0 //如果再汇编指令中加上 LOCK ,当前这个地址,在多个CPU执行的时,某个时刻只能有一个CPU能读这个地址 REPNE/REPNZ F2 //重复执行后面的某个指令, REP/REP 阅读全文
posted @ 2020-11-19 10:36 lnterpreter 阅读(350) 评论(0) 推荐(0) 编辑
摘要: 一、2003以后命令介绍(以08为例) 1、查看所有类型的防火墙状态 netsh advfirewall show allprofiles 2、关闭防火墙 netsh advfirewall set allprofiles state off 3、开启防火墙 netsh advfirewall se 阅读全文
posted @ 2020-11-10 16:40 lnterpreter 阅读(352) 评论(0) 推荐(0) 编辑
摘要: 一、查看robots.txt文件看看是否有敏感信息 二、扫目录,一个备份文件和后台 三、从备份文件中找到后台帐号密码,登陆 四、找到上传点,上传一句话木马 五、蚁剑连接,查看当前权限 六、收集信息 七、根据补丁号,找提权exp 八、MSF生成木马 msfvenom -p windows/meterp 阅读全文
posted @ 2020-11-03 12:11 lnterpreter 阅读(136) 评论(0) 推荐(0) 编辑
上一页 1 ··· 13 14 15 16 17