吾爱破解 - LCG - LSG |安卓破解|病毒分析|www.52pojie.cn

 找回密码
 注册[Register]

QQ登录

只需一步,快速开始

查看: 9044|回复: 11
收起左侧

[其他转载] 自己做的WIF共享上网软件,带源代码

[复制链接]
zl1168 发表于 2014-5-24 15:10
AU3写的WIFI共享软件,带源代码,第一次写的不尽完美,求高手指点,没有什么技术含量,就是运用WN7自带功能,用AU3进行了简化操作而已,自己做的不带广告没后门用到方便。
123.bmp
[Asm] 纯文本查看 复制代码
#Region ;**** 参数创建于 ACNWrapper_GUI ****
#AutoIt3Wrapper_Icon=12345.ico
#AutoIt3Wrapper_Outfile=WIFIgongxiang.exe
#EndRegion ;**** 参数创建于 ACNWrapper_GUI ****
#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("WIFI共享器-QQ582573319", 267, 251, 224, 229)
$Pic1 = GUICtrlCreatePic("C:\Documents and Settings\Administrator\桌面\9885883_195801812000_1.jpg", 0, 0, 265, 89)
$Button1 = GUICtrlCreateButton("打开WIFI", 24, 136, 97, 41)
$Button2 = GUICtrlCreateButton("关闭WIFI", 152, 136, 97, 41)
$Label1 = GUICtrlCreateLabel("SSID:", 8, 104, 38, 20)
GUICtrlSetFont(-1, 10, 400, 0, "MS Sans Serif")
$Input1 = GUICtrlCreateInput("", 48, 103, 81, 21)
$Label2 = GUICtrlCreateLabel("密码:", 142, 104, 40, 20)
GUICtrlSetFont(-1, 10, 400, 0, "MS Sans Serif")
$input2=GUICtrlCreateInput("", 182, 103, 81, 21, BitOR($GUI_SS_DEFAULT_INPUT,$ES_PASSWORD))
$Label3 = GUICtrlCreateLabel("", 10, 184, 4, 4)
GUICtrlSetFont(-1, 10, 400, 0, "MS Sans Serif")
GUICtrlSetResizing(-1, $GUI_DOCKAUTO)
$Label4 = GUICtrlCreateLabel("欢迎使用WIFI共享器!!", 16, 192, 135, 17)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
$sid=GUICtrlRead($Input1)
$key=GUICtrlRead($Input2)
RunWait(@ComSpec & ' /C netsh wlan set hostednetwork mode=allow ssid="' & $sid &'" key="' & $key &'" ',"", @SW_HIDE ) 
RunWait(@ComSpec & ' /C netsh wlan start hostednetwork',"", @SW_HIDE) 
GUICtrlSetState($Button1, $GUI_DISABLE)
$Label4 = GUICtrlCreateLabel("你的账号为"&$sid &@LF&"你的密码为"&$key&@LF&"成功开启你的无线网络", 16, 192, 135, 100)
Case $Button2
RunWait(@ComSpec & ' /C netsh wlan stop hostednetwork',"", @SW_HIDE)
GUICtrlSetState($Button1, $GUI_ENABLE)
$Label4 = GUICtrlCreateLabel("已经成功关闭你的无线网络", 16, 192, 135, 100)
EndSwitch
WEnd

wifi.zip (280.37 KB, 下载次数: 184)

发帖前要善用论坛搜索功能,那里可能会有你要找的答案或者已经有人发布过相同内容了,请勿重复发帖。

 楼主| zl1168 发表于 2014-5-24 17:41
周小南 发表于 2014-5-24 16:44
简化了手动能力,不知道能自动识别是宽带上网还是无线上网吗。
楼主可以加个皮肤的会更好看。

刚学习不会加皮肤呀,,这其实都是个命令,只是给它简化了,方便使用,一直没解决怎样自动共享,求高手
周小南 发表于 2014-5-24 16:44
简化了手动能力,不知道能自动识别是宽带上网还是无线上网吗。
楼主可以加个皮肤的会更好看。

免费评分

参与人数 1热心值 +1 收起 理由
南在南方 + 1 我很赞同!

查看全部评分

头像被屏蔽
Hacker丶绝筱伦 发表于 2014-5-24 15:15
Petrel 发表于 2014-5-24 15:15
记得au3
写的软件  挺漂亮的呀你这个 有点说不过去 哦
wbylll 发表于 2014-5-24 15:21
表示支持,毕竟是原创
泪河之缘 发表于 2014-5-24 15:22
支持LZ发帖、
trustguan 发表于 2014-5-24 15:34
是不是自动开启ICS服务,不需要手动配置
动次打次 发表于 2014-5-24 15:42
这破学校   打开WIFI就断网。。。
良辰、星仔 发表于 2014-5-24 17:56
好像不错 拿来试试
您需要登录后才可以回帖 登录 | 注册[Register]

本版积分规则

快速回复 收藏帖子 返回列表 搜索

RSS订阅|小黑屋|处罚记录|联系我们|吾爱破解 - LCG - LSG ( 京ICP备16042023号 | 京公网安备 11010502030087号 )

GMT+8, 2024-9-22 07:37

Powered by Discuz!

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表