To push container images to ghcr, you need peronal access token (PAT) - see how to create PAT
- Get PAT (personal access token)
Personal Settings > Developer settings > Personal access tokens
#!/usr/bin/env python3 | |
import json | |
# Load shellfish-snippets.json | |
with open("shellfish-snippets.json", "r") as shellfish_file: | |
shellfish_snippets = json.load(shellfish_file) | |
# Convert to vscode-snippets.json format | |
vscode_snippets = {} |
// Assuming you have Selenium WebDriver and ChromeDriver installed | |
const {Builder, By, Key, until} = require('selenium-webdriver'); | |
const chrome = require('selenium-webdriver/chrome'); | |
// list of XSS payloads to test | |
const xssPayloads = [ | |
"<img src='x' onerror='alert(1);'>", | |
"<script>alert('XSS')</script>", | |
// Add more payloads as per your requirements | |
]; |
const { Builder, By, Key, until } = require('selenium-webdriver'); | |
const chrome = require('selenium-webdriver/chrome'); | |
const templateInjectionPayloads = [ | |
'{{7*7}}', // Basic expression evaluation. Should return 49 if template injection is possible | |
'${7*7}', // This is for template engines that use $ like in AngularJS | |
'<%= 7 * 7 %>', // This is for EJS style templates | |
// Add more payloads to test different template engines | |
]; | |
#------------------------------------------------------------------# | |
#- Clear-GlobalWindowsCache # | |
#------------------------------------------------------------------# | |
Function Clear-GlobalWindowsCache { | |
Remove-CacheFiles 'C:\Windows\Temp' | |
Remove-CacheFiles "C:\`$Recycle.Bin" | |
Remove-CacheFiles "C:\Windows\Prefetch" | |
C:\Windows\System32\rundll32.exe InetCpl.cpl, ClearMyTracksByProcess 255 | |
C:\Windows\System32\rundll32.exe InetCpl.cpl, ClearMyTracksByProcess 4351 | |
} |
To push container images to ghcr, you need peronal access token (PAT) - see how to create PAT
Personal Settings > Developer settings > Personal access tokens
#!/usr/bin/env python3 | |
# /registration_automation_api_updated.py | |
from flask import Flask, request | |
from flask_restful import Api, Resource | |
from selenium import webdriver | |
from selenium.webdriver.common.keys import Keys | |
from selenium.webdriver.common.by import By | |
from selenium.common.exceptions import NoSuchElementException |