5268ac routers
#24
I figured I'd add to this now evolving howto guide into attacking (and fail so far) a default password document for those of you using windows. I spend a lot of time getting openSSL to work in visual studio C++ so you won't have to make the same mistakes.
First the installation and compilation is described in this youtube video. 
install youtube guide for openSSL
But you'll see he has a hard time at the end of the video finding a working example of the implementation compatible with the latest revision.

#include <cstdio>
#include <string>
#include <iostream>
#include <stdio.h>

#include <openssl/md5.h>
#pragma warning(disable : 4996)

void main{
unsigned char digest[MD5_DIGEST_LENGTH];
string md5_text="hello world";
test_string = md5_text.c_str();
MD5((unsigned char*)test_string, strlen(test_string), (unsigned char*)&digest);
cout << int(digest[0]) << ' ' << int(digest[1]) << endl;
}

*note to lack of "&" in front of the test_string in the MD5 call. The &test_string shows up in a lot of examples and really screws things up, so don't do it!
Also this implementation allows you to change the length of MD5_text without the compiler yelling at you which is helpful to try different guesses.


#include <openssl/sha.h>

void main {
unsigned char digest[SHA_DIGEST_LENGTH];
string sha1_text="hello world";
test_string = sha1_text.c_str();
SHA1((unsigned char*)test_string, strlen(test_string), (unsigned char*)&digest);
cout << int(digest[0]) << ' ' << int(digest[1]) << endl;
}

That still won't work without the windows SDK installed and you'll have to link additional libraries from the SDK.
linker/input/additional dependencies (for the x64 debug and release)
Program Files\Microsoft SDKs\Windows\v7.1\Lib\x64\Crypt32.Lib
Program Files\Microsoft SDKs\Windows\v7.1\Lib\x64\WS2_32.Lib


Although the openSSL MD5 implementation is faster than anything I found online, I did find a faster SHA1 version
So it took a lot of work to get openSSL SHA1 to actually work, I was better of with the stand alone version. Live and learn.
Reply


Messages In This Thread
5268ac routers - by drsnooker - 11-27-2021, 09:49 PM
RE: 5268ac routers - by calexico - 11-28-2021, 03:21 AM
RE: 5268ac routers - by drsnooker - 12-06-2021, 02:03 AM
RE: 5268ac routers - by evets97 - 12-06-2021, 08:37 PM
RE: 5268ac routers - by drsnooker - 12-13-2021, 03:03 AM
RE: 5268ac routers - by evets97 - 12-13-2021, 03:39 PM
RE: 5268ac routers - by drsnooker - 12-13-2021, 08:24 PM
RE: 5268ac routers - by drsnooker - 01-02-2022, 01:50 AM
RE: 5268ac routers - by drsnooker - 01-03-2022, 04:10 AM
RE: 5268ac routers - by drsnooker - 01-04-2022, 12:43 AM
RE: 5268ac routers - by drsnooker - 01-06-2022, 02:56 AM
RE: 5268ac routers - by soxrok2212 - 01-10-2022, 10:18 PM
RE: 5268ac routers - by drsnooker - 01-15-2022, 06:09 AM
RE: 5268ac routers - by drsnooker - 02-02-2022, 02:31 AM
RE: 5268ac routers - by drsnooker - 02-14-2022, 12:06 AM
RE: 5268ac routers - by drsnooker - 03-21-2022, 11:58 PM
RE: 5268ac routers - by drsnooker - 03-02-2022, 08:12 AM
RE: 5268ac routers - by soxrok2212 - 03-04-2022, 05:49 AM
RE: 5268ac routers - by drsnooker - 03-04-2022, 11:39 PM
RE: 5268ac routers - by drsnooker - 03-05-2022, 12:01 AM
RE: 5268ac routers - by drsnooker - 03-14-2022, 12:57 AM
RE: 5268ac routers - by drsnooker - 03-18-2022, 01:23 AM
RE: 5268ac routers - by drsnooker - 04-05-2022, 04:21 AM
RE: 5268ac routers - by fart-box - 04-07-2022, 10:59 PM
RE: 5268ac routers - by drsnooker - 04-08-2022, 12:23 AM
RE: 5268ac routers - by soxrok2212 - 04-09-2022, 10:29 AM
RE: 5268ac routers - by MrMiller - 04-09-2022, 04:08 PM
RE: 5268ac routers - by soxrok2212 - 04-10-2022, 02:35 AM
RE: 5268ac routers - by drsnooker - 04-10-2022, 04:07 AM
RE: 5268ac routers - by bentrout - 04-10-2022, 10:56 PM
RE: 5268ac routers - by MrMiller - 04-19-2022, 09:34 PM
RE: 5268ac routers - by drsnooker - 04-10-2022, 11:50 PM
RE: 5268ac routers - by soxrok2212 - 04-22-2022, 08:15 AM
RE: 5268ac routers - by MrMiller - 05-30-2022, 09:49 PM
RE: 5268ac routers - by drsnooker - 05-17-2022, 02:47 AM
RE: 5268ac routers - by drsnooker - 05-28-2022, 12:59 AM
RE: 5268ac routers - by drsnooker - 06-27-2022, 02:05 AM
RE: 5268ac routers - by drsnooker - 12-03-2022, 08:16 PM
RE: 5268ac routers - by drsnooker - 01-20-2023, 10:15 PM
RE: 5268ac routers - by slyexe - 01-21-2023, 12:25 AM
RE: 5268ac routers - by drsnooker - 01-21-2023, 01:34 AM
RE: 5268ac routers - by 90h - 02-12-2023, 04:44 AM
RE: 5268ac routers - by drsnooker - 02-12-2023, 05:22 AM
RE: 5268ac routers - by 90h - 02-12-2023, 07:19 PM
RE: 5268ac routers - by drsnooker - 02-12-2023, 08:04 PM
RE: 5268ac routers - by drsnooker - 02-14-2023, 03:55 AM
RE: 5268ac routers - by drsnooker - 03-02-2023, 07:14 AM
RE: 5268ac routers - by drsnooker - 04-29-2023, 04:33 AM
RE: 5268ac routers - by drsnooker - 07-06-2023, 10:42 AM
RE: 5268ac routers - by drsnooker - 10-01-2023, 10:28 PM
RE: 5268ac routers - by drsnooker - 12-23-2023, 09:37 PM
RE: 5268ac routers - by drsnooker - 12-29-2023, 06:47 AM