aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2020-10-20Impl hostinfod and extras ...David Timber
* Use EOVERFLOW instead of E2BIG * Add prne_iobuf_zero() * Fix format check logic error in prne_htbt_ser_msg_head() * Add prne_dup_str() * Add prne_timespec_ms()
2020-09-28The 80 column rule ...David Timber
* Remove prne_rnd_anum_str()
2020-09-28Update gitignoreDavid Timber
2020-09-28Proone: die when pth_attr_of() failsDavid Timber
2020-09-27Proone ignores SIGTERM as `killall -TERM` killsDavid Timber
both process instantly. Use `killall -INT` to signal normal exit.
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* Fix bug in htbt: set client socket non-blockDavid Timber
* htbt: enforce HTBT_LBD_MAX_CLIENTS * Fix bug: wrong use of pth_poll_ev() in * prne_mbedtls_pth_handle() * lssh2_handle()
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()
2020-09-17* Change value types of containers to uintptr_tDavid Timber
* htbt: fix leak in `htbt_main_q_hover()` * proone-recon: fix parse bug
2020-09-15Add strmapDavid Timber
2020-09-15* Code consistency - take *_param_t as pointerDavid Timber
* Fix *_param_t leak and memory error
2020-09-14* Remove <linux/ip*.h> includesDavid Timber
2020-09-14* recon: determine source addressDavid Timber
2020-09-14* Add "--enable-static" configure optionDavid Timber
* Change "PRNE_DEBUG" macro use * Add "PRNE_VERBOSE" * Impl "recon" * Add "inet.h" for Internet Protocol stuff * Changes regarding "PRNE_RND_WELL512_SEEDLEN" * Add prne_own_realloc() for objects with multiple array memebers * Add prne_add_timespec()
2020-09-10* Impl: rnd interface and WELL512David Timber
* cncp: query cnc txt rec after wait not before * In case the child keeps on dying
2020-09-09Add missing shutdown() call @htbtDavid Timber
2020-09-08Add check for tools needed to buildDavid Timber
2020-09-08* Fix bug in pth_poll: wrong use of FD_SET()David Timber
causing undefined behaviour * Fix bug in proone: loading ns pool from dvault for resolv * Fix bug in htbt: improper handling of stream in htbt_relay_child() * Switch back to _POSIX_C_SOURCE=200112L
2020-09-08* Remove proone-unpackDavid Timber
* self test is done by proone-pack * Impl: htbt@proone * htbt: allocate large buffer first by deault * htbt: use 0600 for NY_BIN as the image is not an executable * pack: return error when z_stream is cut short * proone-pack: impl "nybin" file format
2020-09-07* Impl: proone-packDavid Timber
* Impl: host_cred (base64)
2020-09-04Don't initialise static variables to zero.David Timber
2020-09-04* Revision htbt_host_cred formatDavid Timber
* Rewrite proto_test accordingly
2020-09-03* [proone] prne_s_g null checkDavid Timber
2020-09-03* [proone] Use hashed value for shared global fileDavid Timber
name * [htbt] Verify ALPN * [htbt] Bug fixes regarding poll() * [htbt] Run w/o resolv
2020-09-03* Impl: CNCPDavid Timber
* [htbt] Use randomly generated number for SOLICIT request * Die on pth sync funcs only if debug build * Fix wrong use of pth_mutex_acquire(): use with event can result in failure * [htbt] Take "blackhole" fd as param * Remove unused include to reduce compile time * [htbt] Add const macro values for random msg_id gen * [resolv] Make prne_resolv_prm_t reusable * [resolv] Fix mem leak in proone-resolv * [resolv] Sanity check before returning prm so users don't have to worry about SEGFAULT * Add txtrec-*.sh for CNCP
2020-09-02Impl: PRNE_HTBT_OP_HOVERDavid Timber
2020-09-01Impl: htbt_slv abstractionDavid Timber
2020-08-31Impl: NY_BINDavid Timber
2020-08-31Impl run_binDavid Timber
2020-08-30* Impl run_cmdDavid Timber
* Add prne_htbt_hover_t * Add run_cmd test data
2020-08-29* _POSIX_C_SOURCE=199506LDavid Timber
* Add proone-htbthost * Add prne_iobuf, use it in resolv, htbt * memzero() -> prne_memzero() now as a function * Add prne_mbedtls_pth_handle() * Protocol changes * Remove prne_unint_*() * Add src/proone_conf.skel
2020-08-24* htbt checkpointDavid Timber
* Change PRNE_BUILD_ENTROPY to uint8_t array * endian.h problem * Remove "-I." CFLAG added by Automake () * Moved endian conversion macros to endian.h * Moved DNS server config from config.h to resolv.h to reduce compile time * Refactor resolv_ensure_act_dns_fd() to reduce binary size
2020-08-21Protocol change ...David Timber
* Add series of macros for protocol: prne_getmsbN() and prne_recmb_msgN() * Bugfix: prne_nstreq() * Protocol changes * prne_htbt_host_info.rerun_cnt -> prne_htbt_host_info.crash_cnt * prne_htbt_host_info.host_cred_len: range 0 - 255 * prne_htbt_host_info.host_cred is now base64 string * prne_htbt_bin_meta.args_len: 16bit to 12bit * Rest reserved bits * And PRNE_HTBT_ARG_MEM_MAX is set to 4095
2020-08-21Remove unused stuff from executables.David Timber
2020-08-20Progress ...David Timber
* Move DVault out of executable. Dynamically load it on startup * Improved testing scheme * Tidy up prne_*assert* macro series * Protocol: store host credentials in base64 string. No mask * Use the lock shm as a shared_global so the stats can persist * mmap() the executable read-only for later use
2020-08-17Employ pthsem ...David Timber
* Use uint8_t array for hardcoded binary data * Add proone-ipaddr-arr to hardcode DoT servers * Convert X509 data * Brought back M68k and ARC archs just in case * Add CLOCK_REALTIME in prne_mbedtls_entropy_proc_src_f for more entropy * Remove installation of signal handlers. Use sigwait() instead * Bugfix: prne_rnd_anum_str() returned null characters * Add prne_dbgpf() and prne_dbgperr() * prne_assert(): put errno into a register so it's visible in the core dump
2020-08-11Build system change, bugfix ...David Timber
* Workaround for a bug where getrandom() call block within mbedtls * Remove use of undocumented autoconf feature: pkg-config * Remove proone-arch-test
2020-08-10Changes for xcomp ...David Timber
* Add 'pthsem' dependency * Remove m68k, spc arch * Add proone-stress, proone-arch-test
2020-07-20Util functions tidy up ...David Timber
* Remove stdio.h dependency from dmask * Add hex util functions * Write test for functions in util_rt.h
2020-03-03htbt protocol prototype ...David Timber
* gen `PRNE_BUILD_ENTROPY` on configure * `PRNE_PROG_VER` bin str -> arr str * added null checked str func `prne_nstreq()`, `prne_nstrlen()` * preserve `errno` in signal handlers