Skip to content

Instantly share code, notes, and snippets.

@numbnet
numbnet / metasploit.sh
Last active November 11, 2020 04:09
metasploit
#!/data/data/com.termux/files/usr/bin/sh
echo "installing Prequisities \n"
apt update && apt upgrade
apt install autoconf bison clang coreutils curl findutils git apr apr-util libffi-dev libgmp-dev libpcap-dev \
postgresql-dev readline-dev libsqlite-dev openssl-dev libtool libxml2-dev libxslt-dev ncurses-dev pkg-config \
postgresql-contrib wget make ruby-dev libgrpc-dev termux-tools ncurses-utils ncurses
echo "\n"
echo "cloning Metasploit framework\n"
@numbnet
numbnet / .bashrc
Last active December 26, 2020 16:35
UNIX.scripts.Centros.Termux
# ============= .bashrc ============= #
##==================≠==================
## Aliases
##==================≠==================
alias ls="ls -a"
alias rm='rm -rf'
alias cp='cp -i'
alias mv='mv -i'
@numbnet
numbnet / backup.sh
Created November 10, 2020 01:40
Rsync
#!/bin/bash
BDIR='/home/backup';
FDIR= '/';
EXCLUDE='{"/dev/*","/proc/*","/sys/*","/tmp/*","/run/*","/mnt/*","/home/backup/*","/media/*","/lost+found"}';
if [ -d $BDIR ]; then
echo "Folder exists"
cd /mnt && ln -s $BDIR;
else
##### install.ipxe #####
#!ipxe
set base http://mirror.centos.org/centos/7/os/x86_64
prompt -k 0x197e -t 2000 Press F12 to install CentOS... || exit
kernel ${base}/images/pxeboot/vmlinuz initrd=initrd.img repo=${base}
initrd ${base}/images/pxeboot/initrd.img
boot
@numbnet
numbnet / Convert-WindowsImage.ps1
Created August 22, 2020 08:09 — forked from john-clark/Convert-WindowsImage.ps1
deplyment powershell scripts found on the internets
Function
Convert-WindowsImage
{
<#
.NOTES
Copyright (c) Microsoft Corporation. All rights reserved.
Use of this sample source code is subject to the terms of the Microsoft
license agreement under which you licensed this sample source code. If
rem == CreatePartitions-UEFI.txt ==
rem == These commands are used with DiskPart
REM to create five partitions
rem for a UEFI/GPT-based PC.
rem Adjust the partition sizes to fill the drive
rem as necessary. ==
select disk 0
clean
convert gpt
rem == 1. Windows RE tools partition ===============
@numbnet
numbnet / 02 st3_context_menu.bat
Last active December 11, 2020 14:20 — forked from DominikSerafin/01 List of Packages
Backup of my Sublime Text 3 personal preferences
@echo off
SET st3Path=C:\Program Files\Sublime Text 3\sublime_text.exe
rem add it for all file types
@reg add "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text 3" /t REG_SZ /v "" /d "Open with Sublime Text 3" /f
@reg add "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text 3" /t REG_EXPAND_SZ /v "Icon" /d "%st3Path%,0" /f
@reg add "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text 3\command" /t REG_SZ /v "" /d "%st3Path% \"%%1\"" /f
rem add it for folders
@reg add "HKEY_CLASSES_ROOT\Folder\shell\Open with Sublime Text 3" /t REG_SZ /v "" /d "Open with Sublime Text 3" /f
@numbnet
numbnet / ColorHighlighter.sublime-settings
Last active July 25, 2020 18:32
Preferences.sublime-settings
{
"style": "filled",
"ha_style": "none"
}
@numbnet
numbnet / sublime-text-3-setup.md
Created July 23, 2020 10:56 — forked from ijy/sublime-text-3-setup.md
My Sublime Text 3 setup.

Sublime Text 3 Setup

Install Package Control

Install Package Control for easy package management.

  1. Open the console with Ctrl+`
  2. Paste in the following:
@numbnet
numbnet / sublime.md
Created December 25, 2019 06:53
How to backup Sublime Text 3 settings

For PackageControl and Settings sync, follow these instructions.

However, on Windows, symlinking the User folder breaks auto-reload for Settings changes.

To bypass this, either symlink the parent folder - Packages or the main Sublime Text 3 folder.

Make sure to gitignore/exclude everything but the User dir, as they are installed packages and caches.

Code: