You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
When trying to read a file from remote system in unstable conditions it can happen that the file is read only partially. Further reading attempts result just in checking if the remote and local file are the same. I'm aware that there is a possibility of using --fresh-queries but using this when the data exfiltration takes very long time is not a good option.
I've found that i can manually convince sqlmap to continue reading the file by prepending the string __PARTIAL_VALUE__ in the sqlmap's sqlite database to the partially read value. After doing that and running the sqlmap again, the file reading process continues where the last run ended. Can this be implemented for example like a command line option? (maybe --continue-file-read?) I'd submit a PR for this but i'm too unfamiliar with the project structure to make any changes myself.
Describe the solution you'd like
I'd like to have the opportunity to continue file read which has been read only partially due to unstability or other errors.
Describe alternatives you've considered
The only alternative that i've found is manually editing the sqlmap's sqlite database which could be considered a viable solution too but it's a bit hacky in my opinion and don't think it's documented anywhere as a possibility when a file is read only partially and the intent is to read rest of the file.
Additional context
sqlmap logs which demonstrate the issue (partially redacted):
Is your feature request related to a problem? Please describe.
When trying to read a file from remote system in unstable conditions it can happen that the file is read only partially. Further reading attempts result just in checking if the remote and local file are the same. I'm aware that there is a possibility of using
--fresh-queries
but using this when the data exfiltration takes very long time is not a good option.I've found that i can manually convince sqlmap to continue reading the file by prepending the string
__PARTIAL_VALUE__
in the sqlmap's sqlite database to the partially read value. After doing that and running the sqlmap again, the file reading process continues where the last run ended. Can this be implemented for example like a command line option? (maybe--continue-file-read
?) I'd submit a PR for this but i'm too unfamiliar with the project structure to make any changes myself.Describe the solution you'd like
I'd like to have the opportunity to continue file read which has been read only partially due to unstability or other errors.
Describe alternatives you've considered
The only alternative that i've found is manually editing the sqlmap's sqlite database which could be considered a viable solution too but it's a bit hacky in my opinion and don't think it's documented anywhere as a possibility when a file is read only partially and the intent is to read rest of the file.
Additional context
sqlmap logs which demonstrate the issue (partially redacted):
I think that the issue happens in the following run and the sqlmap thinks that the file has been (?) fully read.
Further reading attempts do not actually read any further data, sqlmap just reports local and remote file size difference.
The text was updated successfully, but these errors were encountered: