Skip to content

Commit

Permalink
fix up ror array shifting problem & correct typo
Browse files Browse the repository at this point in the history
  • Loading branch information
mchome committed Sep 1, 2017
1 parent 23a501c commit 5c2dc1c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# dogcom [![travis-ci](https://travis-ci.org/mchome/dogcom.svg "Build status")](https://travis-ci.org/mchome/dogcom) [![badge](https://img.shields.io/badge/%20built%20with-%20%E2%9D%A4-ff69b4.svg "build with love")](https://github.com/mchome/dogcom) [![version](https://img.shields.io/badge/stable%20-%20v1.4.1-4dc71f.svg "stable version")](https://github.com/mchome/dogcom/tree/v1.4.1)
# dogcom [![travis-ci](https://travis-ci.org/mchome/dogcom.svg "Build status")](https://travis-ci.org/mchome/dogcom) [![badge](https://img.shields.io/badge/%20built%20with-%20%E2%9D%A4-ff69b4.svg "build with love")](https://github.com/mchome/dogcom) [![version](https://img.shields.io/badge/stable%20-%20v1.4.2-4dc71f.svg "stable version")](https://github.com/mchome/dogcom/tree/v1.4.2)

[Drcom-generic](https://github.com/drcoms/drcom-generic) implementation in C.

Expand Down
8 changes: 4 additions & 4 deletions auth.c
Original file line number Diff line number Diff line change
Expand Up @@ -171,12 +171,12 @@ int login(int sockfd, struct sockaddr_in addr, unsigned char seed[], unsigned ch
int counter = 312;
if (drcom_config.ror_version) {
login_packet[counter + 1] = strlen(drcom_config.password);
counter += 2;
for(int i = 0, x = 0; i < strlen(drcom_config.password); i++) {
x = (int)MD5A[i] ^ (int)drcom_config.password[i];
login_packet[counter + 2 + i] = (unsigned char)(((x << 3) & 0xff) + (x >> 5));
counter += 1;
login_packet[counter + i] = (unsigned char)(((x << 3) & 0xff) + (x >> 5));
}
counter += 2;
counter += 6;
// print_packet("TEST ", ror, 6);
}
login_packet[counter] = 0x02;
Expand Down Expand Up @@ -422,7 +422,7 @@ int dogcom(int try_times) {
memset(&bind_addr, 0, sizeof(bind_addr));
bind_addr.sin_family = AF_INET;
if (verbose_flag) {
printf("Your are binding at %s.\n\n", bind_ip);
printf("You are binding at %s!\n\n", bind_ip);
}
#ifdef WIN32
bind_addr.sin_addr.S_un.S_addr = inet_addr(bind_ip);
Expand Down
2 changes: 1 addition & 1 deletion main.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
#include "libs/common.h"
#endif

#define VERSION "1.4.1"
#define VERSION "1.4.2"

void print_help(int exval);
int try_smart_eaplogin(void);
Expand Down

0 comments on commit 5c2dc1c

Please sign in to comment.