aboutsummaryrefslogtreecommitdiff
path: root/src/bne.c
AgeCommit message (Collapse)Author
2021-07-12Impl proone-htbtclient, bugfix, --enable-mttoolsDavid Timber
* Remove --enable-hostinfod and add --enable-mttools, which enables hostinfod and htbtclient * Change PRNE_HTBT_PROTO_PORT so that the macro can be used in another macro expression(for help message) * Add prne_mbedtls_perror() * proone-htbtclient: implement hostinfo command * proone-htbthost * Add --hostcred option * Response with status frame on ENOMEM * htbt: add prne_htbt_serrc_tostr() and prne_htbt_gen_msgid() * Add prne_ctoupper(), prne_ctolower(), prne_cisspace(), prne_cisprint() * The added functions are the locale-independent equivalent of their POSIX counterparts * Remove Use of the POSIX functions * Add test unit
2021-07-07Refactor: impl prne_mbedtls_verify_alp()David Timber
2021-04-17bne: bug fix and improvementsDavid Timber
* close connection for htbt vector gracefully * decrease connection timeout and increase socket operation * fix bug where both `BNE_CONN_TIMEOUT` and `BNE_CONN_OP_TIMEOUT` are used. * fix memory leak caused by htbt vector
2020-09-28The 80 column rule ...David Timber
* Remove prne_rnd_anum_str()
2020-09-27* Disable armv7, aarch64, x86_64 targetDavid Timber
* 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
2020-09-24* bne: add "login_attempt" param to impl "oneshot"David Timber
2020-09-24* Impl bneDavid Timber
* Reduce timeout values * Impl telnet vector * Separate stx_str/stx_out and eot_str/eot_out to skip echo * Bugfix: wrong BNE_CONN_OP_TIMEOUT timer reset * vssh: skip account if password auth is not available * bne_vssh_write_f(): propagate write() EOF * No EINTR handling * lssh2_handle() * prne_mbedtls_pth_handle() * resolv_ensure_act_dns_fd() * Add util funcs for telnet login prompt parsing * prne_transmem() * prne_memrmem() * prne_memmem()
2020-09-22* Add proone exit codes as macro defsDavid Timber
* Lock file acquisition failure is not an error
2020-09-22* htbt: flush stdout/stderr on each upload tickDavid Timber
2020-09-22* Impl htbtDavid Timber
* Refactor bne_do_connect() * Impl PRNE_BNE_V_HTBT * Run exec with host cred
2020-09-22* Impl bneDavid Timber
* Add base64 upload method * Remove pollin_f() * Caller should terminate cmdline * Newline style detection for \r\n, \r\0, \r or \n * Issue "enable", "system" and "shell" on set up * * Rename prne_strnstr() -> prne_memmem() * Added prne_rebuild_str() for efficiency * Daemonise proone so that bne can clean up after upload
2020-09-20bne: add debug messages for the showDavid Timber
2020-09-20* bne: newline character abstraction for telnet vectorDavid Timber
* bne: always yield while bin recombination
2020-09-20* Impl bneDavid Timber
* Add prne_pth_reset_timer(), prne_build_str()
2020-09-19Impl bneDavid Timber
2020-09-18* Impl: bneDavid Timber
* Add prne_index_nybin()