tautology0 / ayfabtu Goto Github PK
View Code? Open in Web Editor NEWScripts to extract files from SCM directories left on web servers
License: BSD 2-Clause "Simplified" License
Scripts to extract files from SCM directories left on web servers
License: BSD 2-Clause "Simplified" License
Getting this error:
$ ./git-grab --url http://dvwa.test/pta/ --outdir /tmp/pta/ diff django_web_app/django_web_app/settings.py 0 1
Traceback (most recent call last):
File "./git-grab", line 336, in <module>
first=entry["ids"][vers2][0:2]
IndexError: list index out of range
Directory indexing isn't enabled on the server if that matters.
There are differences:
$ git log -p django_web_app/django_web_app/settings.py
commit bc616d230f921999b8e968011a98cf7087dfe104 (HEAD -> master, code-refactor)
Author: Steven R <[email protected]>
Date: Sat Aug 15 03:08:52 2020 +0530
Flag is removed now :)
diff --git a/django_web_app/django_web_app/settings.py b/django_web_app/django_web_app/settings.py
index 826395d..e571331 100644
--- a/django_web_app/django_web_app/settings.py
+++ b/django_web_app/django_web_app/settings.py
@@ -20,7 +20,7 @@ BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
# See https://docs.djangoproject.com/en/2.1/howto/deployment/checklist/
# SECURITY WARNING: keep the secret key used in production secret!
-SECRET_KEY = 'xxx'
+SECRET_KEY = '[ REDACTED ]'^M
Discover gives no response on the file either:
$ ./git-grab --url http://dvwa.test/pta/ --outdir /tmp/pta/ discover django_web_app/django_web_app/settings.py
I can send you the repo if you need it.
svn-grab is still using perl and a very manky user interface. Rebuild it in Python and put a decent UX on it.
Add a command to show the branches.
Been told we used to be able to pull it out of the master file with the broken name, now that is gone we can't. There are some references in .git/logs/HEAD but that may not be all of them.
hg-grab is still using perl and a very manky user interface. Rebuild it in Python and put a decent UX on it.
With all that you are already grabbing, would it be possible to also grab the logs?
Don't know if this is deliberate or not, but you create this oddly named file with the discover call:
./dvwa.test/pta/pta/.git/refs/heads:
total 12
drwxrwxr-x 2 robin robin 4096 Oct 20 21:53 .
drwxrwxr-x 3 robin robin 4096 Oct 20 21:53 ..
-rw-rw-r-- 1 robin robin 41 Oct 20 21:53 'master'$'\n'
Is it supposed to be named like that?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.