Skip to content

Instantly share code, notes, and snippets.

View malakudi's full-sized avatar

Panagiotis Malakoudis malakudi

View GitHub Profile
@malakudi
malakudi / gist:bea3c6afd6881a32fac858b0f2cbc0e6
Created December 3, 2020 12:53
RTX 3080 hashcat 6.1.1 CUDA Windows overclocked
.\hashcat.exe -b --benchmark-all
hashcat (v6.1.1) starting in benchmark mode...
Benchmarking uses hand-optimized kernel code by default.
You can use it in your cracking session by setting the -O option.
Note: Using optimized kernel code limits the maximum supported password length.
To disable the optimized kernel code in benchmark mode, use the -w option.
* Device #1: WARNING! Kernel exec timeout is not disabled.
This may cause "CL_OUT_OF_RESOURCES" or related errors.
./hashcat.bin -b --benchmark-all -w 4 -O
hashcat (v6.1.1) starting in benchmark mode...
* Device #1: WARNING! Kernel exec timeout is not disabled.
This may cause "CL_OUT_OF_RESOURCES" or related errors.
To disable the timeout, see: https://hashcat.net/q/timeoutpatch
* Device #2: WARNING! Kernel exec timeout is not disabled.
This may cause "CL_OUT_OF_RESOURCES" or related errors.
To disable the timeout, see: https://hashcat.net/q/timeoutpatch
CUDA API (CUDA 11.1)
@malakudi
malakudi / gist:b6509568c440054440d0b68b5efb0b1e
Last active August 19, 2019 09:25
Enable trim support for external UAS device that is not enabled automatically
ACTION=="add|change", ATTRS{idVendor}=="152d", ATTRS{idProduct}=="0578", SUBSYSTEM=="scsi_disk", ATTR{provisioning_mode}="unmap"
ACTION=="add|change", ATTRS{idVendor}=="152d", ATTRS{idProduct}=="0578", SUBSYSTEM=="block", ATTR{queue/discard_max_bytes}="16777216"
Second line was needed for my device because it could not handle TRIM with larger than 16MB blocks (automatically detected as 4GB), it would give CDB errors like:
kernel: sd 10:0:0:0: [sda] tag#25 CDB: Unmap/Read sub-channel 42 00 00 00 00 00 00 00 18 00
@malakudi
malakudi / gist:b90fe4c5b7ca6182fda07ed51e8eaaa5
Last active September 13, 2023 20:09
Build debian kernel package from git
git clone -b sid --single-branch https://salsa.debian.org/kernel-team/linux.git
wget https://cdn.kernel.org/pub/linux/kernel/v5.x/linux-5.2.9.tar.xz
cd linux/
edit file linux/debian/config/defines and change debug-info to false
edit file linux/debian/config/amd64/defines and change debug-info to false
debian/bin/genorig.py ../linux-5.2.9.tar.xz # create original source tar package)
debian/rules orig # unpack original source
debian/rules debian/control # create control file
fakeroot debian/rules source
fakeroot make -j24 -f debian/rules.gen binary-arch_amd64_none_amd64
@malakudi
malakudi / gist:a13c0c06895420539f8c69250ba11362
Created August 18, 2019 11:55
Build latest nvidia drivers packages for Debian from salsa git
git clone https://salsa.debian.org/anbe/nvidia-graphics-drivers-preview2.git nvidia-graphics-driver
cd nvidia-graphics-driver
git checkout 430
debian/rules get-orig-source
tar -xzf nvidia-graphics-drivers*orig.tar.gz
tar -xzf nvidia-graphics-drivers*orig-amd64.tar.gz
ln -sf nvidia-graphics-drivers-430.XX.orig-amd64 amd64
debuild -i -b -uc -us
debuild -i -b -uc -us -ai386 (for i386 packages, needs to first install binutils-i686-linux-gnu)
@malakudi
malakudi / gist:ac7ede9d05de11929007c6173a118eb8
Created September 23, 2018 13:41
GTX 1070 Ti hashcat 4.2.1 benchmark-all
hashcat (v4.2.1) starting in benchmark mode...
OpenCL Platform #1: Intel(R) Corporation
========================================
* Device #1: AMD Ryzen 7 1700X Eight-Core Processor, skipped.
OpenCL Platform #2: NVIDIA Corporation
======================================
* Device #2: GeForce GTX 1070 Ti, skipped.
* Device #3: GeForce GTX 1070 Ti, 2029/8119 MB allocatable, 19MCU