basil00 / TorWall

Tallow - Transparent Tor for Windows
http://reqrypt.org/tallow.html
GNU General Public License v3.0
507 stars 121 forks source link

Unable to use self build from Visual Studio 2017 #25

Closed fahminlb33 closed 5 years ago

fahminlb33 commented 5 years ago

I'm trying to build TorWall from Visual Studio 2017, the file complies successfully but it can't access internet.

Tallow VERSION Copyright (C) 2018 basil

License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

INIT Initializing DNS handler...
INIT Initializing packet redirection...
INFO Filter is " (ipv6? true: false) or (udp? udp.DstPort != 53: false) or (not tcp and not udp? true: false)"
INIT Initializing GUI...
INIT Initializing Tor thread...
INIT Initializing cleanup thread...
STATUS Starting Tor...
INIT Launching GUI...
STATUS Tor 0.3.5.8 (git-5030edfb534245ed) running on Windows 8 [or later] with Libevent 2.1.8-stable, OpenSSL 1.0.2q, Zlib 1.2.11, Liblzma N/A, and Libzstd N/A....
STATUS Tor can't help you if you use it wrong! Learn how to be safe at https://www.torproject.org/download/download#warning...
STATUS Read configuration file "D:\Programming\Workspace\[TMS]\TMSCore\Debug\torrc"....
STATUS Path for GeoIPFile (geoip) is relative and will resolve to D:\Programming\Workspace\[TMS]\TMSCore\Debug\geoip. Is this what you wanted?...
STATUS Path for GeoIPv6File (geoip6) is relative and will resolve to D:\Programming\Workspace\[TMS]\TMSCore\Debug\geoip6. Is this what you wanted?...
STATUS Opening Socks listener on 127.0.0.1:49097...
STATUS Opened Socks listener on 127.0.0.1:49097...
STATUS Parsing GEOIP IPv4 file geoip....
STATUS Parsing GEOIP IPv6 file geoip6....
STATUS Bootstrapped 0: Starting...
STATUS Starting with guard context "default"...
STATUS Bootstrapped 5: Connecting to directory server...
STATUS Bootstrapped 10: Finishing handshake with directory server...
STATUS Bootstrapped 80: Connecting to the Tor network...
STATUS Bootstrapped 85: Finishing handshake with first hop...
STATUS Bootstrapped 90: Establishing a Tor circuit...
STATUS Bootstrapped 100: Press the "Tor" button to begin...
INFO Tor divert START
INFO Traffic deny filter is " (ipv6? true: false) or (udp? udp.DstPort != 53: false) or (not tcp and not udp? true: false)"
INFO Traffic divert filter is " !loopback"
FLUSH DNS cache
STATUS Tor is ON...
INTERCEPT Domain cuscochromeextension-pa.googleapis.com mapped to address 44.167.53.87
ERROR Send packet failed (err=87)
INTERCEPT Domain www.google.com mapped to address 44.167.255.152
ERROR Send packet failed (err=87)
INTERCEPT Domain cuscochromeextension-pa.googleapis.com mapped to address 44.167.20.42
ERROR Send packet failed (err=87)
INTERCEPT Domain www.google.com mapped to address 44.167.168.138
ERROR Send packet failed (err=87)
INTERCEPT Domain cuscochromeextension-pa.googleapis.com mapped to address 44.167.124.5
ERROR Send packet failed (err=87)
INTERCEPT Domain whoer.net mapped to address 44.167.19.95
ERROR Send packet failed (err=87)
INTERCEPT Domain www.google.com mapped to address 44.167.161.191
ERROR Send packet failed (err=87)
INTERCEPT Domain whoer.net mapped to address 44.167.89.190
ERROR Send packet failed (err=87)
INTERCEPT Domain cuscochromeextension-pa.googleapis.com mapped to address 44.167.35.171
ERROR Send packet failed (err=87)
INTERCEPT Domain whoer.net mapped to address 44.167.191.174
ERROR Send packet failed (err=87)
INTERCEPT Domain www.google.com mapped to address 44.167.175.32
ERROR Send packet failed (err=87)
INTERCEPT Domain whoer.net mapped to address 44.167.158.81
ERROR Send packet failed (err=87)
INTERCEPT Domain cuscochromeextension-pa.googleapis.com mapped to address 44.167.142.221
ERROR Send packet failed (err=87)
INTERCEPT Domain www.google.com mapped to address 44.167.61.129
ERROR Send packet failed (err=87)
INTERCEPT Domain whoer.net mapped to address 44.167.118.76
ERROR Send packet failed (err=87)
BLOCK dns.msftncsi.com
BLOCK dns.msftncsi.com
BLOCK dns.msftncsi.com
INTERCEPT Domain google.com mapped to address 44.167.73.217
ERROR Send packet failed (err=87)
INTERCEPT Domain google.com mapped to address 44.167.100.104
INTERCEPT Domain google.com mapped to address 44.167.134.43
ERROR Send packet failed (err=87)
ERROR Send packet failed (err=87)
INTERCEPT Domain whoer.net mapped to address 44.167.124.114
ERROR Send packet failed (err=87)
INTERCEPT Domain clients4.google.com mapped to address 44.167.0.43
ERROR Send packet failed (err=87)
INTERCEPT Domain www.google-analytics.com mapped to address 44.167.138.211
ERROR Send packet failed (err=87)
INTERCEPT Domain google.com mapped to address 44.167.129.153
ERROR Send packet failed (err=87)
INTERCEPT Domain google.com mapped to address 44.167.166.132
ERROR Send packet failed (err=87)
INTERCEPT Domain relay-c656887d.net.anydesk.com mapped to address 44.167.45.211
ERROR Send packet failed (err=87)
INTERCEPT Domain whoer.net mapped to address 44.167.68.241
ERROR Send packet failed (err=87)
INTERCEPT Domain clients4.google.com mapped to address 44.167.201.227
ERROR Send packet failed (err=87)
BLOCK dns.msftncsi.com
INTERCEPT Domain www.google-analytics.com mapped to address 44.167.20.218
ERROR Send packet failed (err=87)
INTERCEPT Domain sn3302.storage.live.com mapped to address 44.167.158.185
ERROR Send packet failed (err=87)
INTERCEPT Domain google.com mapped to address 44.167.252.213
ERROR Send packet failed (err=87)
INTERCEPT Domain relay-c656887d.net.anydesk.com mapped to address 44.167.205.171
ERROR Send packet failed (err=87)
INTERCEPT Domain whoer.net mapped to address 44.167.146.187
ERROR Send packet failed (err=87)
INTERCEPT Domain clients4.google.com mapped to address 44.167.184.186
ERROR Send packet failed (err=122)
INTERCEPT Domain www.google-analytics.com mapped to address 44.167.217.115
ERROR Send packet failed (err=122)
INTERCEPT Domain sn3302.storage.live.com mapped to address 44.167.106.171
ERROR Send packet failed (err=87)
INTERCEPT Domain relay-c656887d.net.anydesk.com mapped to address 44.167.190.78
ERROR Send packet failed (err=87)
INTERCEPT Domain sn3302.storage.live.com mapped to address 44.167.171.196
ERROR Send packet failed (err=87)
INTERCEPT Domain google.com mapped to address 44.167.103.48
ERROR Send packet failed (err=87)
INTERCEPT Domain whoer.net mapped to address 44.167.205.16
ERROR Send packet failed (err=87)
INTERCEPT Domain clients4.google.com mapped to address 44.167.148.75
ERROR Send packet failed (err=87)
INTERCEPT Domain www.google-analytics.com mapped to address 44.167.217.186
ERROR Send packet failed (err=87)
INTERCEPT Domain relay-c656887d.net.anydesk.com mapped to address 44.167.16.84
ERROR Send packet failed (err=87)
BLOCK dns.msftncsi.com
INFO Tor divert STOP
FLUSH DNS cache
STATUS Tor is OFF...

