input stringlengths 16 454k | output stringlengths 13 350k | function_name stringlengths 1 100 | repo_name stringlengths 6 43 | category stringclasses 76
values | sample_id stringlengths 22 88 | decompiler stringclasses 1
value | opt_level stringclasses 1
value |
|---|---|---|---|---|---|---|---|
int get_filter_hook(prelude_option_t *opt, prelude_string_t *out,
void *context) {
int ret;
filter_plugin_t *plugin;
ret = 0;
plugin = (filter_plugin_t *)prelude_plugin_instance_get_plugin_data(context);
if (plugin->hook_str)
return prelude_string_set_ref(out, plugin->hook_str);
ret... | static int get_filter_hook(prelude_option_t *opt, prelude_string_t *out,
void *context) {
int ret = 0;
filter_plugin_t *plugin;
plugin = prelude_plugin_instance_get_plugin_data(context);
if (plugin->hook_str)
ret = prelude_string_set_ref(out, plugin->hook_str);
return ret;
} | get_filter_hook | prelude-manager-5.2.0-r1 | app-admin | O0/app-admin/prelude-manager-5.2.0-r1/idmef-criteria.so | ida | O0 |
int get_filter_rule(prelude_option_t *opt, prelude_string_t *out,
void *context) {
filter_plugin_t *plugin;
plugin = (filter_plugin_t *)prelude_plugin_instance_get_plugin_data(context);
return idmef_criteria_to_string(plugin->criteria, out);
} | static int get_filter_rule(prelude_option_t *opt, prelude_string_t *out,
void *context) {
filter_plugin_t *plugin = prelude_plugin_instance_get_plugin_data(context);
return idmef_criteria_to_string(plugin->criteria, out);
} | get_filter_rule | prelude-manager-5.2.0-r1 | app-admin | O0/app-admin/prelude-manager-5.2.0-r1/idmef-criteria.so | ida | O0 |
int idmef_criteria_LTX_manager_plugin_init(prelude_plugin_entry_t *pe,
void *root_opt) {
int ret;
int reta;
int retb;
prelude_option_t *opt[2];
opt[1] = (prelude_option_t *)__readfsqword(0x28u);
ret = prelude_option_add(root_opt, opt, 7, 0, "idmef-criteria",
... | int idmef_criteria_LTX_manager_plugin_init(prelude_plugin_entry_t *pe,
void *root_opt) {
int ret;
prelude_option_t *opt;
ret = prelude_option_add(
root_opt, &opt,
PRELUDE_OPTION_TYPE_CLI | PRELUDE_OPTION_TYPE_CFG |
PRELUDE_OPTION_TYPE_WIDE,
0... | idmef_criteria_LTX_manager_plugin_init | prelude-manager-5.2.0-r1 | app-admin | O0/app-admin/prelude-manager-5.2.0-r1/idmef-criteria.so | ida | O0 |
int idmef_criteria_LTX_prelude_plugin_version() { return 1; } | int idmef_criteria_LTX_prelude_plugin_version(void) {
return PRELUDE_PLUGIN_API_VERSION;
} | idmef_criteria_LTX_prelude_plugin_version | prelude-manager-5.2.0-r1 | app-admin | O0/app-admin/prelude-manager-5.2.0-r1/idmef-criteria.so | ida | O0 |
int process_message(idmef_message_t *msg, void *priv) {
int ret;
if (!*(_QWORD *)priv)
return 0;
ret = idmef_criteria_match(*(_QWORD *)priv, msg);
if (ret < 0)
prelude_perror((unsigned int)ret, "error matching criteria");
if (ret <= 0)
return -1;
else
return 0;
} | static int process_message(idmef_message_t *msg, void *priv) {
filter_plugin_t *plugin = priv;
int ret;
if (!plugin->criteria)
return 0;
ret = idmef_criteria_match(plugin->criteria, msg);
if (ret < 0)
prelude_perror(ret, "error matching criteria");
return (ret > 0) ? 0 : -1;
} | process_message | prelude-manager-5.2.0-r1 | app-admin | O0/app-admin/prelude-manager-5.2.0-r1/idmef-criteria.so | ida | O0 |
int read_criteria_from_filename(filter_plugin_t *plugin, const char *filename,
prelude_string_t *err) {
int v3;
int *v4;
char *v5;
long string;
const char *v8;
const char *v9;
unsigned int line;
int ret;
prelude_string_t *out;
idmef_criteria_t *v15;
idmef_criteria_t... | static int read_criteria_from_filename(filter_plugin_t *plugin,
const char *filename,
prelude_string_t *err) {
int ret;
FILE *fd;
prelude_string_t *out;
unsigned int line = 0;
idmef_criteria_t *new, *criteria = NULL;
fd = fopen(f... | read_criteria_from_filename | prelude-manager-5.2.0-r1 | app-admin | O0/app-admin/prelude-manager-5.2.0-r1/idmef-criteria.so | ida | O0 |
int set_filter_hook(prelude_option_t *opt, const char *optarg,
prelude_string_t *err, void *context) {
char *v5;
int i;
int ret;
filter_plugin_t *plugin;
prelude_plugin_instance_t *ptr;
$265CC8074FBB0098B2B46A50E069FC4B tbl[3];
char pname[256];
char iname[256];
unsigned long v15;
... | static int set_filter_hook(prelude_option_t *opt, const char *optarg,
prelude_string_t *err, void *context) {
int i, ret;
filter_plugin_t *plugin;
char pname[256], iname[256];
prelude_plugin_instance_t *ptr;
struct {
const char *hook;
manager_filter_category_t cat;
} tbl[]... | set_filter_hook | prelude-manager-5.2.0-r1 | app-admin | O0/app-admin/prelude-manager-5.2.0-r1/idmef-criteria.so | ida | O0 |
int set_filter_rule(prelude_option_t *opt, const char *optarg,
prelude_string_t *err, void *context) {
filter_plugin_t *plugin;
plugin = (filter_plugin_t *)prelude_plugin_instance_get_plugin_data(context);
if (access(optarg, 4))
return add_criteria(plugin, optarg);
else
return read_... | static int set_filter_rule(prelude_option_t *opt, const char *optarg,
prelude_string_t *err, void *context) {
int ret;
filter_plugin_t *plugin = prelude_plugin_instance_get_plugin_data(context);
ret = access(optarg, R_OK);
if (ret == 0)
return read_criteria_from_filename(plugin, ... | set_filter_rule | prelude-manager-5.2.0-r1 | app-admin | O0/app-admin/prelude-manager-5.2.0-r1/idmef-criteria.so | ida | O0 |
long apg_write(int fd, const void *buf, size_t count) {
ssize_t ret;
do
ret = write(fd, buf, count);
while (ret == -1 && *__errno_location() == 4);
return ret;
} | long apg_write(int fd, const void *buf, size_t count) {
long ret;
while ((ret = write(fd, buf, count)) == -1 && errno == EINTR)
;
return ret;
} | apg_write | apg-2.3.0b_p20150129-r1 | app-admin | O0/app-admin/apg-2.3.0b_p20150129-r1/apgd | ida | O0 |
int bloom_check_pass(char *word, char *filter) {
f_mode filtermode;
int ret;
h_val filter_size;
FILE *f_filter;
f_filter = open_filter(filter, "r");
if (!f_filter)
return -1;
filter_size = get_filtersize(f_filter);
filtermode = get_filtermode(f_filter);
ret = check_word(word, f_filter, filter_siz... | int bloom_check_pass(char *word, char *filter) {
int ret = 0;
FILE *f_filter;
h_val filter_size = 0L;
f_mode flt_mode = 0x00;
if ((f_filter = open_filter(filter, "r")) == NULL)
return (-1);
filter_size = get_filtersize(f_filter);
flt_mode = get_filtermode(f_filter);
ret = check_word(word, f_filter, ... | bloom_check_pass | apg-2.3.0b_p20150129-r1 | app-admin | O0/app-admin/apg-2.3.0b_p20150129-r1/apgd | ida | O0 |
void capitalize(char *syllable) {
char tmp;
int i;
if (randint(2) == 1) {
tmp = *syllable;
for (i = 0; i <= 25; ++i) {
if (let[i] == tmp && is_restricted_symbol(clet[i]) != 1)
*syllable = clet[i];
}
}
} | void capitalize(char *syllable) {
char tmp = 0x00;
int i = 0;
if (randint(2) == TRUE) {
(void)memcpy((void *)&tmp, (void *)syllable, sizeof(tmp));
for (i = 0; i < 26; i++)
if (let[i] == tmp)
if (is_restricted_symbol(clet[i]) != TRUE)
(void)memcpy((void *)syllable, (void *)&clet[i],... | capitalize | apg-2.3.0b_p20150129-r1 | app-admin | O0/app-admin/apg-2.3.0b_p20150129-r1/apgd | ida | O0 |
void cast_decrypt(cast_key *key, u8 *inblock, u8 *outblock) {
u32 t;
u32 l;
u32 r;
unsigned long v6;
v6 = __readfsqword(0x28u);
r = _byteswap_ulong(*(_DWORD *)inblock);
l = _byteswap_ulong(*((_DWORD *)inblock + 1));
if (key->rounds > 12) {
t = __ROL4__(l + key->xkey[15], key->xkey[31]);
r ^= (c... | void cast_decrypt(cast_key *key, u8 *inblock, u8 *outblock) {
u32 t, l, r;
r = ((u32)inblock[0] << 24) | ((u32)inblock[1] << 16) |
((u32)inblock[2] << 8) | (u32)inblock[3];
l = ((u32)inblock[4] << 24) | ((u32)inblock[5] << 16) |
((u32)inblock[6] << 8) | (u32)inblock[7];
if (key->rounds > 12) {
... | cast_decrypt | apg-2.3.0b_p20150129-r1 | app-admin | O0/app-admin/apg-2.3.0b_p20150129-r1/apgd | ida | O0 |
void cast_encrypt(cast_key *key, u8 *inblock, u8 *outblock) {
u32 t;
u32 l;
u32 r;
unsigned long v6;
v6 = __readfsqword(0x28u);
l = _byteswap_ulong(*(_DWORD *)inblock);
r = _byteswap_ulong(*((_DWORD *)inblock + 1));
t = __ROL4__(r + key->xkey[0], key->xkey[16]);
l ^= (cast_sbox2[BYTE2(t)] ^ cast_sbox... | void cast_encrypt(cast_key *key, u8 *inblock, u8 *outblock) {
u32 t, l, r;
l = ((u32)inblock[0] << 24) | ((u32)inblock[1] << 16) |
((u32)inblock[2] << 8) | (u32)inblock[3];
r = ((u32)inblock[4] << 24) | ((u32)inblock[5] << 16) |
((u32)inblock[6] << 8) | (u32)inblock[7];
F1(l, r, 0);
F2(r, l, 1);... | cast_encrypt | apg-2.3.0b_p20150129-r1 | app-admin | O0/app-admin/apg-2.3.0b_p20150129-r1/apgd | ida | O0 |
void cast_setkey(cast_key *key, u8 *rawkey, int keybytes) {
int v3;
int v4;
int v5;
int i;
int i_0;
u32 t[4];
u32 z[4];
u32 x[4];
unsigned long v12;
v12 = __readfsqword(0x28u);
if (keybytes > 10)
v3 = 16;
else
v3 = 12;
key->rounds = v3;
for (i = 0; i <= 3; ++i) {
x[i] = 0;
i... | void cast_setkey(cast_key *key, u8 *rawkey, int keybytes) {
u32 t[4], z[4], x[4];
key->rounds = (keybytes <= 10 ? 12 : 16);
for (int i = 0; i < 4; i++) {
x[i] = 0;
if ((i * 4 + 0) < keybytes)
x[i] = (u32)rawkey[i * 4 + 0] << 24;
if ((i * 4 + 1) < keybytes)
x[i] |= (u32)rawkey[i * 4 + 1] ... | cast_setkey | apg-2.3.0b_p20150129-r1 | app-admin | O0/app-admin/apg-2.3.0b_p20150129-r1/apgd | ida | O0 |
int check_pass(char *pass, char *dict) {
const char *word;
char *sep;
FILE *dct;
char *string;
size_t pass_len;
const char *line_end;
dct = fopen(dict, "r");
if (!dct)
return -1;
string = (char *)calloc(1u, 0xFFu);
if (!string)
return -1;
pass_len = strlen(pass);
LABEL_16:
if (fgets(str... | int check_pass(char *pass, char *dict) {
FILE *dct;
char *string;
#ifdef APG_DEBUG
fprintf(stdout, "DEBUG> check_pass: ck pass: %s\n", pass);
fflush(stdout);
#endif
if ((dct = fopen(dict, "r")) == NULL)
return (-1);
if ((string = (char *)calloc(1, MAX_DICT_STRING_SIZE)) == NULL)
return (-1);
s... | check_pass | apg-2.3.0b_p20150129-r1 | app-admin | O0/app-admin/apg-2.3.0b_p20150129-r1/apgd | ida | O0 |
void checkopt(const char *opt) {
size_t i;
size_t optlen;
optlen = strlen(opt);
for (i = 0; i != optlen; ++i) {
if (opt[i] != 48 && opt[i] != 49 && opt[i] != 50 && opt[i] != 51 &&
opt[i] != 52 && opt[i] != 53 && opt[i] != 54 && opt[i] != 55 &&
opt[i] != 56 && opt[i] != 57) {
err_app_f... | void checkopt(char const *opt) {
const size_t optlen = strlen(opt);
for (size_t i = 0; i != optlen; i++)
if (opt[i] != '0' && opt[i] != '1' && opt[i] != '2' && opt[i] != '3' &&
opt[i] != '4' && opt[i] != '5' && opt[i] != '6' && opt[i] != '7' &&
opt[i] != '8' && opt[i] != '9')
err_app_fatal... | checkopt | apg-2.3.0b_p20150129-r1 | app-admin | O0/app-admin/apg-2.3.0b_p20150129-r1/apgd | ida | O0 |
int construct_mode(char *s_mode, pass_m *mde) {
char *s_modea;
pass_m mode;
int i;
int str_length;
s_modea = s_mode;
mode = 0;
str_length = strlen(s_mode);
if (str_length > 4)
return -1;
i = 0;
while (2) {
if (i < str_length) {
switch (*s_modea) {
case 'C':
mode = (pass_... | int construct_mode(char *s_mode, struct pass_m *mde) {
unsigned int mode = 0;
unsigned int filter = 0;
int ch = 0;
int i = 0;
int str_length = 0;
str_length = strlen(s_mode);
if (str_length > MAX_MODE_LENGTH)
return (-1);
for (i = 0; i < str_length; i++) {
ch = (int)*s_mode;
switch (ch) {
... | construct_mode | apg-2.3.0b_p20150129-r1 | app-admin | O0/app-admin/apg-2.3.0b_p20150129-r1/apgd | ida | O0 |
void err_app(const char *string, const char *err) {
syslog(7, "%s: %s", string, err);
} | void err_app(const char *string, const char *err) {
#ifndef CLISERV
fprintf(stderr, "%s: ", string);
fprintf(stderr, "%s\n", err);
fflush(stderr);
#else
syslog(LOG_DEBUG, "%s: %s", string, err);
#endif
} | err_app | apg-2.3.0b_p20150129-r1 | app-admin | O0/app-admin/apg-2.3.0b_p20150129-r1/apgd | ida | O0 |
void err_app_fatal(const char *string, const char *err) {
syslog(7, "%s: %s", string, err);
closelog();
close(0);
exit(-1);
} | void err_app_fatal(const char *string, const char *err) {
#ifndef CLISERV
fprintf(stderr, "%s: ", string);
fprintf(stderr, "%s\n", err);
fflush(stderr);
#else
syslog(LOG_DEBUG, "%s: %s", string, err);
closelog();
close(0);
#endif
exit(-1);
} | err_app_fatal | apg-2.3.0b_p20150129-r1 | app-admin | O0/app-admin/apg-2.3.0b_p20150129-r1/apgd | ida | O0 |
void err_sys(const char *string) {
int *v1;
char *v2;
v1 = __errno_location();
v2 = strerror(*v1);
syslog(7, "%s: %s", string, v2);
} | void err_sys(const char *string) {
#ifndef CLISERV
perror(string);
#else
syslog(LOG_DEBUG, "%s: %s", string, (char *)strerror(errno));
#endif
} | err_sys | apg-2.3.0b_p20150129-r1 | app-admin | O0/app-admin/apg-2.3.0b_p20150129-r1/apgd | ida | O0 |
void err_sys_fatal(const char *string) {
int *v1;
char *v2;
v1 = __errno_location();
v2 = strerror(*v1);
syslog(7, "%s: %s", string, v2);
closelog();
close(0);
exit(-1);
} | void err_sys_fatal(const char *string) {
#ifndef CLISERV
perror(string);
#else
syslog(LOG_DEBUG, "%s: %s", string, (char *)strerror(errno));
closelog();
close(0);
#endif
exit(-1);
} | err_sys_fatal | apg-2.3.0b_p20150129-r1 | app-admin | O0/app-admin/apg-2.3.0b_p20150129-r1/apgd | ida | O0 |
int filter_check_pass(const char *word, unsigned int cond) {
int sl_ret;
int cl_ret;
int nb_ret;
int ss_ret;
int i;
int i_0;
int i_1;
int i_2;
sl_ret = 0;
cl_ret = 0;
nb_ret = 0;
ss_ret = 0;
if ((cond & 2) != 0) {
for (i = 0; i <= 93; ++i) {
if ((smbl[i].type & 2) != 0 && strchr(wor... | int filter_check_pass(const char *word, unsigned int cond) {
int sl_ret = 0;
int cl_ret = 0;
int nb_ret = 0;
int ss_ret = 0;
#ifdef APG_DEBUG
fprintf(stdout, "DEBUG> filter_check_pass: ck pass: %s\n", word);
fflush(stdout);
#endif
if ((cond & S_SS) > 0)
for (int i = 0; i < 94; i++)
if ((smbl[i... | filter_check_pass | apg-2.3.0b_p20150129-r1 | app-admin | O0/app-admin/apg-2.3.0b_p20150129-r1/apgd | ida | O0 |
int gen_pron_pass(char *word, char *hyphenated_word, USHORT minlen,
USHORT maxlen, unsigned int pass_mode) {
USHORT random;
if (minlen > maxlen || minlen > 0xFFu || maxlen > 0xFFu)
return -1;
if (maxlen) {
random = get_random(minlen, maxlen);
return gen_word(word, hyphenated_word, r... | int gen_pron_pass(char *word, char *hyphenated_word, USHORT minlen,
USHORT maxlen, unsigned int pass_mode) {
int pwlen;
if (minlen > maxlen || minlen > APG_MAX_PASSWORD_LENGTH ||
maxlen > APG_MAX_PASSWORD_LENGTH)
return (-1);
if (maxlen == 0) {
word[0] = '\0';
hyphenated_wor... | gen_pron_pass | apg-2.3.0b_p20150129-r1 | app-admin | O0/app-admin/apg-2.3.0b_p20150129-r1/apgd | ida | O0 |
int gen_rand_pass(char *password_string, int minl, int maxl,
unsigned int pass_mode) {
unsigned short pass_modea;
int max_weight;
int max_weight_element_number;
int i;
int i_0;
int j;
int j_0;
int j_1;
signed int length;
int random_weight[94];
unsigned long v16;
pass_modea = p... | int gen_rand_pass(char *password_string, int minl, int maxl,
unsigned int pass_mode) {
int length = 0;
char *str_pointer;
int random_weight[94];
int max_weight = 0;
int max_weight_element_number = 0;
if (minl > APG_MAX_PASSWORD_LENGTH || maxl > APG_MAX_PASSWORD_LENGTH ||
minl < 1 ||... | gen_rand_pass | apg-2.3.0b_p20150129-r1 | app-admin | O0/app-admin/apg-2.3.0b_p20150129-r1/apgd | ida | O0 |
int gen_rand_symbol(char *symbol, unsigned int mode) {
int max_weight;
int max_weight_element_number;
int j;
int j_0;
int j_1;
int random_weight[94];
unsigned long v9;
v9 = __readfsqword(0x28u);
max_weight = 0;
max_weight_element_number = 0;
for (j = 0; j <= 93; ++j)
random_weight[j] = 0;
f... | int gen_rand_symbol(char *symbol, unsigned int mode) {
char *str_pointer;
int random_weight[94];
int max_weight = 0;
int max_weight_element_number = 0;
for (int j = 0; j <= 93; j++)
random_weight[j] = 0;
str_pointer = symbol;
for (int j = 0; j <= 93; j++)
if (((mode & smbl[j].type) > 0) && !((S_... | gen_rand_symbol | apg-2.3.0b_p20150129-r1 | app-admin | O0/app-admin/apg-2.3.0b_p20150129-r1/apgd | ida | O0 |
char *gen_syllable(char *syllable, USHORT pwlen, USHORT *units_in_syllable,
USHORT *syllable_length) {
size_t v4;
boolean rule_broken;
boolean want_vowel;
boolean want_another_unit;
USHORT unit;
SHORT current_unit;
USHORT vowel_count;
USHORT last_unit;
SHORT length_left;
USHORT ho... | char *gen_syllable(char *syllable, USHORT pwlen, USHORT *units_in_syllable,
USHORT *syllable_length) {
USHORT unit = 0;
SHORT current_unit = 0;
USHORT vowel_count = 0;
boolean rule_broken;
boolean want_vowel;
boolean want_another_unit;
UINT tries = 0;
USHORT last_unit = 0;
SHORT len... | gen_syllable | apg-2.3.0b_p20150129-r1 | app-admin | O0/app-admin/apg-2.3.0b_p20150129-r1/apgd | ida | O0 |
int gen_word(char *word, char *hyphenated_word, USHORT pwlen,
unsigned int pass_mode) {
char pass_modea;
USHORT syllable_size;
USHORT word_length;
USHORT word_size;
USHORT word_place;
USHORT syllable_length;
UINT tries;
int ch_flag;
int dsd;
USHORT *word_units;
USHORT *syllable_units;... | int gen_word(char *word, char *hyphenated_word, USHORT pwlen,
unsigned int pass_mode) {
USHORT word_length;
USHORT syllable_length;
char *new_syllable;
char *syllable_for_hyph;
USHORT *syllable_units;
USHORT word_size;
USHORT word_place;
USHORT *word_units;
USHORT syllable_size;
UINT tr... | gen_word | apg-2.3.0b_p20150129-r1 | app-admin | O0/app-admin/apg-2.3.0b_p20150129-r1/apgd | ida | O0 |
USHORT get_random(USHORT minlen, USHORT maxlen) {
return randint(maxlen - minlen + 1) + minlen;
} | USHORT
get_random(USHORT minlen, USHORT maxlen) {
USHORT ret = 0;
ret = minlen + (USHORT)randint((int)(maxlen - minlen + 1));
return (ret);
} | get_random | apg-2.3.0b_p20150129-r1 | app-admin | O0/app-admin/apg-2.3.0b_p20150129-r1/apgd | ida | O0 |
boolean have_final_split(USHORT *units, USHORT unit_size) {
USHORT unit_count;
USHORT vowel_count;
vowel_count = 0;
for (unit_count = 0; unit_count <= unit_size; ++unit_count) {
if ((rules[units[unit_count]].flags & 2) != 0)
++vowel_count;
}
return vowel_count == 1 && (rules[units[unit_size]].fla... | boolean have_final_split(USHORT *units, USHORT unit_size) {
USHORT unit_count;
USHORT vowel_count;
vowel_count = 0;
for (unit_count = 0; unit_count <= unit_size; unit_count++)
if (rules[units[unit_count]].flags & VOWEL)
vowel_count++;
return ((vowel_count == 1) &&
(rules[units[unit_size... | have_final_split | apg-2.3.0b_p20150129-r1 | app-admin | O0/app-admin/apg-2.3.0b_p20150129-r1/apgd | ida | O0 |
boolean have_initial_y(USHORT *units, USHORT unit_size) {
USHORT unit_count;
USHORT vowel_count;
USHORT normal_vowel_count;
vowel_count = 0;
normal_vowel_count = 0;
for (unit_count = 0; unit_count <= unit_size; ++unit_count) {
if ((rules[units[unit_count]].flags & 2) != 0) {
++vowel_count;
... | boolean have_initial_y(USHORT *units, USHORT unit_size) {
USHORT unit_count;
USHORT vowel_count;
USHORT normal_vowel_count;
vowel_count = 0;
normal_vowel_count = 0;
for (unit_count = 0; unit_count <= unit_size; unit_count++)
if (rules[units[unit_count]].flags & VOWEL) {
vowel_count++;
if... | have_initial_y | apg-2.3.0b_p20150129-r1 | app-admin | O0/app-admin/apg-2.3.0b_p20150129-r1/apgd | ida | O0 |
boolean illegal_placement(USHORT *units, USHORT pwlen) {
boolean failure;
USHORT vowel_count;
USHORT unit_count;
vowel_count = 0;
failure = 0;
for (unit_count = 0; !failure && unit_count <= pwlen; ++unit_count) {
if (unit_count &&
((rules[units[unit_count - 1]].flags & 2) == 0 &&
(... | boolean illegal_placement(USHORT *units, USHORT pwlen) {
USHORT vowel_count;
USHORT unit_count;
boolean failure;
vowel_count = 0;
failure = FALSE;
for (unit_count = 0; !failure && (unit_count <= pwlen); unit_count++) {
if (unit_count >= 1) {
if ((!(rules[units[unit_count - 1]].flags & VOWEL) &&... | illegal_placement | apg-2.3.0b_p20150129-r1 | app-admin | O0/app-admin/apg-2.3.0b_p20150129-r1/apgd | ida | O0 |
boolean improper_word(USHORT *units, USHORT word_size) {
boolean failure;
USHORT unit_count;
failure = 0;
for (unit_count = 0; !failure && unit_count < word_size; ++unit_count) {
if (unit_count &&
(digram[units[unit_count - 1]][units[unit_count]] & 8) != 0)
failure = 1;
if (!failure && un... | boolean improper_word(USHORT *units, USHORT word_size) {
USHORT unit_count;
boolean failure;
failure = FALSE;
for (unit_count = 0; !failure && (unit_count < word_size); unit_count++) {
if ((unit_count != 0) &&
(digram[units[unit_count - 1]][units[unit_count]] & ILLEGAL_PAIR))
failure = TRUE... | improper_word | apg-2.3.0b_p20150129-r1 | app-admin | O0/app-admin/apg-2.3.0b_p20150129-r1/apgd | ida | O0 |
int is_restricted_symbol(char symbol) {
int j;
for (j = 0; j <= 93; ++j) {
if (symbol == smbl[j].ch && (smbl[j].type & 0x10) != 0)
return 1;
}
return 0;
} | int is_restricted_symbol(char symbol) {
int j = 0;
for (j = 0; j <= 93; j++)
if (symbol == smbl[j].ch)
if ((S_RS & smbl[j].type) > 0)
return (1);
return (0);
} | is_restricted_symbol | apg-2.3.0b_p20150129-r1 | app-admin | O0/app-admin/apg-2.3.0b_p20150129-r1/apgd | ida | O0 |
int main(int argc, const char **argv, const char **envp) {
uint16_t v3;
size_t v5;
size_t v6;
USHORT min_pass_length;
USHORT max_pass_length;
USHORT min_substr_len;
socklen_t len;
int i;
int restrict_res;
int algorithm;
int restrictions_present;
int plain_restrictions_present;
int bloom_restri... | int main(int argc, char *argv[]) {
int i = 0;
int restrict_res = 0;
char *pass_string;
char *hyph_pass_string;
time_t tme;
int option = 0;
int algorithm = 0;
int restrictions_present = FALSE;
int plain_restrictions_present = FALSE;
int bloom_restrict_present = FALSE;
int paranoid_bloom_restrict... | main | apg-2.3.0b_p20150129-r1 | app-admin | O0/app-admin/apg-2.3.0b_p20150129-r1/apgd | ida | O0 |
void numerize(char *syllable) {
char *tmp;
tmp = (char *)calloc(1u, 4u);
if (!tmp)
err_sys_fatal("calloc");
if (strlen(syllable) == 1) {
gen_rand_symbol(tmp, 1u);
*syllable = *tmp;
}
free(tmp);
} | void numerize(char *syllable) {
char *tmp;
if ((tmp = (char *)calloc(1, 4)) == NULL)
err_sys_fatal("calloc");
if (strlen(syllable) == 1) {
(void)gen_rand_symbol(tmp, S_NB);
(void)memcpy((void *)syllable, (void *)tmp, 1);
}
free((void *)tmp);
} | numerize | apg-2.3.0b_p20150129-r1 | app-admin | O0/app-admin/apg-2.3.0b_p20150129-r1/apgd | ida | O0 |
int paranoid_bloom_check_pass(char *password, char *filter, USHORT s_len) {
int c_substr_start_pos;
int substr_len;
int k;
int c;
int len;
int ret;
char *substring;
len = strlen(password);
if (s_len <= 1u)
s_len = 2;
if (len < s_len)
return bloom_check_pass(password, filter);
substring = ... | int paranoid_bloom_check_pass(char *password, char *filter, USHORT s_len) {
char *substring;
int len = strlen(password);
int c_substr_start_pos = 0;
int substr_len = 0;
int k = 0;
int c = 0;
int ret = 0;
if (s_len < 2)
s_len = 2;
if (s_len > len)
return (bloom_check_pass(password, filter));
#... | paranoid_bloom_check_pass | apg-2.3.0b_p20150129-r1 | app-admin | O0/app-admin/apg-2.3.0b_p20150129-r1/apgd | ida | O0 |
UINT randint(int n) { return x917cast_rnd() % n; } | UINT randint(int n) {
#ifndef APG_USE_SHA
return ((UINT)(x917cast_rnd() % (UINT32)n));
#else
return ((UINT)(x917sha1_rnd() % (UINT32)n));
#endif
} | randint | apg-2.3.0b_p20150129-r1 | app-admin | O0/app-admin/apg-2.3.0b_p20150129-r1/apgd | ida | O0 |
USHORT random_unit(USHORT type) {
if ((type & 2) != 0)
return vowel_numbers[get_random(0, 0xBu)];
else
return numbers[get_random(0, 0xD1u)];
} | USHORT
random_unit(USHORT type) {
USHORT number;
if (type & VOWEL)
number = vowel_numbers[get_random(
0, (sizeof(vowel_numbers) / sizeof(USHORT)) - 1)];
else
number = numbers[get_random(0, (sizeof(numbers) / sizeof(USHORT)) - 1)];
return (number);
} | random_unit | apg-2.3.0b_p20150129-r1 | app-admin | O0/app-admin/apg-2.3.0b_p20150129-r1/apgd | ida | O0 |
int set_exclude_list(const char *char_string) {
int i;
if (strlen(char_string) > 0x5D)
return -1;
for (i = 0; i <= 93; ++i) {
if (strchr(char_string, smbl[i].ch))
smbl[i].type |= 0x10u;
}
return 0;
} | int set_exclude_list(const char *char_string) {
int i = 0;
if (strlen(char_string) > 93)
return (-1);
for (i = 0; i < 94; i++)
if ((strchr(char_string, smbl[i].ch)) != NULL)
smbl[i].type |= S_RS;
return (0);
} | set_exclude_list | apg-2.3.0b_p20150129-r1 | app-admin | O0/app-admin/apg-2.3.0b_p20150129-r1/apgd | ida | O0 |
void smemset(volatile void *buf, size_t size, int ch_0) {
_BYTE *v3;
while (size--) {
v3 = buf;
buf = (char *)buf + 1;
*v3 = ch_0;
}
} | static void smemset(void volatile *buf, size_t size, int ch) {
char volatile *p = buf;
while (size--)
*p++ = (char)ch;
} | smemset | apg-2.3.0b_p20150129-r1 | app-admin | O0/app-admin/apg-2.3.0b_p20150129-r1/apgd | ida | O0 |
void specialize(char *syllable) {
char *tmp;
tmp = (char *)calloc(1u, 4u);
if (!tmp)
err_sys_fatal("calloc");
if (strlen(syllable) == 1) {
gen_rand_symbol(tmp, 2u);
*syllable = *tmp;
}
free(tmp);
} | void specialize(char *syllable) {
char *tmp;
if ((tmp = (char *)calloc(1, 4)) == NULL)
err_sys_fatal("calloc");
if (strlen(syllable) == 1) {
(void)gen_rand_symbol(tmp, S_SS);
(void)memcpy((void *)syllable, (void *)tmp, 1);
}
free((void *)tmp);
} | specialize | apg-2.3.0b_p20150129-r1 | app-admin | O0/app-admin/apg-2.3.0b_p20150129-r1/apgd | ida | O0 |
char *spell_word(char *word, char *spelled_word) {
size_t v3;
char *v4;
char *spelled_worda;
int s_length;
int i;
int ia;
int j;
int ja;
int word_len;
char *tmp_ptr;
s_length = 0;
word_len = strlen(word);
for (i = 0; i <= word_len; ++i) {
for (j = 0; j <= 93; ++j) {
if (word[i] == c... | char *spell_word(char *word, char *spelled_word) {
struct char_spell {
char symbol;
char *name;
};
static const struct char_spell cs[94] = {{'1', "ONE"},
{'2', "TWO"},
{'3', "THREE"},
... | spell_word | apg-2.3.0b_p20150129-r1 | app-admin | O0/app-admin/apg-2.3.0b_p20150129-r1/apgd | ida | O0 |
void symb2name(char *syllable, char *h_syllable) {
size_t v2;
size_t v3;
int i;
int flag;
flag = 0;
if (strlen(syllable) == 1) {
for (i = 0; i <= 41; ++i) {
if (*syllable == ssn_1[i].symbol) {
v2 = strlen(ssn_1[i].name);
memcpy(h_syllable, ssn_1[i].name, v2);
flag = 1;
... | void symb2name(char *syllable, char *h_syllable) {
struct ssymb_names {
char symbol;
char *name;
};
static const struct ssymb_names ssn[42] = {{'1', "ONE"},
{'2', "TWO"},
{'3', "THREE"},
... | symb2name | apg-2.3.0b_p20150129-r1 | app-admin | O0/app-admin/apg-2.3.0b_p20150129-r1/apgd | ida | O0 |
void x917_setseed(UINT32 seed, int quiet) {
__pid_t pid;
FILE *dr;
UINT32 drs[2];
unsigned long v5;
v5 = __readfsqword(0x28u);
pid = getpid();
dr = fopen("/dev/random", "r");
if (dr || (dr = fopen("/dev/urandom", "r")) != 0) {
fread(drs, 8u, 1u, dr);
*(_DWORD *)&_rnd_seed = seed ^ drs[0];
*... | void x917_setseed(UINT32 seed, int quiet) {
FILE *dr;
UINT32 drs[2];
UINT32 pid = 0;
pid = (UINT32)getpid();
if ((dr = fopen(APG_DEVRANDOM, "r")) != NULL) {
(void)fread((void *)&drs[0], 8, 1, dr);
__rnd_seed[0] = seed ^ drs[0];
__rnd_seed[1] = seed ^ drs[1];
(void)fclose(dr);
} else if ((d... | x917_setseed | apg-2.3.0b_p20150129-r1 | app-admin | O0/app-admin/apg-2.3.0b_p20150129-r1/apgd | ida | O0 |
UINT32 x917cast_rnd() {
timeval local_time;
UINT32 I[2];
UINT32 I_plus_s[2];
UINT32 Xi[2];
UINT32 Xi_plus_I[2];
cast_key ky;
unsigned long v7;
v7 = __readfsqword(0x28u);
*(_QWORD *)I = 0;
I_plus_s[0] = 0;
I_plus_s[1] = 0;
*(_QWORD *)Xi = 0;
Xi_plus_I[0] = 0;
Xi_plus_I[1] = 0;
gettimeofday... | UINT32
x917cast_rnd(void) {
#if !defined(WIN32) && !defined(_WIN32) && !defined(__WIN32) && \
!defined(__WIN32__)
struct timeval local_time;
#else
clock_t local_time[2];
#endif
UINT32 I[2] = {0L, 0L};
UINT32 I_plus_s[2] = {0L, 0L};
UINT32 Xi[2] = {0L, 0L};
UINT32 Xi_plus_I[2] = {0L, 0L};
... | x917cast_rnd | apg-2.3.0b_p20150129-r1 | app-admin | O0/app-admin/apg-2.3.0b_p20150129-r1/apgd | ida | O0 |
UINT32 x917sha1_rnd() {
timeval local_time;
UINT32 I[2];
UINT32 I_plus_s[2];
UINT32 Xi[2];
UINT32 Xi_plus_I[2];
apg_SHA_INFO shaInfo;
BYTE hash[24];
unsigned long v8;
v8 = __readfsqword(0x28u);
I[0] = 0;
I[1] = 0;
I_plus_s[0] = 0;
I_plus_s[1] = 0;
Xi[0] = 0;
Xi[1] = 0;
Xi_plus_I[0] = 0;... | UINT32
x917sha1_rnd(void) {
#if !defined(WIN32) && !defined(_WIN32) && !defined(__WIN32) && \
!defined(__WIN32__)
struct timeval local_time;
#else
clock_t local_time[2];
#endif
UINT32 I[2] = {0L, 0L};
UINT32 I_plus_s[2] = {0L, 0L};
UINT32 Xi[2] = {0L, 0L};
UINT32 Xi_plus_I[2] = {0L, 0L};
... | x917sha1_rnd | apg-2.3.0b_p20150129-r1 | app-admin | O0/app-admin/apg-2.3.0b_p20150129-r1/apgd | ida | O0 |
int relaying_LTX_manager_plugin_init(prelude_plugin_entry_t *pe,
void *rootopt) {
int ret;
int reta;
prelude_option_t *opt[2];
opt[1] = (prelude_option_t *)__readfsqword(0x28u);
ret = prelude_option_add(rootopt, opt, 7, 0, "relaying",
"Relaying ... | int relaying_LTX_manager_plugin_init(prelude_plugin_entry_t *pe,
void *rootopt) {
int ret;
prelude_option_t *opt;
static manager_report_plugin_t relaying_plugin;
int hook = PRELUDE_OPTION_TYPE_CLI | PRELUDE_OPTION_TYPE_CFG |
PRELUDE_OPTION_TYPE_WIDE;
ret = pr... | relaying_LTX_manager_plugin_init | prelude-manager-5.2.0-r1 | app-admin | O0/app-admin/prelude-manager-5.2.0-r1/relaying.so | ida | O0 |
int relaying_LTX_prelude_plugin_version() { return 1; } | int relaying_LTX_prelude_plugin_version(void) {
return PRELUDE_PLUGIN_API_VERSION;
} | relaying_LTX_prelude_plugin_version | prelude-manager-5.2.0-r1 | app-admin | O0/app-admin/prelude-manager-5.2.0-r1/relaying.so | ida | O0 |
int relaying_activate(prelude_option_t *opt, const char *optarg,
prelude_string_t *err, void *context) {
int *v4;
relaying_plugin_t *v7;
v7 = (relaying_plugin_t *)calloc(1u, 8u);
if (v7) {
prelude_plugin_instance_set_plugin_data(context, v7);
return 0;
} else {
v4 = __errno_... | static int relaying_activate(prelude_option_t *opt, const char *optarg,
prelude_string_t *err, void *context) {
relaying_plugin_t *new;
new = calloc(1, sizeof(*new));
if (!new)
return prelude_error_from_errno(errno);
prelude_plugin_instance_set_plugin_data(context, new);
re... | relaying_activate | prelude-manager-5.2.0-r1 | app-admin | O0/app-admin/prelude-manager-5.2.0-r1/relaying.so | ida | O0 |
void relaying_destroy(prelude_plugin_instance_t *pi, prelude_string_t *out) {
relaying_plugin_t *plugin;
plugin = (relaying_plugin_t *)prelude_plugin_instance_get_plugin_data(pi);
if (plugin->conn_pool)
prelude_connection_pool_destroy(plugin->conn_pool);
free(plugin);
} | static void relaying_destroy(prelude_plugin_instance_t *pi,
prelude_string_t *out) {
relaying_plugin_t *plugin = prelude_plugin_instance_get_plugin_data(pi);
if (plugin->conn_pool)
prelude_connection_pool_destroy(plugin->conn_pool);
free(plugin);
} | relaying_destroy | prelude-manager-5.2.0-r1 | app-admin | O0/app-admin/prelude-manager-5.2.0-r1/relaying.so | ida | O0 |
int relaying_get_manager(prelude_option_t *opt, prelude_string_t *out,
void *context) {
long connection_string;
relaying_plugin_t *plugin;
plugin =
(relaying_plugin_t *)prelude_plugin_instance_get_plugin_data(context);
if (plugin->conn_pool) {
connection_string =
prel... | static int relaying_get_manager(prelude_option_t *opt, prelude_string_t *out,
void *context) {
relaying_plugin_t *plugin = prelude_plugin_instance_get_plugin_data(context);
if (!plugin->conn_pool)
return 0;
prelude_string_sprintf(
out, "%s",
prelude_connection_poo... | relaying_get_manager | prelude-manager-5.2.0-r1 | app-admin | O0/app-admin/prelude-manager-5.2.0-r1/relaying.so | ida | O0 |
int relaying_process(prelude_plugin_instance_t *pi, idmef_message_t *idmef) {
int ret;
relaying_plugin_t *plugin;
plugin = (relaying_plugin_t *)prelude_plugin_instance_get_plugin_data(pi);
if (!plugin->conn_pool)
return 0;
if (!msgbuf) {
ret = prelude_msgbuf_new(&msgbuf);
if (ret < 0)
retur... | static int relaying_process(prelude_plugin_instance_t *pi,
idmef_message_t *idmef) {
int ret;
relaying_plugin_t *plugin = prelude_plugin_instance_get_plugin_data(pi);
if (!plugin->conn_pool)
return 0;
if (!msgbuf) {
ret = prelude_msgbuf_new(&msgbuf);
if (ret < 0)
... | relaying_process | prelude-manager-5.2.0-r1 | app-admin | O0/app-admin/prelude-manager-5.2.0-r1/relaying.so | ida | O0 |
int relaying_set_manager(prelude_option_t *opt, const char *optarg,
prelude_string_t *err, void *context) {
int flags;
int v6;
int ret;
int reta;
int retb;
relaying_plugin_t *plugin;
prelude_client_profile_t *cp;
plugin =
(relaying_plugin_t *)prelude_plugin_instance_get_p... | static int relaying_set_manager(prelude_option_t *opt, const char *optarg,
prelude_string_t *err, void *context) {
int ret;
prelude_client_profile_t *cp;
relaying_plugin_t *plugin = prelude_plugin_instance_get_plugin_data(context);
if (!plugin->conn_pool) {
cp = prelude_clie... | relaying_set_manager | prelude-manager-5.2.0-r1 | app-admin | O0/app-admin/prelude-manager-5.2.0-r1/relaying.so | ida | O0 |
int send_msgbuf(prelude_msgbuf_t *msgbuf, prelude_msg_t *msg) {
prelude_connection_pool_t *pool;
pool = (prelude_connection_pool_t *)prelude_msgbuf_get_data(msgbuf);
prelude_connection_pool_broadcast(pool, msg);
return 0;
} | static int send_msgbuf(prelude_msgbuf_t *msgbuf, prelude_msg_t *msg) {
prelude_connection_pool_t *pool = prelude_msgbuf_get_data(msgbuf);
prelude_connection_pool_broadcast(pool, msg);
return 0;
} | send_msgbuf | prelude-manager-5.2.0-r1 | app-admin | O0/app-admin/prelude-manager-5.2.0-r1/relaying.so | ida | O0 |
int do_exec(char *const *argv) {
int *v1;
char *v2;
int *v4;
char *v5;
__pid_t pid;
char *envp[1];
unsigned long v8;
v8 = __readfsqword(0x28u);
envp[0] = 0;
pid = fork();
if (pid >= 0) {
if (pid > 0)
return 0;
} else {
v1 = __errno_location();
v2 = strerror(*v1);
_prelude_... | static int do_exec(char *const *argv) {
int ret;
char *envp[] = {NULL};
pid_t pid = fork();
if (pid < 0)
prelude_log(PRELUDE_LOG_ERR,
"error forking process for '%s' execution: %s\n", argv[0],
strerror(errno));
else if (pid > 0)
return 0;
ret = execve(argv[0], argv... | do_exec | prelude-manager-5.2.0-r1 | app-admin | O0/app-admin/prelude-manager-5.2.0-r1/script.so | ida | O0 |
int make_argv(script_plugin_t *plugin, idmef_message_t *msg, char ***out) {
int ret;
int reta;
prelude_string_t *tmpstr;
size_t n;
prelude_list_t *tmp;
char **argv;
prelude_linked_object_t *obj;
unsigned long v12;
v12 = __readfsqword(0x28u);
ret = 0;
n = 0;
argv = (char **)calloc(8u, plugin->ar... | static int make_argv(script_plugin_t *plugin, idmef_message_t *msg,
char ***out) {
int ret = 0;
size_t n = 0;
char **argv;
prelude_list_t *tmp;
prelude_linked_object_t *obj;
prelude_string_t *tmpstr;
*out = argv = calloc(sizeof(*argv), plugin->argno + 1);
if (!argv) {
prelude_l... | make_argv | prelude-manager-5.2.0-r1 | app-admin | O0/app-admin/prelude-manager-5.2.0-r1/script.so | ida | O0 |
int script_LTX_manager_plugin_init(prelude_plugin_entry_t *pe, void *rootopt) {
int ret;
int reta;
prelude_option_t *opt[2];
opt[1] = (prelude_option_t *)__readfsqword(0x28u);
ret = prelude_option_add(rootopt, opt, 2, 0, "script",
"Option for the script plugin", 2, script_new, 0);
... | int script_LTX_manager_plugin_init(prelude_plugin_entry_t *pe, void *rootopt) {
int ret;
prelude_option_t *opt;
static manager_report_plugin_t script_plugin;
int hook = PRELUDE_OPTION_TYPE_CFG;
ret = prelude_option_add(rootopt, &opt, PRELUDE_OPTION_TYPE_CFG, 0, "script",
"Option fo... | script_LTX_manager_plugin_init | prelude-manager-5.2.0-r1 | app-admin | O0/app-admin/prelude-manager-5.2.0-r1/script.so | ida | O0 |
int script_LTX_prelude_plugin_version() { return 1; } | int script_LTX_prelude_plugin_version(void) {
return PRELUDE_PLUGIN_API_VERSION;
} | script_LTX_prelude_plugin_version | prelude-manager-5.2.0-r1 | app-admin | O0/app-admin/prelude-manager-5.2.0-r1/script.so | ida | O0 |
int script_arg_add(script_plugin_t *plugin, const char *path) {
int *v2;
int ret;
script_arg_t *v5;
v5 = (script_arg_t *)malloc(0x20u);
if (v5) {
ret = idmef_path_new_fast(&v5->path, path);
if (ret >= 0) {
prelude_linked_object_set_id((prelude_linked_object_t *)v5, 0);
prelude_linked_obje... | static int script_arg_add(script_plugin_t *plugin, const char *path) {
int ret;
script_arg_t *new;
new = malloc(sizeof(*new));
if (!new)
return prelude_error_from_errno(errno);
ret = idmef_path_new_fast(&new->path, path);
if (ret < 0)
return ret;
prelude_linked_object_set_id((prelude_linked_obj... | script_arg_add | prelude-manager-5.2.0-r1 | app-admin | O0/app-admin/prelude-manager-5.2.0-r1/script.so | ida | O0 |
void script_arg_destroy(script_arg_t *object) {
prelude_linked_object_del((prelude_linked_object_t *)object);
idmef_path_destroy(object->path);
free(object);
} | static void script_arg_destroy(script_arg_t *object) {
prelude_linked_object_del((prelude_linked_object_t *)object);
idmef_path_destroy(object->path);
free(object);
} | script_arg_destroy | prelude-manager-5.2.0-r1 | app-admin | O0/app-admin/prelude-manager-5.2.0-r1/script.so | ida | O0 |
int script_arg_resolve(script_arg_t *obj, idmef_message_t *msg, char **out) {
int ret;
int reta;
int retb;
prelude_string_t *str;
idmef_value_t *value[2];
value[1] = (idmef_value_t *)__readfsqword(0x28u);
value[0] = 0;
ret = idmef_path_get(obj->path, msg, value);
if (ret <= 0)
return ret;
reta ... | static int script_arg_resolve(script_arg_t *obj, idmef_message_t *msg,
char **out) {
int ret;
prelude_string_t *str;
idmef_value_t *value = NULL;
ret = idmef_path_get(obj->path, msg, &value);
if (ret <= 0)
return ret;
ret = prelude_string_new(&str);
if (ret < 0) {
i... | script_arg_resolve | prelude-manager-5.2.0-r1 | app-admin | O0/app-admin/prelude-manager-5.2.0-r1/script.so | ida | O0 |
void script_destroy(prelude_plugin_instance_t *pi, prelude_string_t *err) {
prelude_list_t *tmp;
prelude_list_t *bkp;
script_plugin_t *plugin;
script_arg_t *obj;
plugin = (script_plugin_t *)prelude_plugin_instance_get_plugin_data(pi);
tmp = plugin->arglist.next;
bkp = tmp->next;
while (tmp != &plugin->... | static void script_destroy(prelude_plugin_instance_t *pi,
prelude_string_t *err) {
prelude_list_t *tmp, *bkp;
prelude_linked_object_t *obj;
script_plugin_t *plugin = prelude_plugin_instance_get_plugin_data(pi);
prelude_list_for_each_safe(&plugin->arglist, tmp, bkp) {
obj = prelud... | script_destroy | prelude-manager-5.2.0-r1 | app-admin | O0/app-admin/prelude-manager-5.2.0-r1/script.so | ida | O0 |
int script_new(prelude_option_t *opt, const char *arg, prelude_string_t *err,
void *context) {
int *v4;
char *v5;
int *v7;
script_plugin_t *v9;
sigaction sa;
unsigned long v11;
v11 = __readfsqword(0x28u);
sa.sa_handler = (__sighandler_t)(&dword_0 + 1);
sigemptyset(&sa.sa_mask);
sa.sa... | static int script_new(prelude_option_t *opt, const char *arg,
prelude_string_t *err, void *context) {
int ret;
script_plugin_t *new;
struct sigaction sa;
sa.sa_handler = SIG_IGN;
sigemptyset(&sa.sa_mask);
sa.sa_flags = 0;
ret = sigaction(SIGCHLD, &sa, 0);
if (ret < 0) {
prelu... | script_new | prelude-manager-5.2.0-r1 | app-admin | O0/app-admin/prelude-manager-5.2.0-r1/script.so | ida | O0 |
int script_run(prelude_plugin_instance_t *pi, idmef_message_t *msg) {
const char *v2;
int ret;
char **argv;
size_t i;
script_plugin_t *plugin;
char *ptr;
unsigned long v9;
v9 = __readfsqword(0x28u);
plugin = (script_plugin_t *)prelude_plugin_instance_get_plugin_data(pi);
ret = make_argv(plugin, msg... | static int script_run(prelude_plugin_instance_t *pi, idmef_message_t *msg) {
int ret;
size_t i;
char **argv, *ptr;
script_plugin_t *plugin = prelude_plugin_instance_get_plugin_data(pi);
ret = make_argv(plugin, msg, &argv);
if (ret < 0)
prelude_log(PRELUDE_LOG_ERR, "error formatting arguments: %s\n",
... | script_run | prelude-manager-5.2.0-r1 | app-admin | O0/app-admin/prelude-manager-5.2.0-r1/script.so | ida | O0 |
int script_set_command(prelude_option_t *opt, const char *optarg,
prelude_string_t *err, void *context) {
long v5;
long v6;
long v7;
void *contexta;
prelude_string_t *erra;
const char *optarga;
prelude_option_t *opta;
int ret;
prelude_string_t *s;
script_plugin_t *plugin;
co... | static int script_set_command(prelude_option_t *opt, const char *optarg,
prelude_string_t *err, void *context) {
int ret;
const char *ptr;
prelude_string_t *s;
script_plugin_t *plugin = prelude_plugin_instance_get_plugin_data(context);
while ((ptr = strsep((char **)&optarg, " ")... | script_set_command | prelude-manager-5.2.0-r1 | app-admin | O0/app-admin/prelude-manager-5.2.0-r1/script.so | ida | O0 |
short cr_crypt() {
const char *cp;
if (debug)
fwrite("in cr_crypt();\n", 1u, 0xFu, stderr);
if (debug)
fprintf(stderr, "\tpassword: %s\n", cleartext_pass);
if (debug)
fprintf(stderr, "\tsalt: %s\n", salt);
if (strlen(salt) == 2 && strlen(cleartext_pass) > 8)
fwrite("WARNING: only the firs... | short int cr_crypt() {
char *cp;
if (debug)
fprintf(stderr, "in cr_crypt();\n");
if (debug)
fprintf(stderr, "\tpassword: %s\n", cleartext_pass);
if (debug)
fprintf(stderr, "\tsalt: %s\n", salt);
if (strlen(salt) == 2 && strlen(cleartext_pass) > 8) {
fprintf(stderr, "WARNING: only the fir... | cr_crypt | pwcrypt-1.2.2-r3 | app-admin | O0/app-admin/pwcrypt-1.2.2-r3/pwcrypt | ida | O0 |
short cr_getopt(int argc, char **argv) {
short result;
int opt;
md5 = 0;
debug = 0;
quiet = 0;
do_salt = 0;
while (2) {
opt = getopt(argc, argv, "s:mdhVq");
if (opt == -1) {
if (argv[optind] && argv[optind + 1]) {
fprintf(
stderr,
"%s: too many args -- more t... | short int cr_getopt(int argc, char **argv) {
int opt;
md5 = 0;
debug = 0;
quiet = 0;
do_salt = 0;
while ((opt = getopt(argc, argv, "s:mdhVq")) != -1) {
switch (opt) {
case 's':
if (debug)
fprintf(stderr, "Salt provided on command line: <%s>\n", salt);
strncpy(salt, optarg, LSIZ... | cr_getopt | pwcrypt-1.2.2-r3 | app-admin | O0/app-admin/pwcrypt-1.2.2-r3/pwcrypt | ida | O0 |
short cr_getpass() {
char *ptr;
char line[1032];
unsigned long v3;
v3 = __readfsqword(0x28u);
if (!quiet)
fwrite("Enter the password to encrypt: ", 1u, 0x1Fu, stderr);
fgets(line, 1024, stdin);
ptr = strchr(line, 10);
if (ptr)
*ptr = 0;
if (line[0]) {
strncpy(cleartext_pass, line, 0x400u)... | short int cr_getpass() {
char line[LSIZE];
char *ptr;
if (!quiet)
fprintf(stderr, "Enter the password to encrypt: ");
fgets(line, sizeof(line), stdin);
ptr = strchr(line, '\n');
if (ptr != NULL) {
ptr[0] = '\0';
}
if (strlen(line) < 1) {
fprintf(stderr, "error: you must specify a passwor... | cr_getpass | pwcrypt-1.2.2-r3 | app-admin | O0/app-admin/pwcrypt-1.2.2-r3/pwcrypt | ida | O0 |
short cr_random() {
unsigned int v1;
short i;
int len;
char tsalt[1032];
unsigned long v5;
v5 = __readfsqword(0x28u);
if (debug)
fwrite("in cr_random();\n", 1u, 0x10u, stderr);
if (do_salt == 1) {
if (md5 == 1) {
strncpy(tsalt, salt, 8u);
tsalt[8] = 0;
strcpy(salt, "$1$");
... | short int cr_random() {
short int i;
long int len, ti;
char tsalt[LSIZE];
if (debug)
fprintf(stderr, "in cr_random();\n");
if (do_salt == 1) {
if (md5 == 1) {
strncpy(tsalt, salt, 8);
tsalt[8] = '\0';
strcpy(salt, "$1$");
strcat(salt, tsalt);
}
return 0;
}
srand... | cr_random | pwcrypt-1.2.2-r3 | app-admin | O0/app-admin/pwcrypt-1.2.2-r3/pwcrypt | ida | O0 |
void cr_usage(char *me) {
char *ptr;
char lme[1032];
unsigned long v3;
v3 = __readfsqword(0x28u);
ptr = strrchr(me, 47);
if (ptr)
strncpy(lme, ptr + 1, 0x400u);
else
strncpy(lme, me, 0x400u);
cr_version(me);
fputc(10, stderr);
fprintf(stderr, "Usage: %s [-mhVqd] [-s salt] password_to_crypt\... | void cr_usage(char *me) {
char lme[LSIZE];
char *ptr;
ptr = strrchr(me, '/');
if (ptr != NULL) {
++ptr;
strncpy(lme, ptr, sizeof(lme));
} else {
strncpy(lme, me, sizeof(lme));
}
cr_version(me);
fprintf(stderr, "\n");
fprintf(stderr, "Usage: %s [-mhVqd] [-s salt] password_to_crypt\n", lme... | cr_usage | pwcrypt-1.2.2-r3 | app-admin | O0/app-admin/pwcrypt-1.2.2-r3/pwcrypt | ida | O0 |
void cr_version(char *me) {
char *ptr;
char lme[1032];
unsigned long v3;
v3 = __readfsqword(0x28u);
ptr = strrchr(me, 47);
if (ptr)
strncpy(lme, ptr + 1, 0x400u);
else
strncpy(lme, me, 0x400u);
fprintf(stderr, "%s v %s - copyright 2000 A.L.Lambert\n", lme, "1.2.2");
} | void cr_version(char *me) {
char lme[LSIZE];
char *ptr;
ptr = strrchr(me, '/');
if (ptr != NULL) {
++ptr;
strncpy(lme, ptr, sizeof(lme));
} else {
strncpy(lme, me, sizeof(lme));
}
fprintf(stderr, "%s v %s - copyright 2000 A.L.Lambert\n", lme, VERSION);
} | cr_version | pwcrypt-1.2.2-r3 | app-admin | O0/app-admin/pwcrypt-1.2.2-r3/pwcrypt | ida | O0 |
int main(int argc, const char **argv, const char **envp) {
if (cr_getopt(argc, (char **)argv) == -1)
return 1;
if (cr_random() == -1)
return 2;
if (cr_crypt() == -1)
return 3;
printf("%s", encrypted_pass);
return 0;
} | int main(int argc, char **argv) {
if (cr_getopt(argc, argv) == -1)
return 1;
if (cr_random() == -1)
return 2;
if (cr_crypt() == -1)
return 3;
printf("%s", encrypted_pass);
return (0);
} | main | pwcrypt-1.2.2-r3 | app-admin | O0/app-admin/pwcrypt-1.2.2-r3/pwcrypt | ida | O0 |
short open_randfile() {
stat statbuf;
unsigned long v2;
v2 = __readfsqword(0x28u);
if (debug)
fwrite("in open_randfile();\n", 1u, 0x14u, stderr);
if (!stat("/dev/urandom", &statbuf) && (statbuf.st_mode & 0xF000) == 0x2000) {
if (debug)
fwrite("\topening /dev/urandom\n", 1u, 0x16u, stderr);
... | short int open_randfile() {
struct stat statbuf;
if (debug)
fprintf(stderr, "in open_randfile();\n");
if (stat("/dev/urandom", &statbuf) == 0 && S_ISCHR(statbuf.st_mode)) {
if (debug)
fprintf(stderr, "\topening /dev/urandom\n");
rand_file = open("/dev/urandom", O_RDONLY);
if (rand_file !... | open_randfile | pwcrypt-1.2.2-r3 | app-admin | O0/app-admin/pwcrypt-1.2.2-r3/pwcrypt | ida | O0 |
unsigned long seed_srand() {
time_t v0;
unsigned long retval[3];
retval[1] = __readfsqword(0x28u);
if (debug)
fwrite("\tin seed_srandom();\n", 1u, 0x14u, stderr);
if (open_randfile()) {
v0 = time(0);
retval[0] = v0 ^ getpid();
} else {
read(rand_file, retval, 8u);
close(rand_file);
}
... | unsigned long int seed_srand() {
unsigned long int retval;
if (debug)
fprintf(stderr, "\tin seed_srandom();\n");
if (open_randfile() == 0) {
read(rand_file, &retval, sizeof(long int));
close(rand_file);
} else {
retval = (unsigned long int)(time(NULL) ^ getpid());
}
return retval;
} | seed_srand | pwcrypt-1.2.2-r3 | app-admin | O0/app-admin/pwcrypt-1.2.2-r3/pwcrypt | ida | O0 |
int check_filter(filter_plugin_t *plugin, const char *key) {
hash_elem_t *helem;
helem = (hash_elem_t *)prelude_hash_get(plugin->path_value_hash, key);
if (!helem) {
helem = (hash_elem_t *)malloc(0x48u);
if (!helem)
return -1;
helem->count = 0;
helem->parent = plugin;
helem->key = strdu... | static int check_filter(filter_plugin_t *plugin, const char *key) {
hash_elem_t *helem;
helem = prelude_hash_get(plugin->path_value_hash, key);
if (!helem) {
helem = malloc(sizeof(*helem));
if (!helem)
return -1;
helem->count = 0;
helem->parent = plugin;
helem->key = strdup(key);
... | check_filter | prelude-manager-5.2.0-r1 | app-admin | O0/app-admin/prelude-manager-5.2.0-r1/thresholding.so | ida | O0 |
int check_limit(const char *key, filter_plugin_t *plugin, hash_elem_t *helem) {
if (helem->count == 1) {
helem->timer.expire = plugin->maxlimit;
prelude_timer_init(&helem->timer);
}
if (helem->count == plugin->count) {
helem->timer.expire = plugin->limit;
prelude_timer_reset(&helem->timer);
if... | static int check_limit(const char *key, filter_plugin_t *plugin,
hash_elem_t *helem) {
if (helem->count == 1) {
prelude_timer_set_expire(&helem->timer, plugin->maxlimit);
prelude_timer_init(&helem->timer);
}
if (helem->count == plugin->count) {
prelude_timer_set_expire(&helem->... | check_limit | prelude-manager-5.2.0-r1 | app-admin | O0/app-admin/prelude-manager-5.2.0-r1/thresholding.so | ida | O0 |
int check_threshold(const char *key, filter_plugin_t *plugin,
hash_elem_t *helem) {
if (helem->count == 1) {
helem->timer.expire = plugin->threshold;
prelude_timer_init(&helem->timer);
}
if (helem->count % plugin->count)
return -1;
if (plugin->limit) {
if (plugin->count == he... | static int check_threshold(const char *key, filter_plugin_t *plugin,
hash_elem_t *helem) {
if (helem->count == 1) {
prelude_timer_set_expire(&helem->timer, plugin->threshold);
prelude_timer_init(&helem->timer);
}
if (helem->count % plugin->count)
return -1;
if (plugin->l... | check_threshold | prelude-manager-5.2.0-r1 | app-admin | O0/app-admin/prelude-manager-5.2.0-r1/thresholding.so | ida | O0 |
void destroy_filter_path(filter_plugin_t *plugin) {
filter_plugin_t *tmp;
prelude_list_t *bkp;
tmp = (filter_plugin_t *)plugin->path_list.next;
bkp = plugin->path_list.next->next;
while (tmp != plugin) {
idmef_path_destroy(tmp->path_value_hash);
prelude_list_del(&tmp->path_list);
free(tmp);
t... | static void destroy_filter_path(filter_plugin_t *plugin) {
path_elem_t *item;
prelude_list_t *tmp, *bkp;
prelude_list_for_each_safe(&plugin->path_list, tmp, bkp) {
item = prelude_list_entry(tmp, path_elem_t, list);
idmef_path_destroy(item->path);
prelude_list_del(&item->list);
free(item);
}
} | destroy_filter_path | prelude-manager-5.2.0-r1 | app-admin | O0/app-admin/prelude-manager-5.2.0-r1/thresholding.so | ida | O0 |
int filter_activate(prelude_option_t *opt, const char *optarg,
prelude_string_t *err, void *context) {
int *v4;
int ret;
filter_plugin_t *v8;
v8 = (filter_plugin_t *)calloc(1u, 0x38u);
if (v8) {
ret = prelude_hash_new(&v8->path_value_hash, 0, 0, 0, hash_entry_destroy);
if (ret >= ... | static int filter_activate(prelude_option_t *opt, const char *optarg,
prelude_string_t *err, void *context) {
int ret;
filter_plugin_t *new;
new = calloc(1, sizeof(*new));
if (!new)
return prelude_error_from_errno(errno);
ret = prelude_hash_new(&new->path_value_hash, NULL, NUL... | filter_activate | prelude-manager-5.2.0-r1 | app-admin | O0/app-admin/prelude-manager-5.2.0-r1/thresholding.so | ida | O0 |
void filter_destroy(prelude_plugin_instance_t *pi, prelude_string_t *out) {
filter_plugin_t *plugin;
plugin = (filter_plugin_t *)prelude_plugin_instance_get_plugin_data(pi);
destroy_filter_path(plugin);
if (plugin->hook)
manager_filter_destroy_hook(plugin->hook);
if (plugin->hook_str)
free(plugin->ho... | static void filter_destroy(prelude_plugin_instance_t *pi,
prelude_string_t *out) {
filter_plugin_t *plugin = prelude_plugin_instance_get_plugin_data(pi);
destroy_filter_path(plugin);
if (plugin->hook)
manager_filter_destroy_hook(plugin->hook);
if (plugin->hook_str)
free(plu... | filter_destroy | prelude-manager-5.2.0-r1 | app-admin | O0/app-admin/prelude-manager-5.2.0-r1/thresholding.so | ida | O0 |
int get_filter_count(prelude_option_t *opt, prelude_string_t *out,
void *context) {
filter_plugin_t *plugin;
plugin = (filter_plugin_t *)prelude_plugin_instance_get_plugin_data(context);
return prelude_string_sprintf(out, "%d", plugin->count);
} | static int get_filter_count(prelude_option_t *opt, prelude_string_t *out,
void *context) {
filter_plugin_t *plugin = prelude_plugin_instance_get_plugin_data(context);
return prelude_string_sprintf(out, "%d", plugin->count);
} | get_filter_count | prelude-manager-5.2.0-r1 | app-admin | O0/app-admin/prelude-manager-5.2.0-r1/thresholding.so | ida | O0 |
int get_filter_limit(prelude_option_t *opt, prelude_string_t *out,
void *context) {
filter_plugin_t *plugin;
plugin = (filter_plugin_t *)prelude_plugin_instance_get_plugin_data(context);
return prelude_string_sprintf(out, "%d/%d", plugin->limit, plugin->maxlimit);
} | static int get_filter_limit(prelude_option_t *opt, prelude_string_t *out,
void *context) {
filter_plugin_t *plugin = prelude_plugin_instance_get_plugin_data(context);
return prelude_string_sprintf(out, "%d/%d", plugin->limit, plugin->maxlimit);
} | get_filter_limit | prelude-manager-5.2.0-r1 | app-admin | O0/app-admin/prelude-manager-5.2.0-r1/thresholding.so | ida | O0 |
int get_filter_path(prelude_option_t *opt, prelude_string_t *out,
void *context) {
long name;
prelude_list_t *tmp;
filter_plugin_t *plugin;
plugin = (filter_plugin_t *)prelude_plugin_instance_get_plugin_data(context);
for (tmp = plugin->path_list.next; tmp != (prelude_list_t *)plugin;
... | static int get_filter_path(prelude_option_t *opt, prelude_string_t *out,
void *context) {
path_elem_t *item;
prelude_list_t *tmp;
filter_plugin_t *plugin = prelude_plugin_instance_get_plugin_data(context);
prelude_list_for_each(&plugin->path_list, tmp) {
item = prelude_list_entry... | get_filter_path | prelude-manager-5.2.0-r1 | app-admin | O0/app-admin/prelude-manager-5.2.0-r1/thresholding.so | ida | O0 |
int get_filter_threshold(prelude_option_t *opt, prelude_string_t *out,
void *context) {
filter_plugin_t *plugin;
plugin = (filter_plugin_t *)prelude_plugin_instance_get_plugin_data(context);
return prelude_string_sprintf(out, "%d", plugin->threshold);
} | static int get_filter_threshold(prelude_option_t *opt, prelude_string_t *out,
void *context) {
filter_plugin_t *plugin = prelude_plugin_instance_get_plugin_data(context);
return prelude_string_sprintf(out, "%d", plugin->threshold);
} | get_filter_threshold | prelude-manager-5.2.0-r1 | app-admin | O0/app-admin/prelude-manager-5.2.0-r1/thresholding.so | ida | O0 |
int get_value_from_path(idmef_path_t *path, idmef_message_t *message,
prelude_string_t *str) {
int ret;
idmef_value_t *value[2];
value[1] = (idmef_value_t *)__readfsqword(0x28u);
if ((int)idmef_path_get(path, message, value) <= 0)
return 0;
ret = idmef_value_iterate(value[0], iter... | static int get_value_from_path(idmef_path_t *path, idmef_message_t *message,
prelude_string_t *str) {
int ret;
idmef_value_t *value;
ret = idmef_path_get(path, message, &value);
if (ret <= 0)
return 0;
ret = idmef_value_iterate(value, iter_cb, str);
idmef_value_destroy(v... | get_value_from_path | prelude-manager-5.2.0-r1 | app-admin | O0/app-admin/prelude-manager-5.2.0-r1/thresholding.so | ida | O0 |
void hash_entry_destroy(void *data) {
prelude_timer_destroy((char *)data + 16);
free(*((void **)data + 1));
free(data);
} | static void hash_entry_destroy(void *data) {
hash_elem_t *helem = data;
prelude_timer_destroy(&helem->timer);
free(helem->key);
free(helem);
} | hash_entry_destroy | prelude-manager-5.2.0-r1 | app-admin | O0/app-admin/prelude-manager-5.2.0-r1/thresholding.so | ida | O0 |
void hash_entry_expire_cb(void *data) {
_prelude_log(6, "thresholding.c", "hash_entry_expire_cb", 145,
"[%s]: release suppression.\n", *((const char **)data + 1));
prelude_hash_elem_destroy(*(_QWORD *)(*((_QWORD *)data + 8) + 16LL),
*((_QWORD *)data + 1));
} | static void hash_entry_expire_cb(void *data) {
hash_elem_t *helem = data;
prelude_log_debug(3, "[%s]: release suppression.\n", helem->key);
prelude_hash_elem_destroy(helem->parent->path_value_hash, helem->key);
} | hash_entry_expire_cb | prelude-manager-5.2.0-r1 | app-admin | O0/app-admin/prelude-manager-5.2.0-r1/thresholding.so | ida | O0 |
int iter_cb(idmef_value_t *value, void *str) {
const char *v3;
int ret;
if (!value)
return 0;
if ((unsigned int)idmef_value_is_list(value))
return idmef_value_iterate(value, iter_cb, str);
ret = idmef_value_to_string(value, str);
if (ret >= 0)
return 0;
v3 = (const char *)prelude_strerror((un... | static int iter_cb(idmef_value_t *value, void *str) {
int ret;
if (!value)
return 0;
if (idmef_value_is_list(value))
return idmef_value_iterate(value, iter_cb, str);
ret = idmef_value_to_string(value, str);
if (ret < 0) {
prelude_log(PRELUDE_LOG_ERR, "could not convert value to string: %s.\n",
... | iter_cb | prelude-manager-5.2.0-r1 | app-admin | O0/app-admin/prelude-manager-5.2.0-r1/thresholding.so | ida | O0 |
int process_message(idmef_message_t *msg, void *priv) {
const char *string;
int ret;
prelude_string_t *key;
prelude_list_t *tmp;
filter_plugin_t *plugin;
path_elem_t *pelem;
unsigned long v9;
v9 = __readfsqword(0x28u);
plugin = (filter_plugin_t *)priv;
ret = prelude_string_new(&key);
if (ret < 0)... | static int process_message(idmef_message_t *msg, void *priv) {
int ret;
path_elem_t *pelem;
prelude_list_t *tmp;
prelude_string_t *key;
filter_plugin_t *plugin = priv;
ret = prelude_string_new(&key);
if (ret < 0)
return 0;
prelude_list_for_each(&plugin->path_list, tmp) {
pelem = prelude_list_e... | process_message | prelude-manager-5.2.0-r1 | app-admin | O0/app-admin/prelude-manager-5.2.0-r1/thresholding.so | ida | O0 |
int set_filter_count(prelude_option_t *opt, const char *optarg,
prelude_string_t *err, void *context) {
filter_plugin_t *plugin;
plugin = (filter_plugin_t *)prelude_plugin_instance_get_plugin_data(context);
plugin->count = atoi(optarg);
return 0;
} | static int set_filter_count(prelude_option_t *opt, const char *optarg,
prelude_string_t *err, void *context) {
filter_plugin_t *plugin = prelude_plugin_instance_get_plugin_data(context);
plugin->count = atoi(optarg);
return 0;
} | set_filter_count | prelude-manager-5.2.0-r1 | app-admin | O0/app-admin/prelude-manager-5.2.0-r1/thresholding.so | ida | O0 |
int set_filter_limit(prelude_option_t *opt, const char *optarg,
prelude_string_t *err, void *context) {
filter_plugin_t *plugin;
char *ptr;
plugin = (filter_plugin_t *)prelude_plugin_instance_get_plugin_data(context);
ptr = strchr(optarg, 47);
if (ptr) {
*ptr = 0;
plugin->maxlimi... | static int set_filter_limit(prelude_option_t *opt, const char *optarg,
prelude_string_t *err, void *context) {
char *ptr;
filter_plugin_t *plugin = prelude_plugin_instance_get_plugin_data(context);
ptr = strchr(optarg, '/');
if (ptr) {
*ptr = 0;
plugin->maxlimit = atoi(ptr +... | set_filter_limit | prelude-manager-5.2.0-r1 | app-admin | O0/app-admin/prelude-manager-5.2.0-r1/thresholding.so | ida | O0 |
int set_filter_path(prelude_option_t *opt, const char *optarg,
prelude_string_t *err, void *context) {
int *v4;
prelude_error_t ret;
char *dup;
filter_plugin_t *plugin;
char *start;
char *ptr;
path_elem_t *elem;
unsigned long v13;
v13 = __readfsqword(0x28u);
ret = 0;
dup = str... | static int set_filter_path(prelude_option_t *opt, const char *optarg,
prelude_string_t *err, void *context) {
int ret = 0;
path_elem_t *elem;
char *ptr, *start, *dup = strdup(optarg);
filter_plugin_t *plugin = prelude_plugin_instance_get_plugin_data(context);
destroy_filter_path(pl... | set_filter_path | prelude-manager-5.2.0-r1 | app-admin | O0/app-admin/prelude-manager-5.2.0-r1/thresholding.so | ida | O0 |
int set_filter_threshold(prelude_option_t *opt, const char *optarg,
prelude_string_t *err, void *context) {
filter_plugin_t *plugin;
plugin = (filter_plugin_t *)prelude_plugin_instance_get_plugin_data(context);
plugin->threshold = atoi(optarg);
return 0;
} | static int set_filter_threshold(prelude_option_t *opt, const char *optarg,
prelude_string_t *err, void *context) {
filter_plugin_t *plugin = prelude_plugin_instance_get_plugin_data(context);
plugin->threshold = atoi(optarg);
return 0;
} | set_filter_threshold | prelude-manager-5.2.0-r1 | app-admin | O0/app-admin/prelude-manager-5.2.0-r1/thresholding.so | ida | O0 |
int thresholding_LTX_manager_plugin_init(prelude_plugin_entry_t *pe,
void *root_opt) {
int ret;
int reta;
int retb;
int retc;
int retd;
int rete;
prelude_option_t *opt[2];
opt[1] = (prelude_option_t *)__readfsqword(0x28u);
ret = prelude_option_add(root_opt, op... | int thresholding_LTX_manager_plugin_init(prelude_plugin_entry_t *pe,
void *root_opt) {
int ret;
prelude_option_t *opt;
ret = prelude_option_add(
root_opt, &opt,
PRELUDE_OPTION_TYPE_CLI | PRELUDE_OPTION_TYPE_CFG |
PRELUDE_OPTION_TYPE_WIDE,
0, "t... | thresholding_LTX_manager_plugin_init | prelude-manager-5.2.0-r1 | app-admin | O0/app-admin/prelude-manager-5.2.0-r1/thresholding.so | ida | O0 |
int thresholding_LTX_prelude_plugin_version() { return 1; } | int thresholding_LTX_prelude_plugin_version(void) {
return PRELUDE_PLUGIN_API_VERSION;
} | thresholding_LTX_prelude_plugin_version | prelude-manager-5.2.0-r1 | app-admin | O0/app-admin/prelude-manager-5.2.0-r1/thresholding.so | ida | O0 |
UINT32 com_line_user_seq(char *seq) {
int v1;
UINT32 prom[2];
unsigned long v4;
v4 = __readfsqword(0x28u);
prom[0] = 0;
prom[1] = 0;
if (strlen(seq) > 7) {
*(_QWORD *)prom = *(_QWORD *)seq;
} else {
v1 = strlen(seq);
memcpy(prom, seq, v1);
}
return prom[0] ^ prom[1];
} | UINT32
com_line_user_seq(char *seq) {
UINT32 prom[2] = {0L, 0L};
UINT32 sdres = 0L;
if (strlen(seq) < sizeof(prom))
(void)memcpy((void *)&prom[0], (void *)seq, (int)strlen(seq));
else
(void)memcpy((void *)&prom[0], (void *)seq, sizeof(prom));
sdres = prom[0] ^ prom[1];
return (sdres);
} | com_line_user_seq | apg-2.3.0b_p20150129-r1 | app-admin | O0/app-admin/apg-2.3.0b_p20150129-r1/apg | ida | O0 |
char *crypt_passstring(const char *p) {
char salt[11];
unsigned long v3;
v3 = __readfsqword(0x28u);
gen_rand_pass(salt, 10, 10, 0xDu);
return crypt(p, salt);
} | char *crypt_passstring(const char *p) {
char salt[10];
gen_rand_pass(salt, 10, 10, S_SL | S_CL | S_NB);
return (crypt(p, salt));
} | crypt_passstring | apg-2.3.0b_p20150129-r1 | app-admin | O0/app-admin/apg-2.3.0b_p20150129-r1/apg | ida | O0 |
UINT32 get_user_seq() {
int v0;
char *seq;
UINT32 prom[2];
unsigned long v4;
v4 = __readfsqword(0x28u);
prom[0] = 0;
prom[1] = 0;
printf("\nPlease enter some random data (only first %zu are significant)\n",
8u);
seq = getpass("(eg. your old password):>");
if (strlen(seq) > 7) {
*(_QWOR... | UINT32
get_user_seq(void) {
char *seq;
UINT32 prom[2] = {0L, 0L};
UINT32 sdres = 0L;
printf("\nPlease enter some random data (only first %zu are significant)\n",
sizeof(prom));
seq = (char *)getpass("(eg. your old password):>");
if (strlen(seq) < sizeof(prom))
(void)memcpy((void *)&prom[0], (vo... | get_user_seq | apg-2.3.0b_p20150129-r1 | app-admin | O0/app-admin/apg-2.3.0b_p20150129-r1/apg | ida | O0 |
int main(int argc, const char **argv, const char **envp) {
char *v4;
char *v5;
USHORT min_pass_length;
USHORT max_pass_length;
USHORT min_substr_len;
int i;
int restrict_res;
int algorithm;
int restrictions_present;
int plain_restrictions_present;
int bloom_restrict_present;
int paranoid_bloom_r... | int main(int argc, char *argv[]) {
int i = 0;
int restrict_res = 0;
char *pass_string;
char *hyph_pass_string;
time_t tme;
int option = 0;
int algorithm = 0;
int restrictions_present = FALSE;
int plain_restrictions_present = FALSE;
int bloom_restrict_present = FALSE;
int paranoid_bloom_restrict... | main | apg-2.3.0b_p20150129-r1 | app-admin | O0/app-admin/apg-2.3.0b_p20150129-r1/apg | ida | O0 |
void print_help() {
puts("\napg Automated Password Generator");
puts(" Copyright (c) Adel I. Mirzazhanov");
puts("\napg [-a algorithm] [-r file] ");
puts(" [-M mode] [-E char_string] [-n num_of_pass] [-m min_pass_len]");
puts(" [-x max_pass_len] [-c cl_seed] [-d] [-s] [-h] [-y] [-q]");
... | void print_help(void) {
printf("\napg Automated Password Generator\n");
printf(" Copyright (c) Adel I. Mirzazhanov\n");
printf("\napg [-a algorithm] [-r file] \n");
printf(
" [-M mode] [-E char_string] [-n num_of_pass] [-m min_pass_len]\n");
printf(" [-x max_pass_len] [-c cl_seed] [... | print_help | apg-2.3.0b_p20150129-r1 | app-admin | O0/app-admin/apg-2.3.0b_p20150129-r1/apg | ida | O0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.