Penetration Testing with Kali Linux
PWK - Copyright © 2023 OffSec Services Limited. All rights reserved.
243
Once we have clicked on
Compress JavaScript
, we’ll copy the output and save it locally.
As a final attack step, we are going to encode the minified JavaScript code, so any bad characters
won’t interfere with sending the payload. We can do this using the following function:
function encode_to_javascript(string) {
var input = string
var output = '';
for(pos = 0; pos < input.length; pos++) {
Yüklə
Dostları ilə paylaş: