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 | |
| if [ $? -eq 0 ]; then | |
| echo "Travis Branch: $TRAVIS_BRANCH" | |
| DEPLOY_BRANCH="develop" | |
| if [ "$TRAVIS_BRANCH" == "$DEPLOY_BRANCH" ] && [ "$TRAVIS_PULL_REQUEST" == "false" ]; then | |
| # Hot swap need to know what is the current version | |
| echo " :: Edeliver: Build" | |
| #mix edeliver build upgrade | |
| mix edeliver build release --branch=$DEPLOY_BRANCH |
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
| Objective: Open door with a NodeMCU. | |
| Images | |
| ------ | |
| Intercomunicator: http://www.farfisa-shop.co.uk/53-143-large/km8262w-b-w-videointercom-for-duo-syst-compact.jpg | |
| Motherboard: https://imgur.com/a/fK46p | |
| Documents | |
| --------- | |
| Videointercoms with integrated coding for DUO system - www.farfisa.com/images/pdf/mi2334.pdf |
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 calculateEndIp($startIp, $mask) { | |
| if (($min = ip2long($startIp)) !== false) { | |
| $max = ($min | (1<<(32-$mask))-1); | |
| $address = long2ip($max); | |
| return $address; | |
| } | |
| } | |
| // Read country to memory |
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
| # Update and install necessary packages | |
| apt-get update | |
| apt-get install linux-image-$(uname -r|sed 's,[^-]*-[^-]*-,,') linux-headers-$(uname -r|sed 's,[^-]*-[^-]*-,,') | |
| # Download some extra packages, that do the trick for "wl module not found" | |
| wget http://http.kali.org/kali/pool/main/l/linux-tools/linux-kbuild-4.3_4.3.1-2kali1_amd64.deb | |
| wget http://http.kali.org/kali/pool/main/l/linux/linux-headers-4.3.0-kali1-common_4.3.3-5kali4_amd64.deb | |
| wget http://http.kali.org/kali/pool/main/l/linux/linux-headers-4.3.0-kali1-amd64_4.3.3-5kali4_amd64.deb | |
| # Install with correct order |
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
| # | |
| # | |
| # WORDPRESS BASH SCRIPT TO CLEAN BACKDOOR FILES | |
| # | |
| # | |
| DOMAIN=$1 | |
| FOLDER=$2 | |
| AWS_KEYFILE=~/aws.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
| free | |
| dd if=/dev/zero of=/var/swap.img bs=1024k count=1000 | |
| mkswap /var/swap.img | |
| swapon /var/swap.img | |
| free | |
| make -f makefile.unix |
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
| - hosts: www_servers | |
| user: ubuntu | |
| sudo: yes | |
| vars: | |
| folder: /usr/share/nginx/html | |
| backdoor_keywords: | |
| - "FilesMan" # OK | |
| - "<?php \\${" # OK | |
| - 'mail(stripslashes(' # OK | |
| - "<?php \\$array = array(" # OK |
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
| Favorit themes | |
| sonicradish.zsh-theme ( Orange, Futuristic ) | |
| fino-time.zsh-theme ( Green / Blue, Futuristic ) | |
| af-magic.zsh-theme (Blue / Gray, Modern) | |
| cloud.zsh-theme (Green) |
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 | |
| include_once('wp-config.php'); | |
| $trash = get_posts('post_status=trash&numberposts=-1'); | |
| echo "Post count: " . count($trash) . "\n"; | |
| foreach($trash as $post) { | |
| wp_delete_post($post->ID, $bypass_trash = 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
| <?php | |
| # Change link from old domain to new domain in Wordpress | |
| require_once('wp-config.php'); | |
| global $wpdb; | |
| $newDomain = "newdomain.com"; | |
| $oldDomain = "olddomain.com"; | |
| # Posts | |
| $query = "SELECT ID, post_content FROM wp_posts WHERE post_content LIKE '%" . $oldDomain . "%';"; |