Skip to content
This repository has been archived by the owner on Aug 13, 2024. It is now read-only.
/ routeros Public archive

Fixed compilation error for /brute_force/www_brute #23

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Fixed compilation error for /brute_force/www_brute #23

wants to merge 1 commit into from

Conversation

devrim-oguz
Copy link

Warning: The tool still gives "Bad decrypt!" errors for some reason!

Compiling the files according to the guidelines gives rise to the error on Ubuntu 20.04 (x64) 5.4.0-29-generic:
gcc version 9.3.0 (Ubuntu 9.3.0-10ubuntu2)

[ 11%] Building CXX object CMakeFiles/www_bruteforce.dir/home/adonizer/Downloads/routeros-master/common/jsproxy_session.cpp.o
[ 22%] Linking CXX executable www_bruteforce
/usr/bin/ld: CMakeFiles/www_bruteforce.dir/home/adonizer/Downloads/routeros-master/common/jsproxy_session.cpp.o: in function JSProxySession::JSProxySession(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)': /home/adonizer/Downloads/routeros-master/common/jsproxy_session.cpp:319: undefined reference to curve25519_donna(unsigned char*, unsigned char const*, unsigned char const*)'
/usr/bin/ld: CMakeFiles/www_bruteforce.dir/home/adonizer/Downloads/routeros-master/common/jsproxy_session.cpp.o: in function JSProxySession::doPublicKey(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, bool)': /home/adonizer/Downloads/routeros-master/common/jsproxy_session.cpp:408: undefined reference to curve25519_donna(unsigned char*, unsigned char const*, unsigned char const*)'
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/www_bruteforce.dir/build.make:192: www_bruteforce] Error 1
make[1]: *** [CMakeFiles/Makefile2:76: CMakeFiles/www_bruteforce.dir/all] Error 2
make: *** [Makefile:84: all] Error 2

After the fix:

[ 11%] Building CXX object CMakeFiles/www_bruteforce.dir/src/main.cpp.o
[ 22%] Building CXX object CMakeFiles/www_bruteforce.dir/home/adonizer/Downloads/routeros-master/common/jsproxy_session.cpp.o
[ 33%] Building CXX object CMakeFiles/www_bruteforce.dir/home/adonizer/Downloads/routeros-master/common/session.cpp.o
[ 44%] Building CXX object CMakeFiles/www_bruteforce.dir/home/adonizer/Downloads/routeros-master/common/sha1.cpp.o
[ 55%] Building CXX object CMakeFiles/www_bruteforce.dir/home/adonizer/Downloads/routeros-master/common/md4.cpp.o
[ 66%] Building CXX object CMakeFiles/www_bruteforce.dir/home/adonizer/Downloads/routeros-master/common/rc4.cpp.o
[ 77%] Building CXX object CMakeFiles/www_bruteforce.dir/home/adonizer/Downloads/routeros-master/common/des.cpp.o
[ 88%] Building CXX object CMakeFiles/www_bruteforce.dir/home/adonizer/Downloads/routeros-master/common/winbox_message.cpp.o
[100%] Linking CXX executable www_bruteforce
[100%] Built target www_bruteforce

Compiling the files according to the guidelines gives rise to the error on Ubuntu 20.04 (x64) 5.4.0-29-generic:
gcc version 9.3.0 (Ubuntu 9.3.0-10ubuntu2)

[ 11%] Building CXX object CMakeFiles/www_bruteforce.dir/home/adonizer/Downloads/routeros-master/common/jsproxy_session.cpp.o
[ 22%] Linking CXX executable www_bruteforce
/usr/bin/ld: CMakeFiles/www_bruteforce.dir/home/adonizer/Downloads/routeros-master/common/jsproxy_session.cpp.o: in function `JSProxySession::JSProxySession(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)':
/home/adonizer/Downloads/routeros-master/common/jsproxy_session.cpp:319: undefined reference to `curve25519_donna(unsigned char*, unsigned char const*, unsigned char const*)'
/usr/bin/ld: CMakeFiles/www_bruteforce.dir/home/adonizer/Downloads/routeros-master/common/jsproxy_session.cpp.o: in function `JSProxySession::doPublicKey(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, bool)':
/home/adonizer/Downloads/routeros-master/common/jsproxy_session.cpp:408: undefined reference to `curve25519_donna(unsigned char*, unsigned char const*, unsigned char const*)'
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/www_bruteforce.dir/build.make:192: www_bruteforce] Error 1
make[1]: *** [CMakeFiles/Makefile2:76: CMakeFiles/www_bruteforce.dir/all] Error 2
make: *** [Makefile:84: all] Error 2

After the fix:

[ 11%] Building CXX object CMakeFiles/www_bruteforce.dir/src/main.cpp.o
[ 22%] Building CXX object CMakeFiles/www_bruteforce.dir/home/adonizer/Downloads/routeros-master/common/jsproxy_session.cpp.o
[ 33%] Building CXX object CMakeFiles/www_bruteforce.dir/home/adonizer/Downloads/routeros-master/common/session.cpp.o
[ 44%] Building CXX object CMakeFiles/www_bruteforce.dir/home/adonizer/Downloads/routeros-master/common/sha1.cpp.o
[ 55%] Building CXX object CMakeFiles/www_bruteforce.dir/home/adonizer/Downloads/routeros-master/common/md4.cpp.o
[ 66%] Building CXX object CMakeFiles/www_bruteforce.dir/home/adonizer/Downloads/routeros-master/common/rc4.cpp.o
[ 77%] Building CXX object CMakeFiles/www_bruteforce.dir/home/adonizer/Downloads/routeros-master/common/des.cpp.o
[ 88%] Building CXX object CMakeFiles/www_bruteforce.dir/home/adonizer/Downloads/routeros-master/common/winbox_message.cpp.o
[100%] Linking CXX executable www_bruteforce
[100%] Built target www_bruteforce
@devrim-oguz
Copy link
Author

Some error still persists on runtime, I am unable to fix this problem for the time being. Asking for your help!

Example Output:

Error receiving or decrypting the challenge: {}
3 / 9999Bad decrypt! g�`��6��
Error receiving or decrypting the challenge: {}
4 / 9999Bad decrypt! %�#���r
Error receiving or decrypting the challenge: {}
5 / 9999Bad decrypt! �zr~��

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant