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/bash | |
nohup xvfb-run --server-args="-screen 0 1920x1080x24" java -Dwebdriver.chrome.driver="/usr/local/bin/chromedriver" -Dwebdriver.chrome.whitelistedIps="" -jar /opt/selenium-server-standalone.jar -role hub & | |
sleep 10 | |
nohup xvfb-run --server-args="-screen 0 1920x1080x24" java -Dwebdriver.chrome.driver="/usr/local/bin/chromedriver" -Dwebdriver.chrome.whitelistedIps="" -jar /opt/selenium-server-standalone.jar -role node -hub http://10.160.1.5:4444/grid/register & |
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
<?php | |
require_once 'classes/sdk/firebase/php-jwt/src/BeforeValidException.php'; | |
require_once 'classes/sdk/firebase/php-jwt/src/ExpiredException.php'; | |
require_once 'classes/sdk/firebase/php-jwt/src/SignatureInvalidException.php'; | |
require_once 'classes/sdk/firebase/php-jwt/src/JWT.php'; | |
use \Firebase\JWT\JWT; | |
/** |
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
<?php | |
$a = fopen("index.php","w"); | |
$b = "<center><h1>Vulnerable a XSS</h1></center>"; | |
fwrite($a,$b); | |
?> | |
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/bash | |
PROC_NAME="sync/cli/cron.php" | |
FECHA=$(date +%Y%m%d) | |
BASE_LOG="/CODE/logs/operaciones/unblock_sync_v2_${FECHA}.log" | |
# bucle con pids que coinciden con el nombre del proceso | |
for pid in $(ps -fe | grep $PROC_NAME | grep -v grep | awk '{print $2}'); do | |
# Recoge el tiempo que lleva corriendo y limpiamos de simbolo : |
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
function jutf8_decode (str_data) { | |
// http://kevin.vanzonneveld.net | |
// + original by: Webtoolkit.info (http://www.webtoolkit.info/) | |
// + input by: Aman Gupta | |
// + improved by: Kevin van Zonneveld (http://kevin.vanzonneveld.net) | |
// + improved by: Norman "zEh" Fuchs | |
// + bugfixed by: hitwork | |
// + bugfixed by: Onno Marsman | |
// + input by: Brett Zamir (http://brett-zamir.me) | |
// + bugfixed by: Kevin van Zonneveld (http://kevin.vanzonneveld.net) |
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
$(document).ready(function() { | |
formmodified=0; | |
$('form *').change(function(){ | |
formmodified=1; | |
}); | |
window.onbeforeunload = confirmExit; | |
function confirmExit() { | |
if (formmodified == 1) { | |
return "No has guardado la información. ¿Estás seguro de que quieres salir?"; | |
} |
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
{assign var=shop_name_to_trim value=" - $shop_name"} | |
<title>{$meta_title|replace:$shop_name_to_trim:''|escape:'htmlall':'UTF-8'}</title> |
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
{if $page_name == 'cms' or $page_name == 'category'} | |
<meta name="robots" content="noindex,nofollow,noarchive,nocache"> | |
{else} | |
<meta name="robots" content="{if isset($nobots)}no{/if}index,{if isset($nofollow) && $nofollow}no{/if}follow" /> | |
{/if} |
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
<script> | |
function getval(sel) { | |
$('#stars').val(sel.value); | |
} | |
$(document).ready(function() { | |
var valorestrella = $('#stars').val()-1; | |
$('#starsrating option:eq('+valorestrella+')').prop('selected', true); | |
$(".center_box_content").css("background-color","#47494c"); |
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
$("input[name^=hotels]:checked").each(function() { | |
alert($(this).val()); | |
}); |
NewerOlder