Code Monkey home page Code Monkey logo

Comments (8)

BastienFaure avatar BastienFaure commented on July 17, 2024 1

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.

lc avatar lc commented on July 17, 2024

Hi @sofily-security,

Thanks for opening this issue. What happens when you run this?

gau -subs -o target.txt target.com

from gau.

sofily-security avatar sofily-security commented on July 17, 2024

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
root@kali:
# ls -l target.txt
-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.

lc avatar lc commented on July 17, 2024

@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.

sofily-security avatar sofily-security commented on July 17, 2024

Understood. Thanks for your prompt response. Good learning tips for me 👍

from gau.

lc avatar lc commented on July 17, 2024

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.

lc avatar lc commented on July 17, 2024

@BastienFaure that is by design

from gau.

lc avatar lc commented on July 17, 2024

Hey @sofily-security this is now fixed in the new version of gau!

from gau.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.