Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

93 Commits

Repository files navigation

simple cross-platform socks5 proxy server, which supports TCP and UDP commands, and can work how library
callbacks use example:
// announce callbacks:
ep::callback<udp_callback_t> udp_callback;
ep::callback<tcp_callback_t> tcp_callback;
// install detour functions:
udp_callback.install([&](ep::client* person, unsignedint& source_ip, unsignedint& dest_ip, unsignedshort& source_port, unsignedshort& dest_port, ep::buffer* buf) -> bool {
printf("[%s -> %s | %d -> %d] length: %d\n", ep::utils::dip_to_strip(source_ip).c_str(), ep::utils::dip_to_strip(dest_ip).c_str(), source_port, dest_port, buf->length);
returntrue;
});
tcp_callback.install([&](ep::client* person, std::string source_ip, std::string dest_ip, ep::buffer* buf) -> bool {
printf("[%s -> %s] length: %d\n", source_ip.c_str(), dest_ip.c_str(), buf->length);
returntrue;
});
// enable callbacks treatment:
proxy.callback_enable(ep::callback_t::udp, &udp_callback);
proxy.callback_enable(ep::callback_t::tcp, &tcp_callback);

todo list:

rewrite thread logicrewrite ep::buffer to std::vectorsync clients, method to getmethod to sent packets from callbacksadd more comments (or write small doc) to internal functional

its not used, does not help, and does not imply the possibility of bypassing blocking and using for selfish purposes

About

simple cross-platform socks5 proxy server, supprotive TCP and UDP commands and with the ability to work from library (*its not used, does not help, and does not imply the possibility of bypassing blocking and using for selfish purposes*)

Topics

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

Used by

Contributors

Languages