Skip to content

Instantly share code, notes, and snippets.

View synch-cc's full-sized avatar

Sven Welzel synch-cc

View GitHub Profile
@synch-cc
synch-cc / sed cheatsheet
Created October 22, 2015 08:03 — forked from chales/sed cheatsheet
magic of sed -- find and replace "text" in a string or a file
FILE SPACING:
# double space a file
sed G
# double space a file which already has blank lines in it. Output file
# should contain no more than one blank line between lines of text.
sed '/^$/d;G'
@synch-cc
synch-cc / Nvidia_Tesla_v100_Hashcat_Benchmark.md
Last active May 19, 2018 16:17
Benchmark of hashcat (v4.1.0) using Nvidia Driver Version: 396.26 on 8 x Nvidia Tesla V100's

Benchmark of hashcat (v4.1.0) using Nvidia Driver Version: 396.26 on 8 x Nvidia Tesla V100's


OpenCL Platform #1: NVIDIA Corporation
======================================
* Device #1: Tesla V100-SXM2-16GB, 4040/16160 MB allocatable, 80MCU
* Device #2: Tesla V100-SXM2-16GB, 4040/16160 MB allocatable, 80MCU
* Device #3: Tesla V100-SXM2-16GB, 4040/16160 MB allocatable, 80MCU
* Device #4: Tesla V100-SXM2-16GB, 4040/16160 MB allocatable, 80MCU
@synch-cc
synch-cc / scrdec18-VC8.exe
Created July 18, 2018 09:28 — forked from bcse/scrdec18-VC8.exe
Windows Script Decoder 1.8 (Decoding JScript.Encoded)
@synch-cc
synch-cc / awk_netstat.sh
Created August 2, 2018 07:49 — forked from staaldraad/awk_netstat.sh
AWK to get details from /proc/net/tcp and /proc/net/udp when netstat and lsof are not available
# Gawk version
# Remote
grep -v "rem_address" /proc/net/tcp | awk '{x=strtonum("0x"substr($3,index($3,":")-2,2)); for (i=5; i>0; i-=2) x = x"."strtonum("0x"substr($3,i,2))}{print x":"strtonum("0x"substr($3,index($3,":")+1,4))}'
# Local
grep -v "rem_address" /proc/net/tcp | awk '{x=strtonum("0x"substr($2,index($2,":")-2,2)); for (i=5; i>0; i-=2) x = x"."strtonum("0x"substr($2,i,2))}{print x":"strtonum("0x"substr($2,index($2,":")+1,4))}'
# No Gawk
# Local
grep -v "rem_address" /proc/net/tcp | awk 'function hextodec(str,ret,n,i,k,c){
@synch-cc
synch-cc / uid_awk.sh
Created August 2, 2018 07:49 — forked from staaldraad/uid_awk.sh
Get the uid, gid and user groups without touching /etc/passwd or running the `id` command
awk -F: 'END {print "uid:"u" gid:"g" groups:"gg}{if($1=="Uid"){split($2,a," ");u=a[1]}if($1=="Gid"){split($2,a," ");g=a[1]}if($1=="Groups"){gg=$2}}' /proc/self/status
@synch-cc
synch-cc / webdev_online_resources.md
Created August 2, 2018 07:56
Online Resources For Web Developers (No Downloading)