Skip to content

Instantly share code, notes, and snippets.

┌──(kali㉿kali)-[/opt/nessus/lib/nessus/plugins]
└─$ ls -Ralrt ~/.cache/huggingface/hub
/home/kali/.cache/huggingface/hub:
total 20
drwxr-xr-x 3 kali kali 4096 Jun 25 16:11 ..
drwxr-xr-x 5 kali kali 4096 Jun 25 16:11 models--star23--baller12
drwxr-xr-x 5 kali kali 4096 Jun 26 23:14 .
drwxr-xr-x 4 kali kali 4096 Jun 26 23:14 .locks
drwxr-xr-x 5 kali kali 4096 Jun 26 23:14 models--JungleLee--bert-toxic-comment-classification
@cappetta
cappetta / gist:de027f42c5758479e1791879ea3a2c5d
Created June 27, 2024 03:09
huggingface model files are links...
┌──(venv_1618876490)─(kali㉿kali)-[/opt/nessus/lib/nessus/plugins]
└─$ find '/home/kali/.cache/huggingface' -maxdepth 9 -type l
/home/kali/.cache/huggingface/hub/models--star23--baller12/snapshots/36480cdde72544e50c2294b5a5918a552139995a/tokenizer.model
/home/kali/.cache/huggingface/hub/models--star23--baller12/snapshots/36480cdde72544e50c2294b5a5918a552139995a/tokenizer_config.json
/home/kali/.cache/huggingface/hub/models--star23--baller12/snapshots/36480cdde72544e50c2294b5a5918a552139995a/generation_config.json
/home/kali/.cache/huggingface/hub/models--star23--baller12/snapshots/36480cdde72544e50c2294b5a5918a552139995a/.gitattributes
/home/kali/.cache/huggingface/hub/models--star23--baller12/snapshots/36480cdde72544e50c2294b5
@cappetta
cappetta / modescan.nasl
Last active June 27, 2024 18:36
modescan.nasl
include("compat.inc");
if(description)
{
script_id(999001);
script_version("1.0");
script_set_attribute(attribute:"plugin_modification_date", value:"2024/06/25");
script_name(english: "Execute ModelScan Checks against AI/LLM files");
script_summary(english: "This opensource nasl plugin downloads & executes the open-source ModelScan
$ nasl -k /tmp/kb -aWXt localhost -I ./ -X /home/kali/Desktop/open-nasl/modelscan.cpp
[2024-06-26 04:52:13] pread_wrapper(): Running "/bin/sh" on the scanner localhost using pread_ex().
{"plugin": "modelscan.cpp", "command": "which -a pip 2>/dev/null", "response": "/tmp/venv/bin/pip\n/usr/bin/pip\n/bin/pip\n", "hostname": "localhost"}
[2024-06-26 04:52:13] ldnix::get_command_path(): Successfully returning
DETAILS:
Path: make_nested_list(
'/tmp/venv/bin/pip',
'/usr/bin/pip',
'/bin/pip'
)
@cappetta
cappetta / gist:69b7cffd6335e710688244776dcd1c8a
Created August 22, 2020 03:25
CyberRange LifeCycle Test Using Command Center
Test the Cyber Range LifeCycle using the CommandCenter docker container.
1. start the AWS Cyber Range CommandCenter docker container. Export your keys then run the container.
export aws_access_key_id=example_access_key_id
export aws_secret_access_key=example_secret_key
docker run -it -e AWS_ACCESS_KEY_ID=$aws_access_key_id -e AWS_SECRET_ACCESS_KEY=$aws_secret_access_key awscyberrange/commandcenter:latest /bin/bash
2. update the variables.tf and add your external IP address the ip is located in https://github.com/secdevops-cuse/CyberRange/tree/master/terraform/modules/infrastructure/secdevops/variables.tf#L1 (edited)
3. Perform the following steps
version: '2'
services:
mariadb:
image: 'bitnami/mariadb:latest'
environment:
- ALLOW_EMPTY_PASSWORD=yes
- MARIADB_USER=bn_magento
- MARIADB_PASSWORD=magento
- MARIADB_DATABASE=magento
@cappetta
cappetta / behat-mink-function-webdocs-url
Created November 12, 2018 04:42
simple url to online docs of behat mink functions
http://apigen.juzna.cz/doc/Behat/Mink/index.html
setup your workspace the way you want and then save the arrangement to use it again later.
To create a new pane:
* use Command + Shift + D for a horizontal split.
* use Command + D for a vertical split.
* use Command + [ or ] to Select the previous ([) or next (]) pane.
* use Command + Shift + S to save the window arrangement.
* use Command + Shift + R to launch your default arrangement.
* use Command + Shift + Enter to Maximize the active pane.
* use Command + Option + [Arrow Key] to Switch to the next pane in that direction.
@cappetta
cappetta / gist:bd1209845a69d85a8bb8f69fd1d0d9e1
Created March 8, 2017 03:46
Default User Names for AMI's
https://alestic.com/2014/01/ec2-ssh-username/
SSh User Names & OS matrix