You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Tunnel Manager.ahk
+41-15Lines changed: 41 additions & 15 deletions
Original file line number
Diff line number
Diff line change
@@ -1,9 +1,9 @@
1
1
global compiledForConsole := 0 ; ¡¡Important!! Depending on how you want to compile the script, output will be given via console (Chalk) or native MsgBox
2
-
; Last changed date: 23/10/2025 19:15
2
+
; Last changed date: 04/04/2026 18:45
3
3
; OS Version ...: Windows 10 x64 and Above (Support not guaranteed on Windows 7)
4
4
;@Ahk2Exe-SetName elModo7's Tunnel Manager
5
5
;@Ahk2Exe-SetDescription SSH Tunnel Manager for proxying`, securing and pivoting.
#MaxHotkeysPerInterval, 999; Not really used but in case other programs may send hotkeys really fast ignoring this line could be an issue
78
78
SetWorkingDir, %A_ScriptDir%
79
79
SetBatchLines, -1
80
-
global version := "1.3.4"
80
+
global version := "1.3.5"
81
81
global isVisible := 1
82
82
global cmdProxy, programData, programDataJson, notificationsData, notificationsDataJson, profile, mytcp
83
+
global plinkExe := "proxy.exe"
84
+
global plinkPath := A_Temp
83
85
86
+
checkOverrides() ; Custom override config
84
87
plinkPromptDownload() ; PLink install
85
88
FileInstall, lib/quricol64.dll, % A_Temp"\quricol64.dll", 0 ; Install but do not overwrite quircol64.dll
86
89
FileCreateDir, % A_Temp"\Tunnel_Manager"
@@ -182,13 +185,13 @@ if(!nogui){
182
185
neutron.Show("w1200 h500")
183
186
}
184
187
185
-
if(ProcessExist("proxy.exe")){
188
+
if(ProcessExist(plinkExe)){
186
189
OnMessage(0x44, "OnMsgBox")
187
190
MsgBox0x2, Proxy is already running!, A previous instance of the Proxy has been detected.`nIt is recommended to close previous instances before continuing.`n`nWhat will you do?
RunWait, %cmdProxyAcceptKey%,, % programData.console_enabled ? "" : "Hide" ; Automatically accepts key of SSH Server once
480
484
programData.accepted_key := "1"
@@ -642,18 +646,40 @@ lookForUpdates:
642
646
neutron.wnd.showVersionCheckModal()
643
647
return
644
648
649
+
checkOverrides() {
650
+
global
651
+
if(FileExist("overrides.conf")) {
652
+
Fileread, overrides, overrides.conf
653
+
Loop, Parse, overrides, `n
654
+
{
655
+
StringReplace, row, % A_LoopField, `n,, All
656
+
StringReplace, row, % row, `r,, All
657
+
row := Trim(row)
658
+
if(row == ""||SubStr(row, 1, 1) == "#") {
659
+
continue
660
+
}
661
+
rowData := StrSplit(row, "=")
662
+
Switch rowData[1]
663
+
{
664
+
Case "plink":
665
+
SplitPath, % rowData[2], plinkExe, plinkPath
666
+
}
667
+
}
668
+
}
669
+
}
670
+
645
671
plinkPromptDownload(){
646
672
global
647
673
; 1.2.28 GitHub sometimes has issues with compiled files on the repo, add download
648
-
if(!FileExist(A_Temp"\proxy.exe")){
674
+
if(!FileExist(plinkPath"\" plinkExe)){
649
675
OnMessage(0x44, "OnMsgBoxPromptPlink")
650
676
MsgBox0x31, PLink.exe not found, This software requires plink.exe to run`, you can either download the latest version or use the built in one (recommended).`n
651
677
OnMessage(0x44, "")
652
678
653
679
IfMsgBoxOK, {
654
-
FileInstall, lib/proxy.exe, % A_Temp"\proxy.exe", 0 ; 1.2.28: Do not replace Plink each time
680
+
FileInstall, lib/proxy.exe, % plinkPath"\" plinkExe, 0 ; 1.2.28: Do not replace Plink each time
0 commit comments