Skip to content

Things shouldn't happen more than three times. - #12

Closed
bytecategory wants to merge 1 commit into
XTLS:mainfrom
bytecategory:master
Closed

bytecategory wants to merge 1 commit into
XTLS:mainfrom
bytecategory:master

Conversation

@bytecategory

Copy link
Copy Markdown
if upCount >= 600 && upCount <= 750 &&
					((downCount >= 170 && downCount <= 180) || (downCount >= 3000 && downCount <= 8000)) {
					fmt.Printf("%v is Trojan\n", req.URL.Host)
				}

The new threshold is valid while the old threshold is invalid.

				if upCount >= 650 && upCount <= 750 &&
					((downCount >= 170 && downCount <= 180) || (downCount >= 3000 && downCount <= 7500)) {
					fmt.Printf("%v is Trojan\n", req.URL.Host)
				}

Minimum verification

1..3 | ForEach-Object { curl.exe -I -x http://127.0.0.1:11111 https://www.bing.com }

Then

1..3 | ForEach-Object { curl.exe -I -x http://127.0.0.1:12345 https://www.bing.com }

trojan-killer should output something like this

Trojan-killer v1.0.0 started
Listening on 127.0.0.1:12345
2026-05-10 22:25:32 from 127.0.0.1:44219 accepted 127.0.0.1:22222
127.0.0.1:22222 upCount 622     downCount 7343  1 times
2026-05-10 22:25:32 from 127.0.0.1:44223 accepted 127.0.0.1:22222
127.0.0.1:22222 upCount 622     downCount 7343  2 times
2026-05-10 22:25:33 from 127.0.0.1:44227 accepted 127.0.0.1:22222
127.0.0.1:22222 is Trojan!
2026-05-10 22:26:09 from 127.0.0.1:44231 accepted www.bing.com:443
2026-05-10 22:26:09 from 127.0.0.1:44233 accepted www.bing.com:443
2026-05-10 22:26:09 from 127.0.0.1:44235 accepted www.bing.com:443
Things shouldn't happen more than three times.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant