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

Project setup using wget or curl #184

Open
moozzi opened this issue Jan 25, 2025 · 3 comments
Open

Project setup using wget or curl #184

moozzi opened this issue Jan 25, 2025 · 3 comments
Labels
enhancement New feature or request

Comments

@moozzi
Copy link
Member

moozzi commented Jan 25, 2025

Currently we are using wget to download wordlists while some people may use curl only.

file 'data/wordlists/raft-small-directories.txt' => 'data/wordlists' do
  sh 'wget -O data/wordlists/raft-small-directories.txt https://raw.githubusercontent.com/danielmiessler/SecLists/master/Discovery/Web-Content/raft-small-directories.txt'
end

I think we could check if wget is installed and if not use curl.

@postmodern
Copy link
Member

We could maybe use Ronin::Core::System.download, which tries to determine if wget or curl is installed, in the Rakefile?
https://github.com/ronin-rb/ronin-core/blob/v0.2.0/lib/ronin/core/system.rb#L112-L141

@postmodern postmodern added the enhancement New feature or request label Jan 25, 2025
@postmodern
Copy link
Member

We might want to think about creating our own set of rake helper methods (e.g. ronin/core/rake) that defines methods such as download so we don't have to type Ronin::Core::System.download.

@moozzi
Copy link
Member Author

moozzi commented Jan 27, 2025

We might want to think about creating our own set of rake helper methods (e.g. ronin/core/rake) that defines methods such as download so we don't have to type Ronin::Core::System.download.

Yeah, good idea

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants