Skip to content

Instantly share code, notes, and snippets.

View goffinet's full-sized avatar

goffinet

View GitHub Profile
@goffinet
goffinet / jtrinstall.sh
Last active May 28, 2024 23:36 — forked from godevnet/jtrinstall.sh
John the Ripper Installation for Centos 7/8
#!/bin/bash
# Centos 7/8 John the Ripper Installation
#release=(j 1.8.0)
release=(k 1.9.0)
# Check Centos version
if [ -f /etc/redhat-release ] ; then
source /etc/os-release
if [ $VERSION_ID == "8" ] ; then
packager=dnf
elif [ $VERSION_ID == "7" ] ; then
@goffinet
goffinet / rpmforge.sh
Last active December 8, 2023 16:28 — forked from godevnet/rpmforge.sh
RPMForge repo installation on Centos 7
#!/bin/bash
yum -y install epel-release wget
wget http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el7.rf.x86_64.rpm
rpm -Uvh rpmforge-release-0.5.3-1.el7.rf.x86_64.rpm
wget http://dag.wieers.com/rpm/packages/RPM-GPG-KEY.dag.txt
rpm --import RPM-GPG-KEY.dag.txt
@goffinet
goffinet / cb.sh
Created June 5, 2016 13:29
cloudbit script example : list all, id, signal, value, pub, sub
#!/bin/bash
# dependencies : curl, python, jq
DEVICE_ID=put_your_device_id
TOKEN=put_your_device_token
# ! mettre les headers HTTP en variable
# Fonctions all,id,signal,value,pub,sub
@goffinet
goffinet / raspberry-pi-ble-sniffer.md
Created June 11, 2016 13:14 — forked from jkeefe/raspberry-pi-ble-sniffer.md
Notes on using Adafruit's "Bluefruit" BLE sniffer with a Raspberry Pi

BLUETOOTH SNIFFER

Working to sniff Bluetooth Low Energy with the adafruit sniffer

For more information, see this blog post

Going the python route, as described here

before installing pySerial, did ...

@goffinet
goffinet / stress-ng.sh
Created June 13, 2016 19:35
stress-ng stress tool compilation and installation
#!/bin/bash
yum -y install git || apt-get install git
yum -y groupinstall 'Development Tools' || apt-get install build-essential git
cd /tmp
git clone git://kernel.ubuntu.com/cking/stress-ng.git
cd stress-ng
make
cp stress-ng /usr/bin
rm -rf /tmp/stress-*
#!/bin/sh
##1. Dans le GUI :
##Modules Administration/Download and install Languages/Apply Config
##Asterisk SIP Settings/Advanced General Settings/Language = fr/Apply config
##2. En console :
##amportal restart
##3. Téléchargement des fichiers
REP=http://downloads.asterisk.org/pub/telephony/sounds
DIR=/var/lib/asterisk/sounds/fr
mkdir $DIR
@goffinet
goffinet / LFCS_study
Created August 22, 2016 14:56 — forked from gojun077/LFCS_study
LFCS Study Outline 2015.02.28
* LFCS Domains 2015.02
Note - the domains will change somewhat in March 2015. SW RAID
with mdadm will be removed
** The Command Line
*** Editing text files on the CLI
Covers the use of the basic text editors nano and gedit as well
as the advanced editors _vi_ and _emacs_
- nano
simple CLI-based text editor
@goffinet
goffinet / ubuntu-grub-console-no-reboot.sh
Last active October 19, 2022 10:21
Ubuntu/Kali serial console enabled by grub /etc/default/grub, "grub-mkconfig -o /boot/grub/grub.cfg
#!/bin/bash
# Works with Kali latest releases
if [ "$(id -u)" != "0" ]; then
echo "This script must be run as root" 1>&2
exit 1
fi
cat << EOF > /etc/default/grub
# grub-mkconfig -o /boot/grub/grub.cfg
GRUB_DEFAULT=0
GRUB_TIMEOUT=5
@goffinet
goffinet / snmpwalk_v3_authPriv
Created December 5, 2016 21:02
snmpwalk v3 authPriv
USER=SNMPAdmin
PASSWORD=SNMPpassword
SECRET=SNMPSecret
HOST=127.0.0.1
snmpwalk -v3 -l authPriv -u $USER -a MD5 -A $PASSWORD -x DES -X $SECRET $HOST
@goffinet
goffinet / centos7-grub-console.sh
Last active June 17, 2022 03:51
Centos7 serial console enabled by grub /etc/default/grub, "grub-mkconfig -o /boot/grub/grub.cfg"
#!/bin/bash
if [ "$(id -u)" != "0" ]; then
echo "This script must be run as root" 1>&2
exit 1
fi
cat << EOF > /etc/default/grub
# grub-mkconfig -o /boot/grub/grub.cfg
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' /etc/system-release)"
GRUB_DEFAULT=saved