Skip to content

Instantly share code, notes, and snippets.

View apolzek's full-sized avatar

Vinícius Batista apolzek

View GitHub Profile
@apolzek
apolzek / keylogger.py
Created July 23, 2021 15:10
Keylogger feito em python3
#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
@apolzek
apolzek / webhook-discord.cs
Created July 15, 2021 11:34
Send Message Webhook Discord | .NET Core
using System;
using RestSharp;
using RestClient;
using System.Collections.Generic;
using System.Data;
using RestSharp.Extensions;
using System.Linq;
using System.Threading;
@apolzek
apolzek / rmhash.sh
Last active March 31, 2022 14:31
Remove files with the same hash
# 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))
@apolzek
apolzek / Makefile
Last active July 15, 2021 11:29 — forked from gomex/Makefile
Makefile example
# 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)
@apolzek
apolzek / docker-compose.yml
Last active June 5, 2023 18:07 — forked from pantsel/docker-compose.yml
COMPOSE - Kong, Postgres and Konga
version: "3"
networks:
kong-net:
driver: bridge
services:
#######################################
# Postgres: The database used by Kong
@apolzek
apolzek / listen_port.py
Last active January 7, 2021 19:27
Listen port Python3
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
@apolzek
apolzek / docker-compose.yaml
Last active June 5, 2023 18:05
COMPOSE - Elasticsearch, Kibana and APM Server
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"]
@apolzek
apolzek / check_depend.sh
Created July 9, 2020 17:30
Checks and installs dependencies
#!/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"
@apolzek
apolzek / printAsm.asm
Last active November 10, 2019 20:06
Print my name asm
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
@apolzek
apolzek / stop-apport.sh
Last active June 5, 2023 18:04
Disable Apport Ubuntu
#!/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