Coder Social home page Coder Social logo

obfuscation-tunnel's People

Contributors

rolisoft avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

obfuscation-tunnel's Issues

make: *** [tunnel] Error 1

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**)':

Building on Ubuntu 20.04

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.