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
#Small object to simplify the handling of credentials. | |
class CredObject { | |
$Name | |
$Ip | |
$Username | |
$Password | |
} | |
#Change to full path of the credentials file with columns: Name, Ip, Username, Password | |
$machines = Import-CSV -Path "\path\to\machines.csv" |
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
<?php | |
function uuid() { | |
$s = bin2hex(random_bytes(16)); | |
return sprintf('%s-%s-%s-%s-%s', | |
substr($s, 0, 8), | |
substr($s, 8, 4), | |
substr($s, 12, 4), | |
substr($s, 16, 4), |
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
# This is a sample SELinux policy module file to confine a process executing the /bin/ps binary | |
# The purpose is to act as a point of reference when writing policies for apps that make use of the ps functionality | |
policy_module(ps, 0.1) | |
type ps_t; | |
domain_type(ps_t) | |
allow ps_t self:cap_userns sys_ptrace; | |
allow ps_t self:capability dac_read_search; |
OlderNewer