Skip to content

Instantly share code, notes, and snippets.

@AliceGrey
AliceGrey / README.md
Created July 7, 2023 03:53 — forked from gpoole/README.md
Xen/XCP-ng script to attach physical USB devices via passthrough to a VM

XCP-ng USB passthrough tools

A set of command line tools and a service to make setting up passthrough USB devices easier:

  • attach-usb-devices - script and service to automatically connect USB devices to VMS when XCP-ng boots up
  • plug-usb - attach a physical USB device to a VM in one command
  • unplug-usb - remove a physical USB device from a VM in one command

To set up, copy the files onto your server and run install.sh to copy everything and set up the service. You can add any plug-usb commands you want to run on boot by modifying /usr/bin/attach-usb-devices.

@AliceGrey
AliceGrey / gist:97b3f382a43b4ca88708355ea0ce1a18
Created January 3, 2021 22:16
Python3 Gitlab 11.4.7 - Remote Code Execution
# Exploit Title: GitLab 11.4.7 Authenticated Remote Code Execution
# Date: January 3rd 20201
# Exploit Author: Mohin Paramasivam (Shad0wQu35t) - Converted to Python3 by AliceGrey
# Software Link: https://about.gitlab.com/
# POC: https://liveoverflow.com/gitlab-11-4-7-remote-code-execution-real-world-ctf-2018/
# Tested on: GitLab 11.4.7 CE
# CVE : CVE-2018-19571 (SSRF),CVE-2018-19585 (CRLF)
import requests
import re