This file contains hidden or 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
# --- Base functions --- | |
# Function to write log | |
function Write-Log { | |
param ( | |
[string]$message | |
) | |
try { | |
# Ensure the directory exists for logging | |
$logDirectory = Split-Path -Path $logFile -Parent |
This file contains hidden or 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
10.0.0.x | |
10.0.1.x | |
10.0.2.x | |
10.0.3.x | |
10.0.4.x | |
10.0.5.x | |
10.0.6.x | |
10.0.7.x | |
10.0.8.x | |
10.0.9.x |
We can't make this file beautiful and searchable because it's too large.
This file contains hidden or 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
List,Domain Authority Score,Page Authority Score,Source URL,Source Page Title,Source Domain,Target URL,Anchor,Anchor Type,Link Type,No Follow,Toxic Score,First Seen,Last Seen,Comment | |
for-review,2,0,https://mario-rhodes-8979.firebaseapp.com/manual-testing-jobs-australia.html,Manual Testing Jobs Australia,mario-rhodes-8979.firebaseapp.com,https://www.cybercx.com.au/wp-content/uploads/2020/05/main.jpg,Home Cybercx,compound,a,false,91,2023-09-17,2023-11-28, | |
for-review,2,0,http://www.519areacode.com/palo-alto-competitors-k.html,Cinco Saludo Talla palo alto competitors Tiempo de día Petición Útil,www.519areacode.com,https://cybercx.com.au/wp-content/uploads/2023/01/MicrosoftTeams-image-2.png,"CyberCX & Palo Alto Networks : reduce risk, increasing protection.",compound,a,false,89,2023-11-18,2023-11-28, | |
for-review,5,0,http://papasearch.net/Data_Privacy/DataPrivacy19.html,,papasearch.net,https://cybercx.com.au/about-cybercx/shearwaterpenetration-testing/,"Penetration Testing, Application & Network Security ...",money, |
This file contains hidden or 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
# Needed for Graylog | |
fields_under_root: true | |
fields.collector_node_id: ${sidecar.nodeName} | |
fields.gl2_source_collector: ${sidecar.nodeId} | |
output.logstash: | |
hosts: ["192.168.1.13:5044"] | |
path: | |
data: ${sidecar.spoolDir!"C:\\Program Files\\Graylog\\sidecar\\cache\\winlogbeat"}\data | |
logs: ${sidecar.spoolDir!"C:\\Program Files\\Graylog\\sidecar"}\logs |
This file contains hidden or 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
# MongoDB setup and confguration | |
class {'mongodb::globals': | |
version => '5.0.22', | |
manage_package_repo => true, | |
bind_ip => ['127.0.0.1'], | |
} | |
-> class {'mongodb::client':} | |
-> class {'mongodb::server': | |
auth => true, | |
create_admin => true, |
This file contains hidden or 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
# Set timezone | |
class { 'timezone': | |
timezone => 'UTC', | |
} | |
# Set NTP servers | |
class { 'ntp': | |
servers => [ '0.au.pool.ntp.org', '1.au.pool.ntp.org', '2.au.pool.ntp.org', '3.au.pool.ntp.org'], | |
} | |
# Opensearch kernel config |
This file contains hidden or 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
wget https://apt.puppet.com/puppet7-release-focal.deb | |
sudo dpkg -i puppet7-release-focal.deb | |
sudo apt-get update | |
sudo apt-get install -y puppet-agent apache2-utils | |
/opt/puppetlabs/bin/puppet module install puppet-opensearch -i ./1-modules | |
/opt/puppetlabs/bin/puppet module install saz-timezone -i ./1-modules | |
/opt/puppetlabs/bin/puppet module install thias-sysctl -i ./1-modules | |
/opt/puppetlabs/bin/puppet module install puppetlabs-ntp -i ./1-modules |
This file contains hidden or 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
with open('dump.log') as file: | |
save = False | |
for line in file: | |
# Do we save this line? | |
if line.isspace(): | |
continue | |
elif ("------------------ block: 1117" in line): | |
save = False | |
continue | |
elif ("------------------ block:" in line): |
This file contains hidden or 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/bash | |
#add MgntUser according to RI info, xufuguo, 20120808 | |
#if user_name or password is NULL, do nothing. | |
#update for R30 read-only rootfs, modify by xufuguo, 20130816 | |
#modify: not get MgntUserLongPasswd from RI. so call this script in pre-config instead of startup.sh xufuguo, 20120926 | |
#user_name=$(ritool get UserName | grep UserName | awk -F : '{print $2}') | |
#password=$(ritool get MgntUserLongPasswd | grep MgntUserLongPasswd | awk -F : '{print $2}') |
This file contains hidden or 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/bash | |
# This script checks for the presence of a process using high GPU memory other than its own etherum miner, and terminates the miner. If it does not find such a process, it starts the miner. | |
MAX_MEMORY=500 | |
MINER_NAME=t-rex | |
MINER_PATH="/home/trex/t-rex -a ethash -o stratum+tcp://asia1.ethermine.org:4444 -u WALLET_ADDRESS -w hashcat1" | |
# Get data on GPU processes | |
gpuprocs=$(nvidia-smi | head -n -1 | sed -n -e '19,999999 p' | awk 'BEGIN{ OFS = ";"; FS=" *"}{split($0,a);print a[5],a[6],(a[8]+0)}') |
NewerOlder