Skip to content

Instantly share code, notes, and snippets.

View HarshitRuwali's full-sized avatar
👨‍💻
Learning New Things

Harshit Ruwali HarshitRuwali

👨‍💻
Learning New Things
View GitHub Profile
@HarshitRuwali
HarshitRuwali / insta-download.py
Created September 30, 2020 12:11
Download the instagram videos and images easily.
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import sys
from datetime import datetime
import requests
from tqdm import tqdm
import re
def download():
@HarshitRuwali
HarshitRuwali / brute-force.py
Created October 3, 2020 21:33
Brute force the password from a given set of word-list.
import re
import requests
# from __future__ import print_functions
def open_resources(file_path):
return [item.replace("\n", "") for item in open(file_path).readlines()]
host = 'http://10.10.10.191'
login_url = host + '/admin/login'

Keybase proof

I hereby claim:

  • I am harshitruwali on github.
  • I am harshitruwali (https://keybase.io/harshitruwali) on keybase.
  • I have a public key ASAsBnh00hcwkv58fIeytFKQ5K6mkX_FzExHPJgsYNTnpAo

To claim this, I am signing this object:

@HarshitRuwali
HarshitRuwali / VMWare_Fusion_Export.md
Last active December 20, 2020 06:13
Export the VMWare Fusion VMs to ova or ovf.

Exporting VMWare Fusion VMs

Firstly make sure that you have powered off your VM.

Now run the following commands.

cd /Applications/VMware\ Fusion.app/Contents/Library/VMware\ OVF\ Tool/

This takes us to the OVF tool in VMWare Fusion app(its dosnt have GUI support). Its same for all Mac users.

@HarshitRuwali
HarshitRuwali / check.sh
Last active March 27, 2021 17:01
shasum checker bash script
#!/bin/bash
if [ "$1" == "-h" ] || [ -z "$1" ]
then
echo "$(basename "$0") [-h] [-f file] [-a algo] [-c hash] -- script to calculate and verify the shasums of the passed file
where:
-h show this help text
-f pass the file name
-a pass the algorithm to perform eg, 1 or 256 or 512
@HarshitRuwali
HarshitRuwali / digispark.md
Created April 10, 2021 11:52
Run digispark on mac

The issue with digispark attiny85 was that it was detectig(the light was on) with usb adapter but I was not able to upload the programs in it, IDE was not at all detecting the hardware. And the boarb was working fine in the windows environment.

So the following commands worked for me:

cd ~/Library/Arduino15/packages/digistump/tools/micronucleus/2.0a4/
chmod a+wx launcher
chmod a+wx micronucleus
@HarshitRuwali
HarshitRuwali / brigdes-tor-mac.md
Last active April 5, 2025 09:51
Using TOR obsf4 bridges from torrc for Mac's.

Install tor via HomeBrew and start the tor serivce.

brew install tor && brew services start tor

And to use obsf4 proxy we need to install its library/ Use HomeBrew for installation of the library.

brew install obfs4proxy
@HarshitRuwali
HarshitRuwali / obsidian-docx.md
Last active September 12, 2025 05:48
Export Obsidian/Markdown notes to docx

Firstly use obsidian-export to export the Obsidian Vault/Notes to regular markdown files.

Once after exporting in the regular markdown format use the following script to convert the markdown to docx. This will require Pandoc.

pandoc md-file.md \
-o out-docx-file.docx \
--from markdown+yaml_metadata_block+raw_html \
--top-level-division=chapter
@HarshitRuwali
HarshitRuwali / badchars.py
Created June 3, 2021 17:15
Buffer Overflow exploit files
import socket
ip = ""
port =
prefix = ""
offset = 634
overflow = "A" * offset + "B"*4
retn = ""
padding = ""
@HarshitRuwali
HarshitRuwali / brightness.sh
Last active July 23, 2021 08:02
Wrapper to change brightness of laptop's display in linux using xrandr.
#!/bin/bash
if [ "$1" == "-h" ] || [ -z "$1" ]
then
echo " Set the brightness of the primary display i.e. laptop's one.
Usage: $(basename "$0") [-h] [-b brightness_value]
where:
-h show this help text