Skip to content

Commit

Permalink
Edit broken LFI fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
DEMON1A authored Apr 21, 2021
1 parent 94ad9ff commit 16206b1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -393,8 +393,8 @@ async def paramspider(ctx, *, argument):
async def recon(ctx , *, argument):
if path.exists(f'/{USER}/{RECON_PATH}/{argument}'):
try:
Path = f'/{USER}/{RECON_PATH}/{argument}'.replace('//' , '/')
Data = open(Path.replace('..', '')).read().rstrip()
Path = f'/{USER}/{RECON_PATH}/{argument}'.replace('//' , '/').replace('..', '')
Data = open(Path).read().rstrip()
Data = removeColors.Remove(Text=Data)
Message = f"""```{Data}```"""
except Exception:
Expand Down

0 comments on commit 16206b1

Please sign in to comment.