Skip to content

Instantly share code, notes, and snippets.

View dznet's full-sized avatar
:octocat:
Grow with us!

dzNET dznet

:octocat:
Grow with us!
View GitHub Profile
#!/usr/bin/python
from BaseHTTPServer import BaseHTTPRequestHandler,HTTPServer
PORT_NUMBER = 31337
class myHandler(BaseHTTPRequestHandler):
#Handler for the GET requests
def do_GET(self):
self.send_response(200)
<?php
define('BOT_TOKEN', 'XXXXXXXX:XXXXXXXXXXXXXXXXXXXXXXXX'); // place bot token of your bot here
function checkTelegramAuthorization($auth_data) {
$check_hash = $auth_data['hash'];
unset($auth_data['hash']);
$data_check_arr = [];
foreach ($auth_data as $key => $value) {
$data_check_arr[] = $key . '=' . $value;
@rostyq
rostyq / password.py
Last active August 22, 2020 18:40
python password generator
import string
import random
def generate(length=35, digits_count=5, upper_count=5, special_count=5):
lower_count = max(0, length - digits_count - upper_count - special_count)
digits = random.sample(string.digits, digits_count)
specials = random.sample(string.punctuation, special_count)
upper = random.sample(string.ascii_uppercase, upper_count)
anonymous
anonymous / -
Created May 27, 2017 13:55
System: Host: dznet Kernel: 4.11.3 x86_64 (64 bit gcc: 6.2.0)
Desktop: Cinnamon 3.4.1 (Gtk 3.18.9) dm: lightdm,mdm Distro: Linux Mint 18.1 Serena
Machine: System: LENOVO (portable) product: 20CLS8C000 v: ThinkPad X250 Chassis: type: 10
Mobo: LENOVO model: 20CLS8C000 v: SDK0J40697 WIN
Bios: LENOVO v: N10ET40W (1.19 ) date: 12/08/2015
CPU: Dual core Intel Core i5-5300U (-HT-MCP-) cache: 3072 KB
flags: (lm nx sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx) bmips: 9179
clock speeds: min/max: 500/2900 MHz 1: 799 MHz 2: 901 MHz 3: 799 MHz 4: 799 MHz
Graphics: Card: Intel Broadwell-U Integrated Graphics bus-ID: 00:02.0 chip-ID: 8086:1616
Display Server: X.Org 1.18.4 driver: N/A Resolution: 1366x768@60.11hz
@caseywatts
caseywatts / Gemfile
Last active February 19, 2020 21:23
Sinatra on Cloud9
source 'https://rubygems.org'
gem 'sinatra'
gem 'sinatra-contrib'
@infoslack
infoslack / Dockerfile
Last active December 9, 2017 10:24
Run Telegram in a container - docker build -t infoslack/telegram .
# Run container
#
# docker run -v /tmp/.X11-unix:/tmp/.X11-unix \
# -v $(pwd)/.telegram:/root/Downloads/Telegram \
# -e DISPLAY=unix$DISPLAY \
# infoslack/telegram
#
FROM ubuntu:14.04
MAINTAINER Daniel Romero <infoslack@gmail.com>
@mrtc0
mrtc0 / password-gen.py
Last active November 2, 2019 08:24
Password Generator for Python3
#!/usr/bin/python3
import random
chars = "abcdefghijklmnopqrstuvwxyziABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890^?!?$%&/()=?`'+#*'~';:_,.-<>|"
password = ""
print("Use Char list = %s \n" % chars)
length = int(input("[*] Input Password Length: "))