-
Install xrdp and xfce (or another desktop environment)
sudo apt update sudo apt install xrdp xfce4 xfce4-goodies
-
Configure xrdp to use xfce
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from bs4 import BeautifulSoup | |
import csv | |
def extract_data_from_html(html_path): | |
with open(html_path, 'r', encoding='utf-8') as file: | |
html_content = file.read() | |
soup = BeautifulSoup(html_content, 'html.parser') | |
extracted_data = [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const express = require('express'); | |
const helmet = require('helmet'); | |
const app = express(); | |
const PORT = 3000; | |
// Using Helmet to set CSP | |
// app.use(helmet()); | |
// app.use(helmet.contentSecurityPolicy({ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://www.cyberciti.biz/security/howto-linux-hard-disk-encryption-with-luks-cryptsetup-command/ |
IAM
https://aws.amazon.com/architecture/security-identity-compliance/
https://docs.aws.amazon.com/IAM/latest/UserGuide/introduction.html
https://aws.amazon.com/architecture/security-identity-compliance/
https://docs.aws.amazon.com/IAM/latest/UserGuide/best-practices.html
video: https://www.youtube.com/watch?v=xp8ufidc514
Genymotion cannot start android emulator - shows the error "The VirtualBox DHCP server has not assigned an IP address to the virtual device"
Workaround:
- on your virtualbox, select and start the created android emulator vm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Local Group Policy blocks powershell | |
## Windows Setting > Security Settings > Software Restriction Policies > Additional Rules > PowerShell.EXE (Type Hash, Disallowed) | |
copy system32 powershell to desktop | |
Set /p comm=cmd~ | |
cmd~echo >> C:\path\of\desktop\powershell.exe | |
# 'Prevent access to command prompt' bypass (refer as runcmd.bat) | |
@echo off | |
:a | |
Set /p comm=cmd~ |
#!/bin/bash
#mkdir tools dir
mkdir ~/Tools
mkdir ~/Wordlists
#sublime
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
if (isset($_GET['email'])) | |
$email = filter_var($_GET['email'], | |
FILTER_SANITIZE_EMAIL); | |
if (isset($_GET['xss'])) | |
$xss = htmlspecialchars($_GET['xss']); | |
if (isset($_GET['path'])) { | |
$path = $_GET['path']; | |
while (strpos($path, '../') !== false) { | |
$path = str_replace('../', '', $path); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
You can find a mirror of different Java versions to run on Linux at this location. http://mirrors.rootpei.com/jdk/ | |
Select the jdk-8u181-linux-x64.tar.gz package (or alternatively, download the file attached to this task, added for your convenience). | |
Download this into your attacking machine, and run the following commands to configure your system to use this Java version by default (adjust the download filesystem path as appropriate): | |
sudo mkdir /usr/lib/jvm | |
cd /usr/lib/jvm | |
sudo tar xzvf ~/Downloads/jdk-8u181-linux-x64.tar.gz # modify as needed |
NewerOlder