Compiler:

/JMC /permissive- /GS /analyze- /W3 /Zc:wchar_t /Qspectre /ZI /Gm- /Od /sdl /Fd"Debug\vc141.pdb" /Zc:inline /fp:precise /D "_CRT_SECURE_NO_WARNINGS" /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_MBCS" /errorReport:prompt /WX- /Zc:forScope /RTC1 /Gd /Oy- /MDd /FC /Fa"Debug\" /EHsc /nologo /Fo"Debug\" /Fp"Debug\Divert.pch" /diagnostics:classic 

Linker:

/OUT:"D:\Programming\Workspace\[TMS]\TMSCore\Debug\Divert.exe" /MANIFEST /NXCOMPAT /PDB:"D:\Programming\Workspace\[TMS]\TMSCore\Debug\Divert.pdb" /DYNAMICBASE "Comctl32.lib" "Ws2_32.lib" "windivert.lib" "kernel32.lib" "user32.lib" "gdi32.lib" "winspool.lib" "comdlg32.lib" "advapi32.lib" "shell32.lib" "ole32.lib" "oleaut32.lib" "uuid.lib" "odbc32.lib" "odbccp32.lib" /DEBUG /MACHINE:X86 /INCREMENTAL:NO /PGD:"D:\Programming\Workspace\[TMS]\TMSCore\Debug\Divert.pgd" /SUBSYSTEM:WINDOWS /MANIFESTUAC:"level='requireAdministrator' uiAccess='false'" /ManifestFile:"Debug\Divert.exe.intermediate.manifest" /ERRORREPORT:PROMPT /NOLOGO /TLBID:1 

But using precompiled exe this problem didn't exists.

basil00 commented 5 years ago

Packet injection is failing: ERROR Send packet failed (err=87)

Tallow does not officially support VS2017, but I am unsure what the problem would be.

fahminlb33 commented 5 years ago

I managed to cross-compile it from WSL. It's working now.