Man-in-the-middle attack SLL_Accept failed, throw error:140760FC:SSL routines:SSL23_GET_CLIENT_HELLO:unknown...
up vote
1
down vote
favorite
I tried to Man-in-the-middle attack with C, success get HTTPS target host, SSL_connect to the server and create fake certificate success, when I try to SSL_accept client socket, it's failed and SSL_error: error:140760FC:SSL routines:SSL23_GET_CLIENT_HELLO:unknown protocol
int socket_to_server = open_client_socket(p->client, p->host, p->port);
// create ssl connect by server socket
ssl_to_server = SSL_to_server_init(socket_to_server);
if (SSL_connect(ssl_to_server) < 0)
SSL_Error("Fail to connect server with ssl!");
printf("%d, SSL to servern", sum);
// get server cert and fake
fake_x509 = create_fake_certificate(ssl_to_server, p->key);
// use fake cert create client SLL connect
ssl_to_client = SSL_to_client_init(p->client, fake_x509, p->key);
if(ssl_to_client == 0)
{
SSL_Error("SSL to client Failed!n");
}
if (SSL_accept(ssl_to_client) <= 0) // failed there, error:140760FC:SSL routines:SSL23_GET_CLIENT_HELLO:unknown protocol
SSL_Error("Fail to accept client with ssl!");
c openssl man-in-the-middle
add a comment |
up vote
1
down vote
favorite
I tried to Man-in-the-middle attack with C, success get HTTPS target host, SSL_connect to the server and create fake certificate success, when I try to SSL_accept client socket, it's failed and SSL_error: error:140760FC:SSL routines:SSL23_GET_CLIENT_HELLO:unknown protocol
int socket_to_server = open_client_socket(p->client, p->host, p->port);
// create ssl connect by server socket
ssl_to_server = SSL_to_server_init(socket_to_server);
if (SSL_connect(ssl_to_server) < 0)
SSL_Error("Fail to connect server with ssl!");
printf("%d, SSL to servern", sum);
// get server cert and fake
fake_x509 = create_fake_certificate(ssl_to_server, p->key);
// use fake cert create client SLL connect
ssl_to_client = SSL_to_client_init(p->client, fake_x509, p->key);
if(ssl_to_client == 0)
{
SSL_Error("SSL to client Failed!n");
}
if (SSL_accept(ssl_to_client) <= 0) // failed there, error:140760FC:SSL routines:SSL23_GET_CLIENT_HELLO:unknown protocol
SSL_Error("Fail to accept client with ssl!");
c openssl man-in-the-middle
1
How exactly do you connect to this proxy?
– Ctx
Nov 13 at 9:48
X509_verify fake cert return success
– SKR_OVER
Nov 13 at 10:05
add a comment |
up vote
1
down vote
favorite
up vote
1
down vote
favorite
I tried to Man-in-the-middle attack with C, success get HTTPS target host, SSL_connect to the server and create fake certificate success, when I try to SSL_accept client socket, it's failed and SSL_error: error:140760FC:SSL routines:SSL23_GET_CLIENT_HELLO:unknown protocol
int socket_to_server = open_client_socket(p->client, p->host, p->port);
// create ssl connect by server socket
ssl_to_server = SSL_to_server_init(socket_to_server);
if (SSL_connect(ssl_to_server) < 0)
SSL_Error("Fail to connect server with ssl!");
printf("%d, SSL to servern", sum);
// get server cert and fake
fake_x509 = create_fake_certificate(ssl_to_server, p->key);
// use fake cert create client SLL connect
ssl_to_client = SSL_to_client_init(p->client, fake_x509, p->key);
if(ssl_to_client == 0)
{
SSL_Error("SSL to client Failed!n");
}
if (SSL_accept(ssl_to_client) <= 0) // failed there, error:140760FC:SSL routines:SSL23_GET_CLIENT_HELLO:unknown protocol
SSL_Error("Fail to accept client with ssl!");
c openssl man-in-the-middle
I tried to Man-in-the-middle attack with C, success get HTTPS target host, SSL_connect to the server and create fake certificate success, when I try to SSL_accept client socket, it's failed and SSL_error: error:140760FC:SSL routines:SSL23_GET_CLIENT_HELLO:unknown protocol
int socket_to_server = open_client_socket(p->client, p->host, p->port);
// create ssl connect by server socket
ssl_to_server = SSL_to_server_init(socket_to_server);
if (SSL_connect(ssl_to_server) < 0)
SSL_Error("Fail to connect server with ssl!");
printf("%d, SSL to servern", sum);
// get server cert and fake
fake_x509 = create_fake_certificate(ssl_to_server, p->key);
// use fake cert create client SLL connect
ssl_to_client = SSL_to_client_init(p->client, fake_x509, p->key);
if(ssl_to_client == 0)
{
SSL_Error("SSL to client Failed!n");
}
if (SSL_accept(ssl_to_client) <= 0) // failed there, error:140760FC:SSL routines:SSL23_GET_CLIENT_HELLO:unknown protocol
SSL_Error("Fail to accept client with ssl!");
c openssl man-in-the-middle
c openssl man-in-the-middle
edited Nov 13 at 10:47
Billal Begueradj
5,576132637
5,576132637
asked Nov 13 at 9:29
SKR_OVER
113
113
1
How exactly do you connect to this proxy?
– Ctx
Nov 13 at 9:48
X509_verify fake cert return success
– SKR_OVER
Nov 13 at 10:05
add a comment |
1
How exactly do you connect to this proxy?
– Ctx
Nov 13 at 9:48
X509_verify fake cert return success
– SKR_OVER
Nov 13 at 10:05
1
1
How exactly do you connect to this proxy?
– Ctx
Nov 13 at 9:48
How exactly do you connect to this proxy?
– Ctx
Nov 13 at 9:48
X509_verify fake cert return success
– SKR_OVER
Nov 13 at 10:05
X509_verify fake cert return success
– SKR_OVER
Nov 13 at 10:05
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53277768%2fman-in-the-middle-attack-sll-accept-failed-throw-error140760fcssl-routinesss%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
1
How exactly do you connect to this proxy?
– Ctx
Nov 13 at 9:48
X509_verify fake cert return success
– SKR_OVER
Nov 13 at 10:05