lbarman / kali-tools

Run Kali tools on all distributions. Offline search, including in package descriptions.
MIT License
98 stars 26 forks source link

nishang: remote HEAD refers to nonexistent ref #5

Closed charlesreid1 closed 6 years ago

charlesreid1 commented 6 years ago

First, thank you for an excellent tool - the search function and organization of packages is extremely useful, even on Kali systems.

This doesn't seem to be a problem with kali-tools per se, but one of the git repos in data.py, corresponding to nishang, seem to be having some issues:

$ ./kali.py nishang
 _  _    __    __    ____     ____  _____  _____  __    ___ 
( )/ )  /__\  (  )  (_  _)___(_  _)(  _  )(  _  )(  )  / __)
 )  (  /(__)\  )(__  _)(_(___) )(   )(_)(  )(_)(  )(__ \__ 
(_)\_)(__)(__)(____)(____)    (__) (_____)(_____)(____)(___/

Searching for  nishang 

 N°|  Name    | Installed | Description
---|----------|-----------|-----------------------------------------------------------------------------------------------------
 1)  nishang                nishang is a framework and collection of scripts and payloads which enables usage of PowerShell f...

Package No: 
1
----------------------------------------------------------------------------------------------------
| Package nishang 
----------------------------------------------------------------------------------------------------
| Description:
| nishang is a framework and collection of scripts and payloads which enables usage of
| PowerShell for offensive security and post exploitation during Penetraion Tests. The scripts are
| written on the basis of requirement by the author during real Penetration Tests. It contains many
| interesting scripts like Keylogger, DNS TXT Code Execution, HTTP Backdoor, Powerpreter, LSA Secrets
| and much more.
----------------------------------------------------------------------------------------------------
This package is not installed, and will be downloaded if you try to run it.
Would you like to download/run it ? [Y/n] 
y

Testing if nishang exists locally...
Not found, gonna clone in dist/nishang
Cloning into 'dist/nishang'...
remote: Counting objects: 348, done.
remote: Compressing objects: 100% (265/265), done.
remote: Total 348 (delta 158), reused 152 (delta 63)
Receiving objects: 100% (348/348), 2.26 MiB | 1.45 MiB/s, done.
Resolving deltas: 100% (158/158), done.
warning: remote HEAD refers to nonexistent ref, unable to checkout.

Please run the program in dist/ nishang

However, this seems to be an issue with the git repo itself:

$ git clone git://git.kali.org/packages/nishang.git
Cloning into 'nishang'...
remote: Counting objects: 348, done.
remote: Compressing objects: 100% (265/265), done.
remote: Total 348 (delta 158), reused 151 (delta 63)
Receiving objects: 100% (348/348), 2.26 MiB | 1.49 MiB/s, done.
Resolving deltas: 100% (158/158), done.
warning: remote HEAD refers to nonexistent ref, unable to checkout.

Most of the other git repos I tried worked okay though.

lbarman commented 6 years ago

Thanks a lot for the positive feedback ! Indeed the issue comes from the nishang repo, the author seems to maintain it on GitHub now. I've added it in the specialGitURLs, and fixed a bug in the kali.py. Thanks !

Fixed f375b709e2dacf05b0c9e71d0cc78e8990dde139, closing.