Skip to content

Instantly share code, notes, and snippets.

View 0x07CB's full-sized avatar
🎯
Focusing

0x07CB 0x07CB

🎯
Focusing
View GitHub Profile
@0x07CB
0x07CB / Email Server (Linux, Unix, Mac).md
Created February 3, 2023 06:59 — forked from raelgc/Email Server (Linux, Unix, Mac).md
Setup a Local Only SMTP Email Server (Linux, Unix, Mac)

Setup a Local Only SMTP Email Server (Linux, Unix, Mac)

1 - Point localhost.com to your machine

Most of programs will not accept an email using just @localhost as domain. So, edit /etc/hosts file to make the domain localhost.com point to your machine, including this content to the file:

127.0.0.1 localhost.com

2 - Install Postfix

@0x07CB
0x07CB / tarcheatsheet.md
Created February 6, 2023 06:39 — forked from haskaalo/tarcheatsheet.md
Tar usage / Tar Cheat Sheet

Tar Usage / Cheat Sheet

Compress a file or directory

e.g: tar -czvf name-of-archive.tar.gz /path/to/directory-or-file

  • -c: Create an archive.
  • -z: Compress the archive with gzip.
  • -v: makes tar talk a lot. Verbose output shows you all the files being archived and much.
  • -f: Allows you to specify the filename of the archive.
# REMEMBER TO USE VISUDO - you can potentially lock yourself out if sudoers file has parse error
# change visudo editor to VIM
Defaults editor=/usr/bin/vim
# example of /etc/sudoers.d/lbbackup
Cmnd_Alias LS_HARDWARE = /usr/bin/lshw
Cmnd_Alias MOUNT_UDF = /bin/mount -oloop\,rw *
Cmnd_Alias UNMOUNT_UDF = /bin/umount /data/TEMP_UDF_DIR/MOUNT_UDF
@0x07CB
0x07CB / ferme-lecteur-optique.desktop
Created May 3, 2023 23:10
ParrotOS Apps Launcher | ouvre_et_ferme-lecteur-optique - shotcuts - launcher - desktop
#!/usr/bin/env xdg-open
[Desktop Entry]
Version=1.0
Type=Application
Terminal=false
Icon=mate-panel-launcher
Icon[fr_FR]=mate-panel-launcher
Exec=/usr/bin/eject -t
Name[fr_FR]=ferme-lecteur-optique
Name=ferme-lecteur-optique
@0x07CB
0x07CB / aruino-ep32-sketch_may30c.ino
Created May 30, 2023 10:10
aruino-ep32-sketch_may30c.ino
/*************************************************
* Public Constants
*************************************************/
#define NOTE_B0 31
#define NOTE_C1 33
#define NOTE_CS1 35
#define NOTE_D1 37
@0x07CB
0x07CB / README.md
Last active June 14, 2023 16:32
playload_for_fun_not_an_malware-sensors_temp_input_mean-loop-py3_and_bash.injected.b64encoded.sh

playload_for_fun_not_an_malware-sensors_temp_input_mean-loop-py3_and_bash.injected.b64encoded.sh

(fucking long title just name of file...)


( Overkill b64 injected and encoded/decoded code one-line writing )

echo "d2hpbGUgdHJ1ZTsgZG8gY2xlYXIgJiYgZWNobyAiSXlFdmRYTnlMMkpwYmk5d2VYUm9iMjR6Q2lOamIyUnBibWM2SUhWMFppMDRDZ3BDUVZOSVgwTk5Ua1JmUWpZMFJVNURUMFJGUkY4eFBTSmpNbFoxWXpJNWVXTjVRWFJrVTBJNFNVZGtlVnBZUVdkTVYxVm5TVzVTYkdKWVFtSk5RekExV0ZZNWNHSnVRakZrUTBsTElnb0thVzF3YjNKMElITjFZbkJ5YjJObGMzTUtabkp2YlNCaVlYTmxOalFnYVcxd2IzSjBJR0kyTkdSbFkyOWtaU0JoY3lCaVpHVmpDbVp5YjIwZ2MzUmhkR2x6ZEdsamN5QnBiWEJ2Y25RZ2JXVmhiZ3BwYlhCdmNuUWdZMjl3ZVFvS1pHVm1JR052YlhCMWRHVmZablZ1WTNScGIyNWZNU2dwT2dvZ0lDQWdUMVZVVUZWVVgxTlVSVkJmTVNBOUlITjFZbkJ5YjJObGMzTXVZMmhsWTJ0ZmIzVjBjSFYwS0NKN2MyaGxiR3hmWTI5a1pYMGlMbVp2Y20xaGRDZ0tJQ0FnSUNBZ0lDQWdJQ0FnYzJobGJHeGZZMjlrWlNBOUlDSjdjR3hoZVd4dllXUjlJaTVtYjNKdFlYUW9DaUFnSUNBZ0lDQWdJQ0FnSUNBZ0lDQndiR0Y1Ykc5aFpDQTlJR0prWldNb1FrRlRTRjlEVFU1RVgwSTJORVZPUTA5RVJVUmZNU2t1WkdWamIyUmxLQ2t1YzNSeWFYQW
@0x07CB
0x07CB / clean_audio.sh
Created June 15, 2023 11:44 — forked from devoncrouse/clean_audio.sh
Using Sox (http://sox.sourceforge.net) to remove background noise and/or silence from audio files (individually, or in batch).
# Create background noise profile from mp3
/usr/bin/sox noise.mp3 -n noiseprof noise.prof
# Remove noise from mp3 using profile
/usr/bin/sox input.mp3 output.mp3 noisered noise.prof 0.21
# Remove silence from mp3
/usr/bin/sox input.mp3 output.mp3 silence -l 1 0.3 5% -1 2.0 5%
# Remove noise and silence in a single command
@0x07CB
0x07CB / clamav-test.sh
Last active February 1, 2024 16:36
clamav-test scripts - # 1
#!/bin/bash
#
#
function test_clamav_(){
TEST_OUT_=$(curl https://secure.eicar.org/eicar.com.txt | clamscan -)
RESULT_=$(echo $TEST_OUT | grep "stdin : Win.Test.EICAR_HDB-1 FOUND" | wc -l)
if [[ "$RESULT_" != "0" ]]; then
return 1
else
@0x07CB
0x07CB / gist:490233dfe3caabbb51891146f3e50657
Created August 30, 2023 08:18 — forked from arcenet/gist:24015f4e34a00bbaa8f3bcc64c1745e6
Installing haveged on Debian/Ubuntu
apt-get install haveged
nano /etc/default/haveged # Setup DAEMON_ARGS="-w 1024"
update-rc.d haveged defaults
cat /dev/random | rngtest -c 1000 # Testing Availability of Entropy & Quality of Random Data
cat /proc/sys/kernel/random/entropy_avail # To test the amount of available entropy
@0x07CB
0x07CB / opensslCommandExtraction.py
Last active January 3, 2024 12:51
OpenSSL Commands Extraction
#!/usr/bin/python3
#coding: utf-8
import os
import subprocess
from base64 import b64encode as b64enc
from base64 import b64decode as b64dec
def gen_tpl_sub_opt_help_call_cmnd(opt_helper_0=""):