Open SjamonDaal opened 4 years ago
Thank you! Maybe it would be fine to test if the URL is valid before actually requesting it.
oh this is sad yeah when you open
npm start https://juffalow.co
it will fail I thing I have general fix running locally we can check if it is good enough
yeah after the update to v3 I have to redo it from scratch
this was my idea of the fix but some strage stuff happens when I run it the method is executed twice
`public async run(params: TestParameters): Promise<Result | Array
if(response.statusCode == undefined)
{
return {
status: 'ERROR',
title: 'URL',
description: 'The url was not found.',
};
} else {
try {
result = await this.test(params);
} catch (err) {
console.error(err);
}
return result;
}
}}`
In the version 3 of pentest-tool-lite if a single test will fail it just shows an error status of the test. So the script should not end with error anymore.
But this is not a fix of course. It should check if the provided url is valid url and after that make a request.