Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GETTING ERROR WHEN UPDATING SQLMAP #541

Closed
hack0day opened this issue Oct 13, 2013 · 16 comments
Closed

GETTING ERROR WHEN UPDATING SQLMAP #541

hack0day opened this issue Oct 13, 2013 · 16 comments
Assignees
Labels

Comments

@hack0day
Copy link

python ./sqlmap.py --update

sqlmap/1.0-dev-18d9e1d - automatic SQL injection and database takeover tool
http://sqlmap.org

[!] legal disclaimer: Usage of sqlmap for attacking targets without prior mutual consent is illegal. It is the end user's responsibility to obey all applicable local, state and federal laws. Developers assume no liability and are not responsible for any misuse or damage caused by this program

[*] starting at 23:10:47

[23:10:47] [INFO] updating sqlmap to the latest development version from the GitHub repository
[23:10:47] [INFO] update in progress .
[23:10:48] [ERROR] update could not be completed ('From git github com sqlmapproject sqlmap branch HEAD FETCH_HEAD error Your local changes to the following files would be overwritten by merge txt common columns txt Please commit your changes or stash them before you can merge Aborting')
[23:10:48] [INFO] for Linux platform it's required to install a standard 'git' package (e.g.: 'sudo apt-get install git')

[*] shutting down at 23:10:48

@ghost ghost assigned stamparm Oct 13, 2013
@stamparm
Copy link
Member

You have some local changes that you have to revert. Please either:

A) clone/checkout the sqlmap project from the beginning (remove the old directory and recheckout)
or
B) revert changes before doing the update (inside the sqlmap directory execute: git checkout .)

@dustfeather
Copy link

I have the same error even after fresh cloning.
Running git pull manually works fine and it doesn't bother me to do it, but it's annoying to see that error every time I run sqlmap.

@stamparm
Copy link
Member

@dustfeather and what exact error do you get?

@dustfeather
Copy link

[17:04:34] [INFO] updating sqlmap to the latest development version from the GitHub repository
[17:04:34] [INFO] update in progress .
[17:04:35] [ERROR] update could not be completed ('fatal Not a git repository or any of the parent directories git')
[17:04:35] [INFO] for Linux platform it's required to install a standard 'git' package (e.g.: 'sudo apt-get install git')

@giveen
Copy link

giveen commented Oct 13, 2015

Are you doing this from a Windows platform? I'm assuming that the --update command invokes a git request, which will not work with Windows.

or if you are on linux, make sure to add git package.

@stamparm
Copy link
Member

This is happening as the user has not done the git clone from the
beginning. I.e. he has downloaded the ZIP version which does not support
the git pull.

I'll update the error message accordingly.
On Oct 13, 2015 4:50 PM, "Giveen" notifications@github.com wrote:

Are you doing this from a Windows platform? I'm assuming that the --update
command invokes a git request, which will not work with Windows.

or if you are on linux, make sure to add git package.


Reply to this email directly or view it on GitHub
#541 (comment)
.

@dustfeather
Copy link

@giveen The error I pasted earlier is from Kali Linux, I do have git installed, and I don't run the default sqlmap installation Kali comes with, it's a fresh clone.
I hope that answers your questions.

@giveen
Copy link

giveen commented Oct 13, 2015

@dustfeather it does. I see that @stamparm already answered the question. I was just throwing out ideas.

@stamparm
Copy link
Member

@dustfeather message updating sqlmap to the latest development appears in situations when there is a .git directory inside the sqlmap, but INVALID one. Can you please list the content of your sqlmap/.git directory? One reason that comes to my mind is that you've deleted its content because of its size

@dustfeather
Copy link

I don't have a space problem, and I didn't delete anything, I told you, that error appears even after fresh repo cloning. :)
I found out when the problem occurs for me: it's when I use it with a symlink.
If I call ./sqlmap.py --update, it works, but if I make a symlink to it and execute it from that symlink, doesn't work anymore (the update part, the rest of it works just fine)

@stamparm
Copy link
Member

@dustfeather ok. can you please run the following commands and report back what's going on?

cd /tmp
git clone https://github.com/sqlmapproject/sqlmap.git sqlmap
cd sqlmap
python sqlmap.py --update

p.s. if you still have problems please tell me which distro are you using so I could (try to) reproduce the behavior

123

@dustfeather
Copy link

Running python sqlmap.py --update works, but if I run:

cd ~
ln -s /usr/share/sqlmap/sqlmap.py sqlmap
./sqlmap

It doesn't work, /usr/share is just an example, it doesn't matter in what location I clone the repo.
My distro is Kali 2.0, but with freshly cloned repo, not the default installation.
Thanks.

stamparm added a commit that referenced this issue Oct 22, 2015
@stamparm
Copy link
Member

@dustfeather <- that's the way I like it :). Great comment on an Issue. Helped a lot

@stamparm
Copy link
Member

@dustfeather please retry with the latest revision

@dustfeather
Copy link

@stamparm Works like a charm, thanks a lot for fixing that :)

@sri-55
Copy link

sri-55 commented May 16, 2023

how to fix my sqlmap outdated issue in kali linux

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants