资源简介
gwwe3j.rar
代码片段和文件信息
#!/usr/bin/env python
# coding:utf-8
from __future__ import with_statement
__version__ = ‘1.0‘
import sys
import os
import re
import time
import ctypes
import platform
def main_linux():
filename = os.path.abspath(__file__)
dirname = os.path.dirname(filename)
#you can change it to ‘proxy.py‘ if you like :)
scriptname = ‘goagent-gtk.py‘
DESKTOP_FILE = ‘‘‘\
[Desktop Entry]
Type=Application
Categories=Network;Proxy;
Exec=/usr/bin/env python “%s/%s“
Icon=%s/goagent-logo.png
Hidden=false
NoDisplay=false
X-GNOME-Autostart-enabled=true
Name=GoAgent GTK
Comment=GoAgent GTK Launcher
‘‘‘ % (dirname scriptname dirname)
#sometimes maybe /etc/xdg/autostart ~/.kde/Autostart/ ~/.config/openbox/autostart
for dirname in map(os.path.expanduser [‘~/.config/autostart‘]):
if os.path.isdir(dirname):
filename = os.path.join(dirname ‘goagent-gtk.desktop‘)
with open(filename ‘w‘) as fp:
fp.write(DESKTOP_FILE)
# os.chmod(filename 0755)
def main_macos():
if os.getuid() != 0:
print ‘please use sudo run this script‘
sys.exit()
PLIST = ‘‘‘\
l version=“1.0“ encoding=“UTF-8“?>
GroupName
wheel
Label
org.goagent.macos
ProgramArguments
/usr/bin/python
%(dirname)s/proxy.py
RunAtLoad
UserName
root
WorkingDirectory
%(dirname)s
StandardOutPath
/var/log/goagent.log
StandardErrorPath
/var/log/goagent.log
KeepAlive
SuccessfulExit
‘‘‘ % dict(dirname=os.path.abspath(os.path.dirname(__file__)))
filename = ‘/Library/LaunchDaemons/org.goagent.macos.plist‘
print ‘write plist to %s‘ % filename
with open(filename ‘wb‘) as fp:
fp.write(PLIST)
print ‘write plist to %s done‘ % filename
print ‘Adding CA.crt to system keychain You may need to input your password...‘
cmd = ‘sudo security add-trusted-cert -d -r trustRoot -k “/Library/Keychains/System.keychain“ “%s/CA.crt“‘ % os.path.abspath(os.path.dirname(__file__))
if os.system(cmd) != 0:
print ‘Adding CA.crt to system keychain Failed!‘
sys.exit(0)
print ‘Adding CA.crt to system keychain Done‘
print ‘To start goagent right now try this command: sudo launchctl load /Library/LaunchDaemons/org.goagent.macos.plist‘
print ‘To checkout log file: using Console.app to locate /var/log/goagent.log‘
def main_windows():
if 1 == ctypes.windll.user32.MessageBoxW(None u‘是否将goagent.exe加入到启动项?‘ u‘GoAgent 对话框‘ 1):
if 1 == ctypes.windll.user32.MessageBoxW(None u‘
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
....... 59 2013-08-26 10:35 翻墙\谷歌翻墙\.gitignore
....... 3397 2013-08-26 10:35 翻墙\谷歌翻墙\local\addto-startup.py
....... 4520 2013-08-26 10:35 翻墙\谷歌翻墙\local\addto-startup.vbs
....... 2887 2013-08-26 10:35 翻墙\谷歌翻墙\local\CA.crt
....... 250101 2013-08-26 10:35 翻墙\谷歌翻墙\local\cacert.pem
....... 2952 2013-08-26 10:35 翻墙\谷歌翻墙\local\certs\.addons.mozilla.org.crt
....... 3022 2013-08-26 10:35 翻墙\谷歌翻墙\local\certs\.ak.facebook.com.crt
....... 2961 2013-08-26 10:35 翻墙\谷歌翻墙\local\certs\.ak.fbcdn.net.crt
....... 3010 2013-08-26 10:35 翻墙\谷歌翻墙\local\certs\.akamaihd.net.crt
文件 2932 2013-08-26 20:21 翻墙\谷歌翻墙\local\certs\.alipay.com.crt
文件 2952 2013-08-26 20:21 翻墙\谷歌翻墙\local\certs\.alipayob
....... 2936 2013-08-26 10:35 翻墙\谷歌翻墙\local\certs\.amazonaws.com.crt
....... 3022 2013-08-26 10:35 翻墙\谷歌翻墙\local\certs\.api.twitter.com.crt
....... 2936 2013-08-26 10:35 翻墙\谷歌翻墙\local\certs\.appspot.com.crt
文件 2928 2013-08-31 23:38 翻墙\谷歌翻墙\local\certs\.baidu.com.crt
....... 2965 2013-08-26 10:35 翻墙\谷歌翻墙\local\certs\.c.youtube.com.crt
....... 2969 2013-08-26 10:35 翻墙\谷歌翻墙\local\certs\.cdn.twitter.com.crt
....... 2960 2013-08-26 10:35 翻墙\谷歌翻墙\local\certs\.channel.facebook.com.crt
....... 2969 2013-08-26 10:35 翻墙\谷歌翻墙\local\certs\.cloudflare.com.crt
....... 2940 2013-08-26 10:35 翻墙\谷歌翻墙\local\certs\.cloudfront.net.crt
....... 2957 2013-08-26 10:35 翻墙\谷歌翻墙\local\certs\.dropbox.com.crt
....... 2936 2013-08-26 10:35 翻墙\谷歌翻墙\local\certs\.e.akamai.net.crt
....... 3006 2013-08-26 10:35 翻墙\谷歌翻墙\local\certs\.facebook.com.crt
....... 2936 2013-08-26 10:35 翻墙\谷歌翻墙\local\certs\.facebook.net.crt
文件 2948 2013-08-30 11:30 翻墙\谷歌翻墙\local\certs\.g.doubleclick.net.crt
....... 2932 2013-08-26 10:35 翻墙\谷歌翻墙\local\certs\.github.com.crt
....... 2936 2013-08-26 10:35 翻墙\谷歌翻墙\local\certs\.githubapp.com.crt
....... 0 2013-08-26 10:35 翻墙\谷歌翻墙\local\certs\.gitkeep
....... 2960 2013-08-26 10:35 翻墙\谷歌翻墙\local\certs\.google-analytics.com.crt
....... 2998 2013-08-26 10:35 翻墙\谷歌翻墙\local\certs\.google.com.crt
............此处省略73个文件信息
相关资源
- 18节信用变现课重要升级版:掌握信用
- 一句话木马2种方法入侵网站(演示)
- 黑客与社会工程学.rar
- 黑客学习资料大集合.txt
- lsgcsh_9491197.zip
- lucene.net2.3.1.2盘古分词演示程序.rar
- 数字中国:大数据与政府管理决策.江
- 黑客防线2004精华本.rar
- 蓝光工程量.rar
- PEiD0.95.rar
- Web应用黑客手册.7z
- 反欺骗的艺术—世界传奇黑客的经历
- 原型设计大师AXURERP网站与APP设计从入
- 42f1494d963f3cb6c3af35a703c65e08.rar
- 德州扑克.rar
- 322页码完整《线上幽灵世界头号黑客
- 国家电网计算机类专业知识行测.rar
- 概率论与数理统计陈希孺.pdf
- 六合源码.rar
- 黑客与画家(中文版).pdf
- 蓝宝石BIOS打包588和584和570等.zip
- 第五天.zip
- a14ff2772bc9c71b45feff7d9b861229.zip
- 大作家自动写作软件_大师版_免费版
- zzljlu_3186901.zip
- [SPSS统计分析方法及应用第4版][薛薇
- 简单银行个人存款管理系统
- C坦克大战电脑版小游戏.rar
- 自考英语(二)试卷及答案.rar
- yum-3.4.3.tar及其他
评论
共有 条评论