Comments (8)
I have another behavior might be tied to this issue. When I specify an output file with -o
, nothing is printed on the console. I that by design or just a miss ?
Thanks !
from gau.
Hi @sofily-security,
Thanks for opening this issue. What happens when you run this?
gau -subs -o target.txt target.com
from gau.
Hello Ic,
Now when I run with your provided syntax, it's working. It prints the output on console + creating and dumping the result into a file.
root@kali:# gau -subs -o target.txt target.com# ls -l target.txt
root@kali:
-rw-r--r-- 1 root root 593920 Sep 3 20:39 framer.txt
root@kali:~#
But again, just to test the previous case, I again run with the initial syntax. It ONLY prints the output on console BUT NOT creating and dumping the result into a file.
root@kali:# gau target.com -subs -o target_2.txt#
root@kali:# ls -l target_2.txt
ls: cannot access 'target_2.txt': No such file or directory
root@kali:
Now this leads me to ask one question:
Why the tool acts differently when providing the TARGET in the middle of the command or at the last of the command?
from gau.
@sofily-security this acts differently because of Golang's flag package and my use of NArg
https://github.com/lc/gau/blob/master/main.go#L102
if flag.NArg() > 0 {
domains = flag.Args()
}
NArg is the number of arguments remaining after flags have been processed.
from gau.
Understood. Thanks for your prompt response. Good learning tips for me 👍
from gau.
I'm going to look into this more and see if I can find a solution, so I'll leave this open for now. Thanks!
from gau.
@BastienFaure that is by design
from gau.
Hey @sofily-security this is now fixed in the new version of gau!
from gau.
Related Issues (20)
- Feature request: Add option to return a max amount of result per domain
- gau-2.1.2 binary wont run if outside of a github repository HOT 1
- como remover esse gau do linux HOT 1
- can't install gau HOT 3
- collect2: error: ld returned 1 exit status HOT 3
- macOS arm64 build? HOT 1
- fatal: pathspec 'example.com' did not match any files HOT 1
- urlscan broken HOT 5
- WARN[0000] error instantiating commoncrawl: commoncrawl.apiResult: decode slice: expect WHEN USE --proxy HOT 1
- I phone
- fatal: not a git repository (or any of the parent directories): .git HOT 1
- How to fetch for only specific extensions? aka whitelist strings? HOT 2
- --providers urlscan and wayback not available HOT 3
- Can't write output in .txt file HOT 2
- Option to blacklist paths HOT 1
- Richer JSON output HOT 5
- go install on fedora HOT 1
- Less results with the configuration file HOT 4
- gau x gauplus x waybackurls HOT 3
- Unable to use "--provider commoncrawl"
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gau.