Skip to content

Instantly share code, notes, and snippets.

@DaniloNC
DaniloNC / README.md
Created March 1, 2024 15:55
hashcat 4080 super benchmark
Fri Mar  1 09:52:50 2024       
+-----------------------------------------------------------------------------------------+
| NVIDIA-SMI 550.54.14              Driver Version: 550.54.14      CUDA Version: 12.4     |
|-----------------------------------------+------------------------+----------------------+
| GPU  Name                 Persistence-M | Bus-Id          Disp.A | Volatile Uncorr. ECC |
| Fan  Temp   Perf          Pwr:Usage/Cap |           Memory-Usage | GPU-Util  Compute M. |
|                                         |                        |               MIG M. |
|=========================================+========================+======================|
|   0  NVIDIA GeForce RTX 4080 ...    Off |   00000000:24:00.0  On |                  N/A |
@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 git@github.com:usi-systems/easytrace.git

@DaniloNC
DaniloNC / solve.py
Created November 3, 2022 00:13
Ekoparty 2022 dynamic
(angr) angr@109f4c4b9c89:/app$ time python3 solve.py
...
DEBUG | 2022-11-03 00:12:24,788 | angr.storage.memory_mixins.paged_memory.paged_memory_mixin | reg.load(0xb8, 8, Iend_LE) = <BV64 0x404de2>
<SimState @ 0x404de2>
b'EKO{AFLFTW_b2379f00aa927b1372e8af7cc5c89200d9da229fe183c8cd01dc1969164d99f9}\x00'
real 4m31.130s
user 4m24.501s
sys 0m6.173s
@DaniloNC
DaniloNC / dual_boot_settings.bat
Created August 16, 2022 22:44
Windows dual boot linux settings
@echo off
:: To turn off Fast Startup
reg add "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Power" /V HiberbootEnabled /T REG_DWORD /D 0 /F
:: Realtime clock
reg add "HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\TimeZoneInformation" /v RealTimeIsUniversal /d 1 /t REG_DWORD /f
:: disable hibernation
powercfg.exe /hibernate off
@DaniloNC
DaniloNC / NOTES.md
Last active April 22, 2022 20:35
Wireshark dissector for Supercell protocol - no decryption support
/dev/sdc1 on /run/media/danilonc/5214-5618 type vfat (rw,nosuid,nodev,relatime,uid=1000,gid=1000,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,showexec,utf8,flush,errors=remount-ro,uhelper=udisks2)
4 16 -rw-r--r-- 1 danilonc danilonc 128 Nov 20 2020 ./autorun.inf
187 416 -rw-r--r-- 1 danilonc danilonc 413738 Nov 20 2020 ./bootmgr
188 1520 -rw-r--r-- 1 danilonc danilonc 1541648 Nov 20 2020 ./bootmgr.efi
189 80 -rwxr-xr-x 1 danilonc danilonc 74184 Nov 20 2020 ./setup.exe
577 16 -rw-r--r-- 1 danilonc danilonc 16384 Nov 20 2020 ./boot/bcd
578 3104 -rw-r--r-- 1 danilonc danilonc 3170304 Nov 20 2020 ./boot/boot.sdi
579 16 -rw-r--r-- 1 danilonc danilonc 1024 Nov 20 2020 ./boot/bootfix.bin
580 112 -rwxr-xr-x 1 danilonc danilonc 110392 Nov 20 2020 ./boot/bootsect.exe
581 16 -rwxr-xr-x 1 danilonc danilonc 4096 Nov 20 2020 ./boot/etfsboot.com
582 992 -rwxr-xr-x 1 danilonc danilonc 1000760 Nov 20 2020 ./boot/memtest.exe
@DaniloNC
DaniloNC / README.md
Created February 22, 2021 01:45
Keychron K2 on Linux

https://schnouki.net/post/2019/how-to-use-a-keychron-k2-usb-keyboard-on-linux/ https://archive.vn/y2WDA

The issue with function keys:

when set to Windows mode, the special keys (“volume up”, “brightness control”, etc.) send Windows-specific key combinations instead of standard keycodes that Xorg recognizes.
when in Mac mode, the Fn key seems useless, there’s no way to enable function keys (to have F12 instead of “volume up”), and the “Command” and “Option” key don’t match the usual order of the Super and Alt keys.
The solution is simple:

Keybase proof

I hereby claim:

  • I am danilonc on github.
  • I am danilonc (https://keybase.io/danilonc) on keybase.
  • I have a public key ASA_7rjUScswxCB1de3w6UPxZ6_nPWHQXZygLJCu7onHYwo

To claim this, I am signing this object: