-
Notifications
You must be signed in to change notification settings - Fork 89
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #50 from RealEnder/master
Two new simple algorithm plugins, general improvements and additions
- Loading branch information
Showing
9 changed files
with
269 additions
and
17 deletions.
There are no files selected for viewing
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
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,35 @@ | ||
/* | ||
* Copyright 2016 Alex Stanev <[email protected]> | ||
* | ||
* This file is part of Router Keygen. | ||
* | ||
* Router Keygen is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* Router Keygen is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with Router Keygen. If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
#include "EijsinkKeygen.h" | ||
|
||
EijsinkKeygen::EijsinkKeygen(QString ssid, QString mac) : | ||
Keygen(ssid, mac) { | ||
kgname = "Eijsink"; | ||
} | ||
|
||
QVector<QString> & EijsinkKeygen::getKeys(){ | ||
QString ssid = getSsidName(); | ||
ssid.replace("k5", ""); | ||
ssid.replace("K5", ""); | ||
|
||
results.append("951" + ssid.right(5)); | ||
|
||
return results; | ||
} |
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,32 @@ | ||
/* | ||
* Copyright 2016 Alex Stanev <[email protected]> | ||
* | ||
* This file is part of Router Keygen. | ||
* | ||
* Router Keygen is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* Router Keygen is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with Router Keygen. If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
#ifndef EIJSINKKEYGEN_H | ||
#define EIJSINKKEYGEN_H | ||
#include "Keygen.h" | ||
|
||
class EijsinkKeygen : public Keygen | ||
{ | ||
public: | ||
EijsinkKeygen(QString ssid, QString mac); | ||
private: | ||
QVector<QString> & getKeys(); | ||
}; | ||
|
||
#endif // EIJSINKKEYGEN_H |
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,33 @@ | ||
/* | ||
* Copyright 2016 Alex Stanev <[email protected]> | ||
* | ||
* This file is part of Router Keygen. | ||
* | ||
* Router Keygen is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* Router Keygen is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with Router Keygen. If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
#include "GontwifiKeygen.h" | ||
|
||
GontwifiKeygen::GontwifiKeygen(QString ssid, QString mac) : | ||
Keygen(ssid, mac) { | ||
kgname = "Gontwifi"; | ||
} | ||
|
||
QVector<QString> & GontwifiKeygen::getKeys(){ | ||
QString mac = getMacAddress(); | ||
|
||
results.append("000000" + mac[9] + mac[8] + mac[7] + mac[6]); | ||
|
||
return results; | ||
} |
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,32 @@ | ||
/* | ||
* Copyright 2016 Alex Stanev <[email protected]> | ||
* | ||
* This file is part of Router Keygen. | ||
* | ||
* Router Keygen is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* Router Keygen is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with Router Keygen. If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
#ifndef GONTWIFIKEYGEN_H | ||
#define GONTWIFIKEYGEN_H | ||
#include "Keygen.h" | ||
|
||
class GontwifiKeygen : public Keygen | ||
{ | ||
public: | ||
GontwifiKeygen(QString ssid, QString mac); | ||
private: | ||
QVector<QString> & getKeys(); | ||
}; | ||
|
||
#endif // GONTWIFIKEYGEN_H |
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
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 |
---|---|---|
@@ -1,21 +1,24 @@ | ||
#include "Speedport500Keygen.h" | ||
|
||
Speedport500Keygen::Speedport500Keygen(QString ssid, QString mac) : | ||
Speedport500Keygen::Speedport500Keygen(QString ssid, QString mac, QString minus) : | ||
Keygen(ssid, mac) { | ||
kgname = "Speedport500"; | ||
this->minus = minus; | ||
} | ||
|
||
QVector<QString> & Speedport500Keygen::getKeys() { | ||
QString mac = getMacAddress(); | ||
if (mac.size() != 12) | ||
throw ERROR; | ||
|
||
QString ssid = getSsidName(); | ||
QString first = ssid.at(9); | ||
QString block = ssid.at(10) + mac.right(3); | ||
QString beginning = "SP-"; | ||
beginning += ssid.at(9); | ||
|
||
for (char x = '0'; x <= '9'; ++x) | ||
for (char y = '0'; y <= '9'; ++y) | ||
for (char z = '0'; z <= '9'; ++z) | ||
this->results.append(beginning + z + block + x +y + z ); | ||
for (char z = '0'; z <= '9'; ++z) { | ||
this->results.append("SP" + minus + first + z + block + x + y + z ); | ||
} | ||
return results; | ||
} |
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
Oops, something went wrong.