mirror of
https://github.com/vanhauser-thc/thc-hydra.git
synced 2025-07-05 20:41:39 -07:00
removed warnings
This commit is contained in:
parent
8fe519dd75
commit
4cc2dcebc2
7 changed files with 26 additions and 27 deletions
40
hydra-snmp.c
40
hydra-snmp.c
|
@ -15,7 +15,7 @@ extern int child_head_no;
|
|||
char snmpv3buf[1024], *snmpv3info = NULL;
|
||||
int snmpv3infolen = 0, snmpversion = 1, snmpread = 1, hashtype = 1, enctype = 0;
|
||||
|
||||
char snmpv3_init[] = { 0x30, 0x3e, 0x02, 0x01, 0x03, 0x30, 0x11, 0x02,
|
||||
unsigned char snmpv3_init[] = { 0x30, 0x3e, 0x02, 0x01, 0x03, 0x30, 0x11, 0x02,
|
||||
0x04, 0x08, 0x86, 0xdd, 0xf0, 0x02, 0x03, 0x00,
|
||||
0xff, 0xe3, 0x04, 0x01, 0x04, 0x02, 0x01, 0x03,
|
||||
0x04, 0x10, 0x30, 0x0e, 0x04, 0x00, 0x02, 0x01,
|
||||
|
@ -25,12 +25,12 @@ char snmpv3_init[] = { 0x30, 0x3e, 0x02, 0x01, 0x03, 0x30, 0x11, 0x02,
|
|||
0x02, 0x01, 0x00, 0x02, 0x01, 0x00, 0x30, 0x00
|
||||
};
|
||||
|
||||
char snmpv3_get1[] = { 0x30, 0x77, 0x02, 0x01, 0x03, 0x30, 0x11, 0x02,
|
||||
unsigned char snmpv3_get1[] = { 0x30, 0x77, 0x02, 0x01, 0x03, 0x30, 0x11, 0x02,
|
||||
0x04, 0x08, 0x86, 0xdd, 0xef, 0x02, 0x03, 0x00,
|
||||
0xff, 0xe3, 0x04, 0x01, 0x05, 0x02, 0x01, 0x03
|
||||
};
|
||||
|
||||
char snmpv3_get2[] = { 0x30, 0x2e, 0x04, 0x0c, 0x80, 0x00, 0x00,
|
||||
unsigned char snmpv3_get2[] = { 0x30, 0x2e, 0x04, 0x0c, 0x80, 0x00, 0x00,
|
||||
0x09, 0x03, 0x00, 0x00, 0x1f, 0xca, 0x8d, 0x82,
|
||||
0x1b, 0x04, 0x00, 0xa0, 0x1c, 0x02, 0x04, 0x3f,
|
||||
0x44, 0x5c, 0xbb, 0x02, 0x01, 0x00, 0x02, 0x01,
|
||||
|
@ -39,7 +39,7 @@ char snmpv3_get2[] = { 0x30, 0x2e, 0x04, 0x0c, 0x80, 0x00, 0x00,
|
|||
0x00
|
||||
};
|
||||
|
||||
char snmpv3_nouser[] = { 0x04, 0x00, 0x04, 0x00, 0x04, 0x00 };
|
||||
unsigned char snmpv3_nouser[] = { 0x04, 0x00, 0x04, 0x00, 0x04, 0x00 };
|
||||
|
||||
struct SNMPV1_A {
|
||||
char ID;
|
||||
|
@ -58,14 +58,14 @@ struct SNMPV1_A snmpv1_a = {
|
|||
};
|
||||
|
||||
struct SNMPV1_R {
|
||||
char type[2];
|
||||
char identid[2];
|
||||
char ident[4];
|
||||
char errstat[3];
|
||||
char errind[3];
|
||||
char objectid[2];
|
||||
char object[11];
|
||||
char value[3];
|
||||
unsigned char type[2];
|
||||
unsigned char identid[2];
|
||||
unsigned char ident[4];
|
||||
unsigned char errstat[3];
|
||||
unsigned char errind[3];
|
||||
unsigned char objectid[2];
|
||||
unsigned char object[11];
|
||||
unsigned char value[3];
|
||||
} snmpv1_r = {
|
||||
.type = "\xa0\x1b", /* GET */
|
||||
.identid = "\x02\x04",.ident = "\x1a\x5e\x97\x00", /* random crap :) */
|
||||
|
@ -76,14 +76,14 @@ struct SNMPV1_R {
|
|||
};
|
||||
|
||||
struct SNMPV1_W {
|
||||
char type[2];
|
||||
char identid[2];
|
||||
char ident[4];
|
||||
char errstat[3];
|
||||
char errind[3];
|
||||
char objectid[2];
|
||||
char object[12];
|
||||
char value[8];
|
||||
unsigned char type[2];
|
||||
unsigned char identid[2];
|
||||
unsigned char ident[4];
|
||||
unsigned char errstat[3];
|
||||
unsigned char errind[3];
|
||||
unsigned char objectid[2];
|
||||
unsigned char object[12];
|
||||
unsigned char value[8];
|
||||
} snmpv1_w = {
|
||||
.type = "\xa3\x21", /* SET */
|
||||
.identid = "\x02\x04",.ident = "\x1a\x5e\x97\x22", /* random crap :) */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue