Does anyone know how to get wfpadtools by Marc Juarez run? I tried but I failed. I am not sure whether it is because of Tor version.

Torrc file for Bridge (torrc-relay.txt):

DataDirectory /Users/aaron/wfpadtools/tor-config/tmp/wfpad-torserver       
Log notice stdout    
SOCKSPort auto    
AssumeReachable 1    
PublishServerDescriptor 0    
Exitpolicy reject *:*    
ORPort auto    
Nickname "WfpadTest"    
BridgeRelay 1    
ServerTransportListenAddr wfpad
ServerTransportPlugin wfpad exec /Users/aaron/wfpadtools/bin/obfsproxy \
    --log-min-severity=debug \
    --log-file=/Users/aaron/wfpadtools/tor-config/tmp/wfpad-server.log \

Torrc file for client (torrc-client.txt):

DataDirectory /Users/aaron/wfpadtools/tor-config/tmp/wfpad-torclient    
Log notice stdout    
SOCKSPort auto    
UseBridges 1    
ClientTransportPlugin wfpad exec /Users/aaron/wfpadtools/bin/obfsproxy \
    --log-min-severity=debug \
    --log-file=/Users/aaron/wfpadtools/tor-config/tmp/wfpad-client.log \

Then I first typed in tor -f torrc-relay.txt to start running the Tor bridge with wfpad.
It seems fine, but after I typed in tor -f torc-client.txt it got stuck.

I checked the server(bridge) log file, and it said

2019-08-18 15:48:15,696 [INFO] Starting factory <obfsproxy.network.network.StaticDestinationClientFactory instance at 0x109a96320>
2019-08-18 15:48:15,697 [DEBUG] fact_c_0x109a96320: Client factory started connecting.
2019-08-18 15:48:15,699 [DEBUG] conn_0x109a71d10: connectionMade (server): Setting it as downstream on our circuit.
2019-08-18 15:48:15,699 [DEBUG] circ_0x109a962d8: Setting downstream connection (conn_0x109a71d10).
2019-08-18 15:48:15,700 [DEBUG] conn_0x109a71d10: Incomplete circuit; cached 203 bytes.
2019-08-18 15:48:15,700 [DEBUG] conn_0x109a71650: connectionMade (server): Setting it as upstream on our circuit.
2019-08-18 15:48:15,700 [DEBUG] circ_0x109a962d8: Setting upstream connection (conn_0x109a71650).
2019-08-18 15:48:15,700 [DEBUG] circ_0x109a962d8: Circuit completed.
2019-08-18 15:48:15,700 [DEBUG] [wfpad - server] Connected with the other WFPad end.
2019-08-18 15:48:15,712 [DEBUG] circ_0x109a962d8: downstream: Received 203 bytes.
2019-08-18 15:48:15,712 [DEBUG] [wfpad - server] - Burst (rcv) deferrer was cancelled.
2019-08-18 15:48:15,712 [DEBUG] [wfpad - server] - Gap (rcv) deferrer was cancelled.
2019-08-18 15:48:15,712 [DEBUG] [wfpad - server] Parse protocol messages from stream.
2019-08-18 15:48:15,713 [DEBUG] [wfpad] Message header: totalLen=5635, payloadLen=256, flags=CONTROL
2019-08-18 15:48:15,713 [ERROR] TotalLen: 5635, PayloadLen: 256, Flags: 198
2019-08-18 15:48:15,713 [ERROR] [wfpad - server] Exception extracting messages from stream: Invalid header field.
Traceback (most recent call last):
  File "/Users/aaron/wfpadtools/obfsproxy/transports/wfpadtools/wfpad.py", line 418, in processMessages
    msgs = self._msgExtractor.extract(data)
  File "/Users/aaron/wfpadtools/obfsproxy/transports/wfpadtools/message.py", line 416, in extract
  File "/Users/aaron/wfpadtools/obfsproxy/transports/wfpadtools/message.py", line 362, in parseMinHeaderFields
    raise base.PluggableTransportError("Invalid header field.")
PluggableTransportError: Invalid header field.

I wonder is it because of the version of Tor?

I use Tor (git-9b1aa9a5726b61bd) and python2.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.