Skip to content

Instantly share code, notes, and snippets.

View helloimalemur's full-sized avatar
🦊

helloimalemur helloimalemur

🦊
View GitHub Profile
----------------------------------------------------------------------------------------------------
tcpdump -s 0 #capture entire etherner header and IP packet
tcpdump -ni tap55ec3c7f-91 ip6 #locate the ICMPv6 packets
tcpdump -s0 -n -i any -w /tmp/$(hostname)-smbtrace.pcap #if the SMB client or SMB server is a Unix host,Troubleshooting Server Message Block (SMB)
tcpdump -D #Print the list of the network interfaces available on the system and on which tcpdump can capture packet
tcpdump -X -vvv -n -i eth0
@helloimalemur
helloimalemur / K3s_without_traefik.md
Last active August 8, 2024 18:39
K3s without traefik

K3s without traefik

To install the K3s, on the new VM instance, you can simply run the script in the terminal:

curl -sfL https://get.k3s.io | sh -

To install k3s without traefik:

curl -sfL https://get.k3s.io | INSTALL_K3S_EXEC="--disable=traefik" sh -s - 
@helloimalemur
helloimalemur / enable_WAN_on_mikrotik_spf_port.txt
Created August 4, 2024 02:28
enable WAN on mikrotik spf port
1. change the interface list WAN entry to SFP1
2. change the DHCP client WAN to SFP 1
3. remove the SFP port form the Bridges/Ports tab.
@helloimalemur
helloimalemur / wpa_supplicant.md
Last active July 6, 2024 17:59
wpa_supplicant

Configure wireless on Debian linux / raspberry pi

wpa_supplicant -B -Dwext -i wlan0 -c /etc/wpa_supplicant/wpa_supplicant.conf 
/etc/wpa_supplicant/wpa_supplicant.conf
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
network={
 ssid="myssid"
@helloimalemur
helloimalemur / mirrorlist
Created July 2, 2024 20:37
pacman mirrorlist
# Server list generated by rankmirrors on 2024-07-02
Server = https://mirrors.mit.edu/archlinux/$repo/os/$arch
Server = https://mirror.clarkson.edu/archlinux/$repo/os/$arch
Server = https://mirrors.rit.edu/archlinux/$repo/os/$arch
Server = https://mirrors.kernel.org/archlinux/$repo/os/$arch
Server = https://mirror.arizona.edu/archlinux/$repo/os/$arch
Server = https://mirror.arizona.edu/archlinux/$repo/os/$arch
@helloimalemur
helloimalemur / haproxy-log-request-body.md
Last active May 29, 2024 16:50 — forked from lazywithclass/blog-post.md
Logging request body in HAProxy

Logging request body in HAProxy

add the following to the frontend section of your haproxy configuration

## ------ LOG REQ BODY ----------
option http-buffer-request
declare capture request len 40000000
http-request capture req.body id 0
log-format "%ci:%cp [%tr] %ft %b/%s %TR/%Tw/%Tc/%Tr/%Ta %ST %B %CC %CS %tsc %ac/%fc/%bc/%sc/%rc %sq/%bq %hr %hs %{+Q}r %[capture.req.hdr(0)]"
## --------------------
@helloimalemur
helloimalemur / archlinux-kvm.md
Last active May 26, 2024 22:58 — forked from tatumroaquin/archlinux-qemu-kvm.md
KVM Installation for Arch Linux

Arch Linux KVM

install all necessary packages

pacman -S virt-manager virt-viewer qemu

enable libvirt daemon

systemctl enable libvirtd.service
@helloimalemur
helloimalemur / php_elasticsearch_timestamp.txt
Created May 23, 2024 18:56
PHP -> Elasticsearch Index Timestamp Format
// PHP -> Elasticsearch Index Timestamp Format
$timestamp_pre = date("Y-m-d");
$timestamp_pose = date("H:i:s.u");
$tlen = strlen($timestamp_pose);
$tsub = substr($timestamp_pose, 0, $tlen-3);
$tsub = $tsub."Z";
$t = $timestamp_pre."T".$tsub;
@helloimalemur
helloimalemur / openssl_commands.md
Created April 22, 2024 16:57 — forked from Hakky54/openssl_commands.md
Some list of openssl commands for check and verify your keys

OpenSSL 🔐

Install

Install the OpenSSL on Debian based systems

sudo apt-get install openssl
@helloimalemur
helloimalemur / Security_Challenges.txt
Created March 27, 2024 17:01
Security Challenges
CTFs
CTFtime.org
AWS Security
http://flaws.cloud/
http://flaws2.cloud/
https://github.com/RhinoSecurityLabs/cloudgoat