fixed injectSize type error for Post attacks#81
Conversation
|
also added a fix for parsing a burp file, where the trailing newline is not trimmed when reading the host address. This is a quick fix, the better way would be to remove all trailing lines as soon as we read in the file. But if we make that fix, we should also not use readlines since it has to read the whole file into memory, but instead do something like: |
…. Also use 'with' to open files, to ensure file is automatically closed
|
figured I'd make the change I just mentioned. So now we strip each line in a file as soon as we read it in. Also moved the file open into a |
|
Excellent, thank-you! For a while now I've been rewriting this to take proper arguments / CLI input which will help to harden a lot of this. The pull request is still very appreciated however. |
injectSize needs to be converted to an int before being passed to range argument. Otherwise we get a typeError since it is a string.