From efb478945f4a557c5b77dc01381fa3116ea74df5 Mon Sep 17 00:00:00 2001 From: hahwul Date: Mon, 15 Aug 2022 23:39:39 +0900 Subject: [PATCH] Update migrate script and add erb script --- scripts/erb.rb | 46 ++++++++++++++++++++++++++++++++++++++++++++ scripts/migration.rb | 2 +- 2 files changed, 47 insertions(+), 1 deletion(-) create mode 100644 scripts/erb.rb diff --git a/scripts/erb.rb b/scripts/erb.rb new file mode 100644 index 0000000..081d65d --- /dev/null +++ b/scripts/erb.rb @@ -0,0 +1,46 @@ +require 'erb' + +template = %q{ +

+
+ +
+ + + + + + +

+A collection of cool tools used by Web hackers. Happy hacking , Happy bug-hunting + +## Family project +[![WebHackersWeapons](https://img.shields.io/github/stars/hahwul/WebHackersWeapons?label=WebHackersWeapons)](https://github.com/hahwul/WebHackersWeapons) +[![MobileHackersWeapons](https://img.shields.io/github/stars/hahwul/MobileHackersWeapons?label=MobileHackersWeapons)](https://github.com/hahwul/MobileHackersWeapons) + +## Table of Contents +- [WHW-Tools](https://whw-tools.hahwul.com) +- [Weapons](#weapons) +- [Awesome Bookmarklets](https://github.com/hahwul/WebHackersWeapons/tree/master/Bookmarklets) +- [Awesome Browser Extensions](https://github.com/hahwul/WebHackersWeapons/tree/master/Browser%20Extensions) +- [Awesome Burp and ZAP Extensions](https://github.com/hahwul/WebHackersWeapons/tree/master/Burp%20and%20ZAP%20Extensions) +- [Contribute](https://github.com/hahwul/WebHackersWeapons/blob/master/CONTRIBUTING.md) +- [Thanks to contributor](#thanks-to-contributor) + +## WHW-Tools +> Always use the latest tools 😎 + +`WHW-Tools` is tools web of `#WebHackersWeapons`. Easy install and Easy manage upgrade. Go to [WHW-Tools](https://whw-tools.hahwul.com/) + +## Weapons +<%= aa %> + +## Thanks to (Contributor) +I would like to thank everyone who helped with this project 👍😎 +![](/CONTRIBUTORS.svg) + +}.gsub(/^ /, '') +aa = 4414 + +markdown = ERB.new(template, trim_mode: "%<>") +puts markdown.result \ No newline at end of file diff --git a/scripts/migration.rb b/scripts/migration.rb index 0e2ad24..5ea0575 100644 --- a/scripts/migration.rb +++ b/scripts/migration.rb @@ -73,7 +73,7 @@ def migrate jsonfile, category # Save yaml file puts filename - #File.write("./data/#{filename}", yaml_data) + #File.write("./weapons/#{filename}", yaml_data) end end