Skip to content

Commit

Permalink
Fix ds_store header...
Browse files Browse the repository at this point in the history
  • Loading branch information
davtur19 committed Aug 18, 2024
1 parent d2eec73 commit cc917f3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ An extension for checking if .git is exposed in visited websites

- Check if a .git/.svn/.hg folder exists for each site you visit
- Check if a .env file exists for each site you visit
- Check if a .DS_Store file exists for each site you visit (Thanks to [@rodnt](https://github.com/rodnt))
- Check if a .DS_Store file exists for each site you visit
- Check if the site is open source (github/gitlab)
- Check if the site has security.txt
- You will be notified when a folder is found
Expand Down
3 changes: 1 addition & 2 deletions dotgit.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ const ENV_PATH = "/.env";
const ENV_SEARCH = "^[A-Z_]+=|^[#\\n\\r ][\\s\\S]*^[A-Z_]+=";

const DS_STORE = "/.DS_Store";
const DS_STORE_HEADER = "\x00@\x00";
const DS_STORE_HEADER = "^\x00\x00\x00\x01Bud1";

const GIT_TREE_HEADER = "tree ";
const GIT_OBJECTS_PATH = "objects/";
Expand Down Expand Up @@ -309,7 +309,6 @@ async function checkDSStore(url) {

if (response.status === 200) {
let text = await response.text();
console.log(response.text());
if (text !== false && text.startsWith(DS_STORE_HEADER[0]) === true) {

setBadge();
Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"manifest_version": 3,
"name": "DotGit",
"version": "4.10.2",
"version": "4.10.3",
"description": "An extension for checking if .git is exposed in visited websites",
"icons": {
"16": "icons/dotgit-16.png",
Expand Down

0 comments on commit cc917f3

Please sign in to comment.