This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#https://www.vivaolinux.com.br/artigo/Como-criar-um-keylogger-em-Python/?pagina=2 | |
# python3 -m pynput | |
# pip3 install pynput | |
# Teste | |
# python3 -m pynput | |
# python3 keylogger-full.py | |
# tail -f /home/log.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using RestSharp; | |
using RestClient; | |
using System.Collections.Generic; | |
using System.Data; | |
using RestSharp.Extensions; | |
using System.Linq; | |
using System.Threading; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# by: apolzek | |
md5sum * | sort -n > .file | |
filename='.file' | |
n=1 | |
x=1 | |
while read line; do | |
current_hash=$(echo $line | awk {'print $1'}) | |
echo "[debugging] current_hash: $current_hash" | |
x=$(($n + 1)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# import env config | |
cnf ?= .env | |
include $(cnf) | |
export $(shell sed 's/=.*//' $(cnf)) | |
# Get the latest tag | |
TAG=$(shell git describe --tags --abbrev=0) | |
GIT_COMMIT=$(shell git log -1 --format=%h) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: "3" | |
networks: | |
kong-net: | |
driver: bridge | |
services: | |
####################################### | |
# Postgres: The database used by Kong |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import socket | |
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) | |
s.bind(('0.0.0.0', 50000)) | |
s.listen(1) | |
conn, addr = s.accept() | |
while 1: | |
data = conn.recv(1024) | |
print(data) | |
if not data: | |
break |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '2.2' | |
services: | |
apm-server: | |
image: docker.elastic.co/apm/apm-server:7.9.0 | |
depends_on: | |
elasticsearch: | |
condition: service_healthy | |
kibana: | |
condition: service_healthy | |
cap_add: ["CHOWN", "DAC_OVERRIDE", "SETGID", "SETUID"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
requires=(helm kubectl testscript anothertest) | |
function check_dependencies() { | |
for item in "${requires[@]}"; do | |
if [ -z $(which $item) ]; then | |
echo "[Alert] $item: not found" | |
else | |
echo "$item: installed" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
section .text | |
global _start ;must be declared for using gcc | |
_start: ;tell linker entry point | |
mov edx, len ;message length | |
mov ecx, msg ;message to write | |
mov ebx, 1 ;file descriptor (stdout) | |
mov eax, 4 ;system call number (sys_write) | |
int 0x80 ;call kernel | |
mov eax, 1 ;system call number (sys_exit) | |
int 0x80 ;call kernel |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
sudo service apport stop | |
sudo echo "enabled=0" > /etc/default/apport | |
----------------------------OU-------------------------------- | |
sudo sed -i 's/enabled=0/enabled=1/g' /etc/default/apport |