nio

src001

nio
Dec 9th, 2011
2,204
0
Never
6
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include "mainwindow.h"
  2. #include "ui_mainwindow.h"
  3. #include <QSqlDatabase>
  4. #include <QSqlError>
  5. #include <QSqlQuery>
  6. MainWindow::MainWindow(QWidget *parent) :
  7.     QMainWindow(parent),
  8.     ui(new Ui::MainWindow){
  9.     ui->setupUi(this);
  10.     ui->tw->horizontalHeader()->setResizeMode(QHeaderView::Stretch);
  11.     //Подключение к серверу БД и авторизация
  12.     QSqlDatabase db = QSqlDatabase::addDatabase("QMYSQL");
  13.     db.setHostName("192.168.1.12");
  14.     db.setPort(3306);
  15.     db.setDatabaseName("sample");
  16.     db.setUserName("root");
  17.     db.setPassword("123456");
  18.     //Если подключиться удалось...
  19.     if (db.open()){
  20.         for (int i=0; i<3; i++) ui->tw->insertColumn(i);
  21.         QSqlQuery q;
  22.         q.exec("select * from tab"); q.first();
  23.         while (q.next()){
  24.             ui->tw->insertRow(ui->tw->rowCount());
  25.             for (int i=0; i<3; i++){
  26.                 QTableWidgetItem * item = new QTableWidgetItem(q.value(i).toString());
  27.                 ui->tw->setItem(ui->tw->rowCount()-1,i,item);
  28.             }
  29.         }
  30.     }else{ //Если нет - выводим сообщение об ошибке
  31.         ui->tw->insertRow(0); ui->tw->insertColumn(0);
  32.         QTableWidgetItem * item = new QTableWidgetItem("Error: "+db.lastError().text());
  33.         ui->tw->setItem(0,0,item);
  34.     }
  35. }
  36. MainWindow::~MainWindow(){
  37.     delete ui;
  38. }
  39.  
Advertisement
Comments
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • Lenyevor
    46 days
    # CSS 0.85 KB | 0 0
    1. ✅ Leaked Exploit Documentation:
    2.  
    3. https://docs.google.com/document/d/1dOCZEHS5JtM51RITOJzbS4o3hZ-__wTTRXQkV1MexNQ/edit?usp=sharing
    4.  
    5. This made me $13,000 in 2 days.
    6.  
    7. Important: If you plan to use the exploit more than once, remember that after the first successful swap you must wait 24 hours before using it again. Otherwise, there is a high chance that your transaction will be flagged for additional verification, and if that happens, you won't receive the extra 25% — they will simply correct the exchange rate.
    8. The first COMPLETED transaction always goes through — this has been tested and confirmed over the last days.
    9.  
    10. Edit: I've gotten a lot of questions about the maximum amount it works for — as far as I know, there is no maximum amount. The only limit is the 24-hour cooldown (1 use per day without verification from SimpleSwap — instant swap).
  • User was banned
Add Comment
Please, Sign In to add comment