refactor: Change vector init in padding oracle
This commit is contained in:
parent
0da047110f
commit
2f0e265ed6
1 changed files with 2 additions and 1 deletions
|
|
@ -57,7 +57,8 @@ pub fn padding_oracle(args: &Value) -> Result<Vec<u8>> {
|
||||||
|
|
||||||
// Generate attack blocks
|
// Generate attack blocks
|
||||||
// TODO: Collect all and send in one
|
// TODO: Collect all and send in one
|
||||||
let mut payload: Vec<u8> = l_msg.to_vec();
|
let mut payload: Vec<u8> = Vec::with_capacity(2 + 16 * 265);
|
||||||
|
payload.extend(l_msg.to_vec());
|
||||||
for j in 0..q_block_count {
|
for j in 0..q_block_count {
|
||||||
// Next byte
|
// Next byte
|
||||||
//eprintln!("Sending attack block: {:02X?}", attack_counter);
|
//eprintln!("Sending attack block: {:02X?}", attack_counter);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue