Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
424 changes: 188 additions & 236 deletions README.md

Large diffs are not rendered by default.

11 changes: 2 additions & 9 deletions README_EN.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
<!--
* @Author: ttttmr
* @date: 2019-06-03 23:09:07
* @LastEditors: ttttmr
* @LastEditTime: 2019-07-22 21:53:53
-->
# Dirmap

[中文](./README.md)
[Chinese](./README.md)

An advanced web directory scanning tool that will be more powerful than DirBuster, Dirsearch, cansina, and Yu Jian

Expand Down Expand Up @@ -51,7 +45,7 @@ Then take a look at the **features** of Dirmap.
## Environment and download

```shell
git clone https://github.com/H4ckForJob/dirmap.git && cd dirmap && python3 -m pip install -r requirement.txt
git clone <repository-url> && cd dirmap && python3 -m pip install -r requirement.txt
```

## Quick use
Expand Down Expand Up @@ -234,6 +228,5 @@ In the process of writing dirmap, I borrowed a lot of models and ideas from exce

# Contact

mail: xxlin.ujs@qq.com

![donate](doc/donate.jpg)
12 changes: 2 additions & 10 deletions dirmap.py
Original file line number Diff line number Diff line change
@@ -1,20 +1,13 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-

'''
@Author: xxlin
@LastEditors: xxlin
@Date: 2019-04-10 13:27:59
@LastEditTime: 2023-07-25 15:56:04
'''

import os
import sys

from gevent import monkey
monkey.patch_all()
from lib.controller.engine import run
from lib.core.common import banner, outputscreen, setPaths
from lib.core.common import outputscreen, setPaths
from lib.core.data import cmdLineOptions, conf, paths
from lib.core.option import initOptions
from lib.parse.cmdline import cmdLineParser
Expand All @@ -30,8 +23,7 @@ def main():
if sys.version_info < (3, 8):
outputscreen.error("Sorry, dirmap requires Python 3.8 or higher\n")
sys.exit(1)
# anyway output thr banner information
banner()


# set paths of project
paths.ROOT_PATH = os.getcwd()
Expand Down
40 changes: 40 additions & 0 deletions fix_syntax.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
#!/usr/bin/env python3
import os
import re

def fix_syntax_errors(directory):
"""Fix unterminated triple quotes in Python files"""
for root, dirs, files in os.walk(directory):
# Skip thirdlib directory for now
if 'thirdlib' in root:
continue

for file in files:
if file.endswith('.py'):
filepath = os.path.join(root, file)
try:
with open(filepath, 'r', encoding='utf-8') as f:
content = f.read()

# Remove lines that are just triple quotes at the start
lines = content.split('\n')
new_lines = []

for i, line in enumerate(lines):
# If it's just triple quotes and appears early in the file (first 10 lines)
if line.strip() == "'''" and i < 10:
continue
new_lines.append(line)

new_content = '\n'.join(new_lines)

if new_content != content:
with open(filepath, 'w', encoding='utf-8') as f:
f.write(new_content)
print(f"Fixed: {filepath}")

except Exception as e:
print(f"Error processing {filepath}: {e}")

if __name__ == "__main__":
fix_syntax_errors("/home/sondt/dirmap")
6 changes: 0 additions & 6 deletions lib/__init__.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-

'''
@Author: xxlin
@LastEditors: xxlin
@Date: 2019-04-11 16:11:27
@LastEditTime: 2019-04-11 20:04:09
'''
7 changes: 0 additions & 7 deletions lib/controller/__init__.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,2 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-

'''
@Author: xxlin
@LastEditors: xxlin
@Date: 2019-04-11 20:11:08
@LastEditTime: 2019-04-11 20:11:12
'''
Loading