probe.py 文件源码

python
阅读 23 收藏 0 点赞 0 评论 0

项目:hacked_cnc 作者: hackerspace 项目源码 文件源码
def run_cmd(self, cmd):
        item = QTreeWidgetItem(self.comtree)

        item.setText(0, time.strftime("%Y.%m.%d. %H:%M:%S", time.localtime()))
        item.setText(1, cmd)

        for i in range(3):
            item.setTextAlignment(i, Qt.AlignTop)

        item.setForeground(1, QtGui.QBrush(green))
        item.setForeground(2, QtGui.QBrush(red))

        self.comtree.scrollToItem(item)
        self.conn.cmd(cmd)
        proc_events()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号