Semgrep default rulesets https://semgrep.dev/r
semgrep --config "p/c" <path/to/code>
raptor's Semgrep rules and blog
REM buffer overflows | |
REM call to unbounded copy functions (CWE-120, CWE-242, CWE-676) | |
weggli.exe -R "func=^gets$" "{$func();}" . | |
weggli.exe -R "func=st(r|p)(cpy|cat)$" "{$func();}" . | |
weggli.exe -R "func=wc(s|p)(cpy|cat)$" "{$func();}" . | |
weggli.exe -R "func=sprintf$" "{$func();}" . | |
weggli.exe -R "func=scanf$" "{$func();}" . |
Semgrep default rulesets https://semgrep.dev/r
semgrep --config "p/c" <path/to/code>
raptor's Semgrep rules and blog
#!/bin/bash | |
# bashGPT - [email protected] | |
[ "${OPENAI_API_KEY}" == "" ] && echo "Please set OPENAI_API_KEY env variable" && exit | |
[ "$(which jq)" == "" ] && echo "Please install the jq program" && exit | |
[ "$(which curl)" == "" ] && echo "Please install the curl program" && exit | |
PROMPT="$1" | |
while true |
// memdjpeg - A super simple example of how to decode a jpeg in memory | |
// Kenneth Finnegan, 2012 | |
// blog.thelifeofkenneth.com | |
// | |
// After installing jpeglib, compile with: | |
// cc memdjpeg.c -ljpeg -o memdjpeg | |
// | |
// Run with: | |
// ./memdjpeg filename.jpg | |
// |
Disable-NetAdapterBinding -Name "vEthernet (WSL)" -ComponentID ms_tcpip6 -IncludeHidden | |
Disable-NetAdapterLso -Name "vEthernet (WSL)" -IncludeHidden |
#!/bin/bash | |
### steps #### | |
# verify the system has a cuda-capable gpu | |
# download and install the nvidia cuda toolkit and cudnn | |
# setup environmental variables | |
# verify the installation | |
### | |
### to verify your gpu is cuda enable check |
I couldn't find instructions that were 100% complete, so I put this together.
These instructions worked fine for me. Follow each step carefully.
DO NOT create the VM by choosing Quick Create in Hyper-V Manager. Follow these instructions exactly.
/* | |
* fork.c | |
* Experimental fork() on Windows. Requires NT 6 subsystem or | |
* newer. | |
* | |
* Improved version with fixed Console | |
* | |
* Copyright (c) 2023 Petr Smid | |
* Copyright (c) 2012 William Pitcock <[email protected]> | |
* |
SSRF Bypass List | |
Base-Url: 127.0.0.1 | |
Client-IP: 127.0.0.1 | |
Http-Url: 127.0.0.1 | |
Proxy-Host: 127.0.0.1 | |
Proxy-Url: 127.0.0.1 | |
Real-Ip: 127.0.0.1 | |
Redirect: 127.0.0.1 | |
Referer: 127.0.0.1 |
# Server globals | |
user admin; | |
worker_processes 1; | |
worker_rlimit_nofile 65535; | |
error_log /var/log/hestia/nginx-error.log; | |
pid /var/run/hestia-nginx.pid; | |
# Worker config | |
events { | |
worker_connections 128; |