dnf -y update
dnf install -y gcc libxml2-devel libxslt-devel libffi-devel libpq-devel openssl-devel redhat-rpm-config git tar
sed -i 's/^SELINUX=.*/SELINUX=disabled/g' /etc/selinux/config
cat /etc/selinux/config | grep SELINUX=
dnf makecache --refresh
dnf -y install python3-pip
dnf makecache --refresh
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
$FirstStageFile = "O:\hashes3.csv" | |
$SecondStageFile = "O:\hashes3-s.csv" | |
$Directory = "C:\Users\eliezer\Documents\" | |
Get-ChildItem -Path $Directory -Recurse -File -Force | ForEach { | |
[PSCustomObject]@{ | |
FullPath = $_.FullName | |
Name = $_.Name | |
Size = $_.Length |
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
ffmpeg -i '.\File.ts' -vcodec copy -acodec copy -map 0:v -map 0:a '.\File.mp4' |
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
#!/bin/vbash | |
set interfaces ethernet eth0 address '10.50.1.208/24' | |
set interfaces ethernet eth0 hw-id '00:15:5d:89:c6:a8' | |
set interfaces ethernet eth1 address '192.168.1.254/24' | |
set interfaces ethernet eth1 hw-id '00:15:5d:89:c6:a9' | |
set interfaces ethernet eth2 hw-id '00:15:5d:89:c6:aa' | |
set interfaces ethernet eth3 hw-id '00:15:5d:89:c6:ab' | |
set interfaces ethernet eth4 hw-id '00:15:5d:89:c6:ac' | |
set interfaces loopback lo | |
set interfaces wireguard wg0 address '100.20.0.2/30' |
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
#!/usr/bin/env python3 | |
# -*- coding: utf-8 -*- | |
''' | |
GRCN is free software; you can redistribute it and/or modify | |
it under the terms of the GNU General Public License as published by | |
the Free Software Foundation; either version 2 of the License, or | |
(at your option) any later version. | |
# | |
This program is distributed in the hope that it will be useful, |
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
# SSL Interception basic rules | |
acl DiscoverSNIHost at_step SslBump1 | |
acl NoSSLInterceptRegEx ssl::server_name_regex (^|.*\.)redshift3d\.com$ | |
acl NoSSLInterceptRegExFile ssl::server_name_regex "/usr/local/squid/etc/no-intercept-ssl-regex.txt" | |
acl NoSSLInterceptDstDom ssl::server_name .redshift3d.com | |
acl NoSSLInterceptDstDomFile ssl::server_name "/usr/local/squid/etc/no-intercept-ssl-dstdom.txt" | |
## Any of will test what ever rule match first in a first match/hit fasion |
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
#!/usr/bin/env bash | |
HOSTNAME="$1" | |
if [ -z "${HOSTNAME}" ];then | |
echo "Missing hostname" | |
exit 1 | |
fi | |
LOCAL_TRUSTED_STORE="/etc/pki/ca-trust/source/anchors" |
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
#!/usr/bin/perl | |
use strict; | |
use warnings; | |
use Data::Dumper; | |
use Sys::Mmap; | |
my ($file) = @ARGV; | |
die "Usage: $0 <cache_dir>/rock\n" if not $file; |
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
USERNAME="admin" | |
PASSWORD="testAdmin" |
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
#!/usr/bin/env bash | |
# Step 0: Update the OS | |
setenforce 0 | |
sed -i 's/^SELINUX=.*/SELINUX=disabled/g' /etc/selinux/config | |
dnf -y update | |
dnf -y install git wget vim bash-completion curl | |
# Reboot if neccesary |