Nick Tsai
|
109c21b830
|
Release version 2.0.0
|
2022-12-28 17:29:21 +08:00 |
|
Nick Tsai
|
f3e2c20b2b
|
Update README.md
|
2022-12-28 17:27:40 +08:00 |
|
Nick Tsai
|
49d463f594
|
Redefine saving progress function
|
2022-12-28 10:54:35 +08:00 |
|
Nick Tsai
|
d9e270b3db
|
Merge pull request #2 from ycoya/SavingProgress
Saving progress
|
2022-12-28 10:34:41 +08:00 |
|
ycoya
|
5c0c4e4f0e
|
renaming function bootUp to boot. Like order to generate password changed, then we reverse order to generate the password that were already verified by the user.
|
2022-12-27 19:47:08 -05:00 |
|
ycoya
|
c047504e18
|
adding counter++;
|
2022-12-27 12:22:56 -05:00 |
|
ycoya
|
9d5ef21554
|
Merge branch 'SavingProgress' of https://github.com/ycoya/brute-force-attacker-php into SavingProgress
|
2022-12-27 12:12:54 -05:00 |
|
ycoya
|
f9518dff79
|
Merge branch 'master' into SavingProgress
|
2022-12-27 12:11:35 -05:00 |
|
ycoya
|
0694126f51
|
Merge branch 'master' into SavingProgress
|
2022-12-27 12:04:40 -05:00 |
|
Nick Tsai
|
85dd94c293
|
Update README.md
|
2022-12-27 16:22:01 +08:00 |
|
Nick Tsai
|
435180ec0a
|
Update README.md
|
2022-12-27 16:20:26 +08:00 |
|
Nick Tsai
|
cb3c1d5a23
|
Update README.md
|
2022-12-27 16:18:29 +08:00 |
|
Nick Tsai
|
cb647922f5
|
Update README.md
|
2022-12-27 16:16:30 +08:00 |
|
Nick Tsai
|
fdc579855b
|
Reverse the order of string permutation
|
2022-12-27 12:09:12 +08:00 |
|
Nick Tsai
|
fe08930717
|
Fix self:: with supporting PHP5
|
2022-12-27 10:55:15 +08:00 |
|
Nick Tsai
|
6d57bcda2d
|
Update README.md
|
2022-12-26 15:43:15 +08:00 |
|
Nick Tsai
|
8067aab47e
|
Simplify break & fix function parameter
|
2022-12-26 15:02:16 +08:00 |
|
Nick Tsai
|
b9f8426a53
|
Merge commit 'refs/pull/1/head' of github.com:yidas/brute-force-attacker-php
|
2022-12-26 14:53:20 +08:00 |
|
Nick Tsai
|
56195f3415
|
Release version 1.0.0
|
2022-12-26 14:49:45 +08:00 |
|
ycoya
|
0ab916b879
|
Sending to brute force attack the last password saved together the amount of times, just in case that this last text is the real password and for some reason the process stopped and we missed this.
|
2022-12-25 01:31:31 -05:00 |
|
ycoya
|
08b163dee8
|
fixing bug for empty string.
|
2022-12-23 19:37:12 -05:00 |
|
ycoya
|
37dfcc7bd3
|
A way to save password generated and be able to continue from where we left of. So we can stop and continue without restarting all progress.
$charRecorded = "w1b";
$this->count = 15656;
BruteForceAttacker::bootUp($charRecorded);
for ($i = $charRecorded ? strlen($charRecorded): 1 ; $i <= 5 ;$i++) {
BruteForceAttacker::run([
'length' => $i,
'charMap' => array_merge(range('0', '9'), range('a', 'z')),
'callback' => [$this, 'sendTelnetCmd'],
'startsCount' => $this->count,
]);
if($this->found) {
break;
}
}
}
public function sendTelnetCmd($string, $count)
{
$this->info("string: $string, count: $count");
$this->count = $count;
if ($string=="a2b") {
$this->info( "Matched `{$string}` with {$count} times");
return $this->found = true;
}
}
Using $this->count to save the iterations number so we can retake from the last number counted.
|
2022-12-23 13:24:52 -05:00 |
|
ycoya
|
d5ca11df05
|
Stop iterations if the value is found.
|
2022-12-23 12:59:55 -05:00 |
|
ycoya
|
c17b8cfc46
|
Working on php 8.0.8 version, floor function returned a float number and not integer, this throws an error in line 93 with message String offset cast occurred. To fix this, a conversion to integer is made.
|
2022-12-17 22:46:49 -05:00 |
|
Nick Tsai
|
b37337339d
|
Release version 1.0.0
|
2019-08-01 16:15:53 +08:00 |
|
Nick Tsai
|
118621a38d
|
Prepare for version 1.0.0
|
2019-08-01 16:15:19 +08:00 |
|
Nick Tsai
|
348af2cabb
|
Initial commit
|
2019-07-31 18:50:45 +08:00 |
|