Semgrep default rulesets https://semgrep.dev/r
semgrep --config "p/c" <path/to/code>
raptor's Semgrep rules and blog
| base_model: meta-llama/Meta-Llama-3-70B | |
| model_type: LlamaForCausalLM | |
| tokenizer_type: AutoTokenizer | |
| load_in_8bit: false | |
| load_in_4bit: true | |
| strict: false | |
| datasets: | |
| - path: /home/migel/ai_datasets/tess-v1.5b-chatml.jsonl |
| rem USE AT OWN RISK AS IS WITHOUT WARRANTY OF ANY KIND !!!!! | |
| rem https://technet.microsoft.com/en-us/itpro/powershell/windows/defender/set-mppreference | |
| rem To also disable Windows Defender Security Center include this | |
| rem reg add "HKLM\System\CurrentControlSet\Services\SecurityHealthService" /v "Start" /t REG_DWORD /d "4" /f | |
| rem 1 - Disable Real-time protection | |
| reg delete "HKLM\Software\Policies\Microsoft\Windows Defender" /f | |
| reg add "HKLM\Software\Policies\Microsoft\Windows Defender" /v "DisableAntiSpyware" /t REG_DWORD /d "1" /f | |
| reg add "HKLM\Software\Policies\Microsoft\Windows Defender" /v "DisableAntiVirus" /t REG_DWORD /d "1" /f | |
| reg add "HKLM\Software\Policies\Microsoft\Windows Defender\MpEngine" /v "MpEnablePus" /t REG_DWORD /d "0" /f | |
| reg add "HKLM\Software\Policies\Microsoft\Windows Defender\Real-Time Protection" /v "DisableBehaviorMonitoring" /t REG_DWORD /d "1" /f |
| ''' | |
| IDA plugin to display the calls and strings referenced by a function as hints. | |
| Installation: put this file in your %IDADIR%/plugins/ directory. | |
| Author: Willi Ballenthin <[email protected]> | |
| Licence: Apache 2.0 | |
| ''' | |
| import idc | |
| import idaapi | |
| import idautils |
| 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.