Install the OpenSSL on Debian based systems
sudo apt-get install opensslThis article was transcoded by Jian Yue SimpRead, the original address bbs.pediy.com
[Original] Kernel, container, and eBPF attack and defense
Table of contents
| #!/bin/bash -e | |
| ################### | |
| # ARRAY UTILITIES # | |
| ################### | |
| function arrayToParameters() | |
| { | |
| local -r array=("${@}") |
| #!/bin/bash | |
| echo 'Mounting /opt' | |
| mount -t tmpfs tmpfs /opt | |
| echo 'enabling opkg package manager...' | |
| /usr/bin/opkg.sh > /dev/null |
| #!/usr/bin/env bash | |
| [ "$1" == "l" ] && docker ps && exit; | |
| [ "$1" == "c" ] && docker run -it -d -P --name kali-m1 --mount type=bind,source=/Users/alexnevpryaga/mnt/pentest,target=/home/shared/pentest --mount type=bind,source=/Users/alexnevpryaga/Downloads,target=/home/shared/downloads --cap-add=NET_ADMIN --cap-add=SYS_ADMIN --device /dev/net/tun santaklouse/kali-m1:latest > /dev/null && exit; | |
| [ "$1" == "s" ] && docker start -a -i kali-m1 && exit | |
| [ "$1" == "b" ] && docker exec -it kali-m1 /bin/bash && exit |
| function pidsof() { | |
| pids=(`pgrep "$1"`, `pidof "$1"`, `ps -Ac | grep -m1 '"$1"\$' | awk '{print \$1}'`) | |
| pids=$piods|tr ',' ' ' | |
| echo pids | |
| # | |
| # strings=(`pgrep "$a"`, `pidof "$a"`, `ps -Ac | grep -m1 '"$a"\$' | awk '{print \$1}'`) | |
| # | |
| # pids=() |
dragon.c: a sniffing, non binding, reverse down/exec, portknocking service * Based on cd00r.c by [email protected] and helldoor.c by [email protected].
Compiles as a windows service. Once installed & started, it'll listen (using winpcap) to all interfaces on the machine. If a packet comes across with the "magic source port", it'll reach out using wget to download and execute a binary based off of the src ip of the senders packet.
As it stands the the "magic source port" is 12317. To change this, you can modify the option listed in the accepted source port in the function "packet_handler".
To compile use MinGW's version of gcc.