Git Product home page Git Product logo

hesam905's Projects

hack icon hack

import copy import hashlib import base64 BLOCK_SIZE = 4 def xor(a, b): return chr(ord(a) ^ ord(b)) def get_blocks(m): blocks = [] block = [] for i in m: block.append(i) if len(block) >= BLOCK_SIZE: blocks.append(block) block = [] if block: while len(block) < BLOCK_SIZE: block.append(' ') blocks.append(block) return blocks def shift_bottom(block): nlen = len(block) block = copy.deepcopy(block) for i in range(nlen): r = i + 1 if i + 1 < nlen else ((i + 1) - nlen) a = block[i] b = block[r] block[i] = xor(a, b) return block def _shift_bottom(block): nlen = len(block) block = copy.deepcopy(block) for i in range(nlen-1, -1, -1): r = i + 1 if i + 1 < nlen else ((i + 1) - nlen) a = block[i] b = block[r] block[i] = xor(a, b) return block def shift_right(block, n=32): nlen = len(block) _block = [] for i in range(nlen): r = i - 1 _block.append(block[r]) if n: _block = shift_right(_block, n-1) return _block def _shift_right(block, n=32): nlen = len(block) _block = [] for i in range(nlen): r = i + 1 if i + 1 < BLOCK_SIZE else (i + 1) - nlen _block.append(block[r]) if n: _block = _shift_right(_block, n-1) return _block def cross(block, pwd): nlen = len(block) block = copy.deepcopy(block) _block = [] for i in range(nlen): _block.append(xor(block[i], pwd[i])) return _block def encrypt(msg, pwd): cipher = '' pwd = hashlib.sha256(pwd.encode()).hexdigest() for b in get_blocks(msg): for _ in range(4): b = shift_bottom(b) b = cross(b, pwd) b = shift_right(b) b = cross(b, pwd) cipher += ''.join(b) return base64.b64encode(cipher.encode()) def decrypt(cipher, pwd): msg = '' pwd = hashlib.sha256(pwd.encode()).hexdigest() for b in get_blocks(base64.b64decode(cipher).decode()): for _ in range(4): b = cross(b, pwd) b = _shift_right(b) b = cross(b, pwd) b = _shift_bottom(b) msg += ''.join(b) return msg.strip().encode()

instagram-hacker icon instagram-hacker

This is an advanced script for Instagram bruteforce attacks. WARNING THIS IS A REAL TOOL!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.