Skip to content

Commit

Permalink
Remove feature to run embedded binary to avoid AV warning
Browse files Browse the repository at this point in the history
  • Loading branch information
nodauf committed Sep 1, 2023
1 parent a9bb335 commit 1323b28
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 331 deletions.
127 changes: 0 additions & 127 deletions src/assets/embedded/Invoke-PowerShellTcp.ps1

This file was deleted.

192 changes: 0 additions & 192 deletions src/assets/embedded/php-reverse-shell.php

This file was deleted.

Binary file removed src/assets/embedded/plink.exe
Binary file not shown.
15 changes: 3 additions & 12 deletions src/controllers/runEmbedded_windows.go
Original file line number Diff line number Diff line change
@@ -1,15 +1,5 @@
package controllers

import (
"bytes"
"syscall"
"time"
"unsafe"

"github.com/Binject/go-donut/donut"
bananaphone "github.com/C-Sto/BananaPhone/pkg/BananaPhone"
)

func checkFatalErr(err error) {
if err != nil {
panic(err)
Expand All @@ -26,7 +16,8 @@ func EmbeddedFiles() string {
}

func RunEmbeddedBinary(binary string, arguments string) {
binaryBytes := readEmbeddedBinary(binary)
// feature not used. Disable it to avoid AV warning
/*binaryBytes := readEmbeddedBinary(binary)
argumentBinary := " " // trick use empty argument if no one is given
if arguments != "" {
argumentBinary = arguments
Expand Down Expand Up @@ -109,5 +100,5 @@ func RunEmbeddedBinary(binary string, arguments string) {
// bit of a hack because dunno how to wait for bananaphone background thread to complete...
for {
time.Sleep(1000000000)
}
}*/
}

0 comments on commit 1323b28

Please sign in to comment.