exec - Returns last line of commands output
passthru - Passes commands output directly to the browser
system - Passes commands output directly to the browser and returns last line
shell_exec - Returns commands output
\`\` (backticks) - Same as shell_exec()
popen - Opens read or write pipe to process of a command
proc_open - Similar to popen() but greater degree of control
pcntl_exec - Executes a program
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
:: https://stealthpuppy.com/customize-the-windows-default-profile/#.XEfajs17mUm | |
:: https://helgeklein.com/blog/2011/12/customizing-the-default-profile/ | |
:: https://www.reddit.com/r/PowerShell/comments/8rupxv/unloading_registry_hive_with_a_script/ | |
:: https://blogs.technet.microsoft.com/deploymentguys/2009/10/29/configuring-default-user-settings-full-update-for-windows-7-and-windows-server-2008-r2/ | |
:: remove the double colon to activate the code if it is commented out | |
:: disable Cortana | |
:: https://www.addictivetips.com/windows-tips/disable-web-search-windows-10-april-update/ | |
REG ADD "HKLM\SOFTWARE\Policies\Microsoft\Windows\Windows Search" /v "AllowCortana" /d 0 /t REG_DWORD /f | |
:: 5/9/2019 | |
REG ADD "HKLM\SOFTWARE\Policies\Microsoft\Windows\Windows Search" /v "DisableWebSearch" /d 1 /t REG_DWORD /f |
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
cgi-bin/14all-1.1.cgi?cfg=../../../../../../../../etc/passwd | |
cgi-bin/14all.cgi?cfg=../../../../../../../../etc/passwd | |
cgi-bin/AT-admin.cgi | |
cgi-bin/AT-generate.cgi | |
cgi-bin/AnyBoard.cgi | |
cgi-bin/Backup/add-passwd.cgi | |
cgi-bin/CSMailto.cgi | |
cgi-bin/CSMailto/CSMailto.cgi | |
cgi-bin/CSNews.cgi | |
cgi-bin/Count.cgi |
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 | |
CMD=$1 | |
VMNAME=$2 | |
SNAP_NAME=$3 | |
UTM_FOLDER=/Users/$USER/Library/Containers/com.utmapp.UTM/Data/Documents | |
UTM_VM_FOLDER=${UTM_FOLDER}/$VMNAME.utm/Data | |
mkdir -p ~/.utm-snapshots |
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
1. install openjdk | |
`sudo apt-get install openjdk-7-jdk` | |
2. install `android sdk` | |
# download android sdk | |
wget http://dl.google.com/android/android-sdk_r24.2-linux.tgz | |
tar -xvf android-sdk_r24.2-linux.tgz | |
cd android-sdk-linux/tools |
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
--- | |
- name: "Install Docker Compose" | |
gather_facts: true | |
become: true | |
hosts: all | |
tasks: | |
- name: "Download dockker-compose" | |
get_url: | |
url: https://github.com/docker/compose/releases/download/1.27.4/docker-compose-{{ ansible_system }}-{{ ansible_machine }} | |
dest: /usr/local/bin/docker-compose |
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
docker-compose -f production-cluster.yml exec elasticsearch "chmod 700 /usr/share/elasticsearch/config && chmod 600 /usr/share/elasticsearch/config/elasticsearch.yml && chmod 600 /usr/share/elasticsearch/config/node1.key && chmod 600 /usr/share/elasticsearch/config/root-ca.pem && chmod 600 /usr/share/elasticsearch/config/node1.pem" | |
docker-compose -f production-cluster.yml exec elasticsearch-2 "chmod 700 /usr/share/elasticsearch/config && chmod 600 /usr/share/elasticsearch/config/elasticsearch.yml && chmod 600 /usr/share/elasticsearch/config/node2.key && chmod 600 /usr/share/elasticsearch/config/root-ca.pem && chmod 600 /usr/share/elasticsearch/config/node2.pem" | |
docker-compose -f production-cluster.yml exec elasticsearch-3 "chmod 700 /usr/share/elasticsearch/config && chmod 600 /usr/share/elasticsearch/config/elasticsearch.yml && chmod 600 /usr/share/elasticsearch/config/node2.key && chmod 600 /usr/share/elasticsearch/config/root-ca.pem && chmod 600 /usr/share/elasticsearch/config/node2.pem" | |
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
MYDOMAIN=secsi.com | |
docker run -it --rm -d --name openssl alpine/openssl | |
docker exec -it openssl openssl req -x509 -nodes -days 365 -subj "/C=CA/ST=QC/O=Company, Inc./CN=$MYDOMAIN" -addext "subjectAltName=DNS:$MYDOMAIN" -newkey rsa:2048 -keyout /etc/ssl/private/nginx-selfsigned.key -out /etc/ssl/certs/nginx-selfsigned.crt; | |
docker cp openssl:/etc/ssl ssl-output | |
docker rm -f openssl |
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
#include <android/security/keystore/IKeystoreService.h> | |
#include <android/security/keystore/BpKeystoreService.h> | |
namespace android { | |
namespace security { | |
namespace keystore { | |
IMPLEMENT_META_INTERFACE(KeystoreService, "android.security.keystore.IKeystoreService") |
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 | |
#=================================================================================== | |
# | |
# FILE: dump.sh | |
# USAGE: dump.sh [-i interface] [tcpdump-parameters] | |
# DESCRIPTION: tcpdump on any interface and add the prefix [Interace:xy] in front of the dump data. | |
# OPTIONS: same as tcpdump | |
# REQUIREMENTS: tcpdump, sed, ifconfig, kill, awk, grep, posix regex matching | |
# BUGS: --- | |
# FIXED: - In 1.0 The parameter -w would not work without -i parameter as multiple tcpdumps are started. |
NewerOlder