rolisoft / obfuscation-tunnel Goto Github PK
View Code? Open in Web Editor NEWHigh-performance protocol-agnostic UDP/TCP/ICMP packet forwarder and obfuscator.
License: Other
High-performance protocol-agnostic UDP/TCP/ICMP packet forwarder and obfuscator.
License: Other
make error on Ubuntu 18.04.4 LTS (Bionic Beaver), requested for help,
root@Ubunto:~/Obfuscation-Tunnel# make
g++ -std=c++14 -Wall -Wextra -Ofast -DHAVE_PCAP=1 -lpcap -lpthread -lssl -lcrypto main.cpp -o tunnel
In file included from factory.cpp:4:0,
from main.cpp:1:
udp_client.cpp: In member function 'int udp_client::_handshake()':
udp_client.cpp:88:18: warning: variable 'fatal' set but not used [-Wunused-but-set-variable]
bool fatal = false;
^~~~~
In file included from factory.cpp:8:0,
from main.cpp:1:
tcp_server.cpp: In member function 'int tcp_server::_accept()':
tcp_server.cpp:97:22: warning: variable 'fatal' set but not used [-Wunused-but-set-variable]
bool fatal = false;
^~~~~
/tmp/ccaE02sd.o: In function `ssl_gen_cert(char const*, x509_st**, evp_pkey_st**)':
I'm trying to build this on Ubuntu 20.04 and the instructions don't line up. libssl-dev
is needed, and building without PCAP doesn't work. Even the Makefile doesn't work. I'm not a C/C++ dev, but I hacked it with:
diff --git a/Makefile b/Makefile
index 876df30..e6504f6 100644
--- a/Makefile
+++ b/Makefile
@@ -1,8 +1,9 @@
#CXXFLAGS = -ggdb -fsanitize=address -fno-omit-frame-pointer -std=c++14 -Wall -Wextra -Ofast -DHAVE_PCAP=1 -lpcap -lpthread -lssl -lcrypto -I/usr/local/opt/openssl/include -L/usr/local/opt/openssl/lib
-CXXFLAGS = -std=c++14 -Wall -Wextra -Ofast -DHAVE_PCAP=1 -lpcap -lpthread -lssl -lcrypto
+CXXFLAGS = -std=c++14 -Wall -Wextra -Ofast -DHAVE_PCAP=1
+LIBS = -lpcap -lpthread -lssl -lcrypto
tunnel: main.cpp shared.cpp factory.cpp forwarders.cpp tls_helpers.cpp transport_base.cpp obfuscate_base.cpp simple_obfuscator.cpp xor_obfuscator.cpp mocker_base.cpp dns_mocker.cpp http_ws_mocker.cpp socks5_proxy.cpp udp_base.cpp udp_client.cpp udp_server.cpp dtls_server.cpp tcp_base.cpp tcp_client.cpp tcp_server.cpp icmp_base.cpp icmp_client.cpp icmp_server.cpp icmp6_base.cpp icmp6_client.cpp icmp6_server.cpp
- $(CXX) $(CXXFLAGS) main.cpp -o $@
+ $(CXX) $(CXXFLAGS) main.cpp -o $@ $(LIBS)
clean:
rm tunnel
Here is a Dockerfile to reproduce the problems/fixes:
FROM ubuntu:20.04
RUN apt-get update
RUN apt-get install -y build-essential git
RUN apt-get install -y libpcap-dev libssl-dev
ADD Obfuscation-Tunnel/ /src
WORKDIR /src
RUN make
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.