Skip to content

Instantly share code, notes, and snippets.

View ShubhamRasal's full-sized avatar
💻
Cooking software

Shubham Rasal ShubhamRasal

💻
Cooking software
View GitHub Profile
@ShubhamRasal
ShubhamRasal / report.py
Created June 9, 2023 11:12 — forked from Huntinex/report.py
Automatic bug bounty report generator
import poe, sys
client = poe.Client("<POE_API_KEY_HERE>")
title=sys.argv[1]
path=sys.argv[2]
more=""
if len(sys.argv) > 3:
more="\" and here is more information: "+sys.argv[3]
message="""generate a bug bounty report for me (hackerone.com), the title of the bug is """+title+""" and the vulnerability path is \""""+path+more+"""
@ShubhamRasal
ShubhamRasal / report.py
Created June 9, 2023 11:12 — forked from Huntinex/report.py
Automatic bug bounty report generator
import poe, sys
client = poe.Client("<POE_API_KEY_HERE>")
title=sys.argv[1]
path=sys.argv[2]
more=""
if len(sys.argv) > 3:
more="\" and here is more information: "+sys.argv[3]
message="""generate a bug bounty report for me (hackerone.com), the title of the bug is """+title+""" and the vulnerability path is \""""+path+more+"""
- name: email
type: regex
regex:
- '([a-zA-Z0-9._-]+@[a-zA-Z0-9._-]+\.[a-zA-Z0-9_-]+)'
- '([a-zA-Z0-9+._-]+@[a-zA-Z0-9._-]+\.[a-zA-Z0-9_-]+)'
- name: phone
type: regex
regex:
- '\d{3}-\d{8}|\d{4}-\d{7}'
@ShubhamRasal
ShubhamRasal / getopts.sh
Created March 2, 2023 08:09 — forked from rosterloh/getopts.sh
An example of how to use bash getopts
#!/bin/bash
######################################################################
#This is an example of using getopts in Bash. It also contains some
#other bits of code I find useful.
#Author: Linerd
#Website: http://tuxtweaks.com/
#Copyright 2014
#License: Creative Commons Attribution-ShareAlike 4.0
#http://creativecommons.org/licenses/by-sa/4.0/legalcode
@ShubhamRasal
ShubhamRasal / .env
Created February 16, 2023 04:38
Deploy metabase with Caddy using Docker compose
# =====================================
# Database environment
#
DB_TYPE=mysql
DB_HOST=
DB_NAME=
DB_USER=
DB_PASSWORD=
@ShubhamRasal
ShubhamRasal / main.go
Created January 19, 2023 17:41
nuclie-as-sdk
package main
import (
"context"
"fmt"
"log"
"os"
"path"
"time"
@ShubhamRasal
ShubhamRasal / Install-docker-ansible.yml
Last active January 18, 2021 09:35
Install docker using ansible
- hosts: myserver
become: true
tasks:
- debug:
var: ansible_os_family
- name: "create yum repository for docker"
yum_repository:
name: docker-repo
description: "repo for docker"
@ShubhamRasal
ShubhamRasal / com.mycicd.plist
Created January 13, 2021 09:12
How to connect mac machine as slave to jenkins. create this file at ~/Library/LaunchAgents/com.mycicd.plist then launchctl load com.mycicd.plist
<plist>
<dict>
<key>Label</key>
<string>com.mycicd.jenkins-agent</string>
<key>UserName</key>
<string>admin</string>
<key>RunAtLoad</key>
<true/>
<key>KeepAlive</key>
<true/>
@ShubhamRasal
ShubhamRasal / main.yml
Created December 24, 2020 18:50
configure webservre and load balancer
- name: "Webserver"
hosts: creatorsbyheart_webservers
vars_files:
- webservers/vars.yml
tags:
- "webservers"
become: true
tasks:
- name: "Installation"