Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ruby:2.2
FROM ruby:2.6

# Install apt based dependencies required to run Rails as
# well as RubyGems. As the Ruby image itself is based on a
Expand Down
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ gem 'devise-bootstrap-views'
# gem 'capistrano-rails', group: :development

group :development, :test do
gem 'sqlite3'
gem 'sqlite3', '~> 1.3.6'
# Call 'byebug' anywhere in the code to stop execution and get a debugger console
gem 'byebug'
end
Expand Down
238 changes: 238 additions & 0 deletions Instagram.html

Large diffs are not rendered by default.

61 changes: 41 additions & 20 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,43 +14,64 @@ Fuzzapi is rails application which uses API_Fuzzer and provide UI solution for g
# Setup

1. Install ruby in your machine either using `rvm` or `rbenv`
Steps to install RVM:
1) Open Your Terminal
2) Enter following commands:
`gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3`

`\curl -sSL https://get.rvm.io | bash -s stable --ruby`

3) If both commands works fine , enjoy your ruby coding withRVM else if it shows some error like:
"Error running 'requirements_debian_libs_install gawk libyaml-dev libsqlite3-dev autoconf libgdbm-dev libncurses5-dev automake libtool', showing last 15 lines of /home//.rvm/log/1433925827_ruby-2.2.1/package_install_gawk_libyaml-dev_libsqlite3-dev_autoconf_libgdbm-dev_libncurses5-dev_automake_libtool.log"

4) Then type this commands:
`sudo apt-get install build-essential openssl libreadline6-dev curl git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt-dev autoconf libc6-dev ncurses-dev automake libtool bison subversion pkg-config`

2. Clone the repository into your localmachine
5) Now enter,
`\curl -sSL https://get.rvm.io | bash -s stable --ruby`

3. `cd /path/Fuzzapi/bin`, move to Fuzzapi directory
6) If everthing works fine then enter this:
`source /usr/local/rvm/scripts/rvm`

7) Type "rvm" to make sure everthing is going perfectly

8) now we need to install ruby-2.3.0, as this tool is compatible to only 2.3.0. so follow this commands,
`rvm pkg install openssl #now while installing you will see final directory of install open ssl like this "Installing openssl to /usr/local/rvm/usr" note this directory", you will need this`

`rvm remove 2.3.0 #if you installed`

`rvm install 2.3.0 --with-openssl-dir=/usr/local/rvm/usr #After "dir=" is your openssl installation directory`

4. `bundle install` to install the gem dependencies of the application. (if you are getting some error related to any package search for its dependent packages and install them first. For example if error is related to pg `sudo apt-get install libpq-dev` then `gem install pg -v '0.18.4'`. Mostly people get errors related to nokogiri so here are the commands to resolve `sudo apt-get install build-essential patch` , `sudo apt-get install ruby-dev zlib1g-dev liblzma-dev` , `gem install nokogiri -v '1.6.8.1'`
`rvm use 2.3.0 #Evrerytime you need to use while you shift to new tab of terminal or you open new window of terminal`

9) `cd /path/Fuzzapi/bin`, move to Fuzzapi directory

5. `rake db:migrate` to creates tables, migrations etc.
10) `bundle update` & then to cross-check `bundle install` to install the gem dependencies of the application. (if you are getting some error related to any package search for its dependent packages and install them first. For example if error is related to pg `sudo apt-get install libpq-dev` then `gem install pg -v '0.18.4'`. Mostly people get errors related to nokogiri so here are the commands to resolve `sudo apt-get install build-essential patch` , `sudo apt-get install ruby-dev zlib1g-dev liblzma-dev` , `gem install nokogiri -v '1.6.8.1'`

6. `rails s` to run the server
11) `rake db:migrate` to creates tables, migrations etc.

7. Open `http://localhost:3000` in browser which should point to the application url
12) Close everything and go to Fuzzapi/bin folder. "Dont Forget to type `rvm use 2.3.0`"

8. If u get redis server error, install and start the service separately. (install: `sudo apt-get -y install redis-server`, check the status: `sudo service redis-server status`)
13) open three tabs of terminal "Dont Forget to type `rvm use 2.3.0`" on all three tables first

9. Close everything and go to Fuzzapi/bin folder.
14) `redis-server` in first tab, Note: If redis-server is missing then install by simply typing `apt-get install -y redis-server`

10. open three tabs of terminal
15) In second tab `bundle exec sidekiq -r urFuzzAPIPath`

11. `redis-server` in first tab

12. `bundle exec sidekiq -r urFuzzAPIPath` in second tab

13. `rails s` in third tab then visit and scan localhost:3000
16) In third tab `rails s` then visit `localhost:3000` and scan your sites

Fuzzapi comes with `Docker` to simplify installation processing. Following commands will setup application using `Docker`.

1. Clone the repository into your local machine
1) Clone the repository into your local machine

2. `cd /path/Fuzzapi`, move to Fuzzapi directory
2) `cd /path/Fuzzapi`, move to Fuzzapi directory

3. Install Docker in your local machine
3) Install Docker in your local machine

4. Run `docker-compose build` to build the image locally.
4) Run `docker-compose build` to build the image locally.

5. Run `docker-compose up` to run the server.
5) Run `docker-compose up` to run the server.

6. Open `http://localhost:3000` in browser which should point to the application url
6) Open `http://localhost:3000` in browser which should point to the application url

Fuzzapi uses [API_Fuzzer](https://github.com/lalithr95/API_Fuzzer) gem.
1 change: 0 additions & 1 deletion app/assets/stylesheets/application.scss
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
* defined in the other CSS/SCSS files in this directory. It is generally better to create a new
* file per style scope.
*
*= require devise_bootstrap_views
*= require_tree .
*= require_self
*/
Expand Down