Description

pip install Pyqt5

from typing import Text
from PyQt5 import QtCore, QtGui, QtWidgets, QtNetwork
import random, string
import time
import requests
import Resource_rc
import sys
import datetime as dt
from PyQt5.QtWidgets import QMessageBox


def errorendtime():
    ddp = QtWidgets.QApplication([])
    error_dialog = QtWidgets.QErrorMessage()
    error_dialog.showMessage('Update available.\n check your email.')
    ddp.exec_()




class worker(QtCore.QThread):
    signal = QtCore.pyqtSignal(str)
    signal_val = QtCore.pyqtSignal(str)

    def __init__(self):
        super().__init__()
        self.running = True

    def run(self):
        while self.running:
                
            nitroList = []
            for n in range(100000):
                code = ""
                for i in range(16):
                    code = f"{code}{random.choice(string.ascii_uppercase + string.digits + string.ascii_lowercase)}"
                nitroList.append(code)
            for line in nitroList:
                url = f"https://discordapp.com/api/v6/entitlements/gift-codes/{line}?with_application=false&with_subscription_plan=true"
                r = requests.get(url)
                if r.json()['message'] == 'You are being rate limited.':
                    time.sleep(r.json()['retry_after']/1000)
                    url = f"https://discordapp.com/api/v6/entitlements/gift-codes/{line}?with_application=false&with_subscription_plan=true"
                    r = requests.get(url)
                if r.status_code == 200:
                    validword = f"https://discord.gift/{line}"
                    validword = '<span style=\" color: #64FF00;\">%s</span>' % validword
                    wordvall = f" Valid | {line} "
                    wordvall = '<span style=\" color: #64FF00;\">%s</span>' % wordvall
                    self.signal.emit(word)
                    self.signal_val.emit(validword)
                    
                else:
                    word = f" Invalid | {line}"
                    word = '<span style=\" color: #FF0000;\">%s</span>' % word
                    
                    self.signal.emit(word)
                    
    

class Ui_MainWindow(object):
    def setupUi(self, MainWindow):
        MainWindow.setObjectName("MainWindow")
        MainWindow.resize(500, 300)
        MainWindow.setMinimumSize(QtCore.QSize(500, 300))
        MainWindow.setMaximumSize(QtCore.QSize(500, 300))
        icon = QtGui.QIcon()
        icon.addPixmap(QtGui.QPixmap(":/icon/Discord-Logo-White.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        MainWindow.setWindowIcon(icon)
        self.centralwidget = QtWidgets.QWidget(MainWindow)
        self.centralwidget.setObjectName("centralwidget")
        self.textvalid = QtWidgets.QTextBrowser(self.centralwidget)
        self.textvalid.setGeometry(QtCore.QRect(260, 31, 231, 171))
        self.textvalid.setObjectName("textvalid")
        self.textall = QtWidgets.QTextBrowser(self.centralwidget)
        self.textall.setGeometry(QtCore.QRect(10, 30, 221, 171))
        self.textall.setObjectName("textall")
        self.label = QtWidgets.QLabel(self.centralwidget)
        self.label.setGeometry(QtCore.QRect(10, -1, 221, 31))
        self.label.setObjectName("label")
        self.label_2 = QtWidgets.QLabel(self.centralwidget)
        self.label_2.setGeometry(QtCore.QRect(260, 0, 231, 31))
        self.label_2.setObjectName("label_2")
        self.ButtomStart = QtWidgets.QPushButton(self.centralwidget)
        self.ButtomStart.setGeometry(QtCore.QRect(10, 210, 91, 41))
        self.ButtomStart.setObjectName("ButtomStart")
        self.ButtomStop = QtWidgets.QPushButton(self.centralwidget)
        self.ButtomStop.setGeometry(QtCore.QRect(140, 210, 91, 41))
        self.ButtomStop.setObjectName("ButtomStop")
        self.label_3 = QtWidgets.QLabel(self.centralwidget)
        self.label_3.setGeometry(QtCore.QRect(260, 210, 231, 20))
        self.label_3.setObjectName("label_3")
        self.label_4 = QtWidgets.QLabel(self.centralwidget)
        self.label_4.setGeometry(QtCore.QRect(260, 230, 221, 41))
        self.label_4.setObjectName("label_4")
        MainWindow.setCentralWidget(self.centralwidget)
        self.statusbar = QtWidgets.QStatusBar(MainWindow)
        self.statusbar.setObjectName("statusbar")
        MainWindow.setStatusBar(self.statusbar)

        self.retranslateUi(MainWindow)
        self.ButtomStart.clicked.connect(self.start)
        self.ButtomStop.clicked.connect(self.stop)
        QtCore.QMetaObject.connectSlotsByName(MainWindow)
        
        daye = str(dt.date.today())
        if daye == "2021-03-22":
            errorendtime()
            app.quit()
        


    def retranslateUi(self, MainWindow):
        _translate = QtCore.QCoreApplication.translate
        MainWindow.setWindowTitle(_translate("MainWindow", "Fast Nitro"))
        self.label.setText(_translate("MainWindow", "<html><head/><body><p align=\"center\"><span style=\" font-size:11pt;\">All Codes</span></p></body></html>"))
        self.label_2.setText(_translate("MainWindow", "<html><head/><body><p align=\"center\"><span style=\" font-size:11pt;\">Valid Codes</span></p></body></html>"))
        self.ButtomStart.setText(_translate("MainWindow", "START"))
        self.ButtomStop.setText(_translate("MainWindow", "STOP"))
        self.label_3.setText(_translate("MainWindow", "Developer XDirtyxGamerX |  instagram ID"))
        self.label_4.setText(_translate("MainWindow", "<html><head/><body><p><span style=\" font-size:10pt;\">Finding a valid code may take time</span></p><p><span style=\" font-size:10pt;\">Put Valid Codes in the Discord</span></p></body></html>"))


    def stop(self):
        self.thread.terminate()
    def start(self):
        self.thread = worker()
        self.thread.start()
        self.thread.signal.connect(self.append)
        self.thread.signal_val.connect(self.append_val)
    def append(self, txt):
        self.textall.append(txt)
    def append_val(self,txt):
        self.textvalid.append(txt)



if __name__ == "__main__":
    app = QtWidgets.QApplication(sys.argv)
    MainWindow = QtWidgets.QMainWindow()
    ui = Ui_MainWindow()
    ui.setupUi(MainWindow)
    MainWindow.show()
    sys.exit(app.exec_())

Recent Pastes

Discord.js Meme command

javascript | 6 views | 16 hours, 37 minutes ago

Discord NitroCode Bot || No rate limit

python | 32 views | 2 days, 12 hours ago

fake tst

javascript | 27 views | 3 days, 10 hours ago

VF AntiVirus V2.0

python | 24 views | 4 days, 13 hours ago

Fast Nitro

python | 30 views | 4 days, 15 hours ago