Skip to content

Instantly share code, notes, and snippets.

View rudSarkar's full-sized avatar
:electron:
Negatively Charged

Rudra Sarkar rudSarkar

:electron:
Negatively Charged
View GitHub Profile
@rudSarkar
rudSarkar / xss-image.svg
Created August 12, 2019 18:28
SVG Image XSS File
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@rudSarkar
rudSarkar / git_branch_delete.sh
Created June 17, 2024 17:43
delete branch except main
git branch | grep -v 'main' | xargs git branch -d
#!/bin/bash
# Specify the directory containing CR2 files
input_dir="."
# Check if the directory exists
if [ ! -d "$input_dir" ]; then
echo "Directory '$input_dir' does not exist."
exit 1
fi
id: apk-recon
info:
name: APK Recon
author: nullenc0de
severity: info
tags: android,file
file:
- extensions:
package main
import "fmt"
func main() {
var name string
var age int
var is_active bool // true false
import java.util.*;
class Edge implements Comparable<Edge> {
int source, destination, weight;
public int compareTo(Edge edge) {
return this.weight - edge.weight;
}
}
import java.util.*;
class Graph {
private int V; // Number of vertices
private List<List<Edge>> adjacencyList;
Graph(int V) {
this.V = V;
adjacencyList = new ArrayList<>(V);
for (int i = 0; i < V; ++i)
@rudSarkar
rudSarkar / convert-heic-to-png.sh
Created May 30, 2023 07:25
Convert HEIC format to PNG using onliner
find . -name "*.HEIC" -exec sh -c 'sips -s format png "$1" --out "$(basename "$1" .HEIC).png"' _ {} \;
@rudSarkar
rudSarkar / main.go
Created May 27, 2023 14:51
snoopy.htb LFI
package main
import (
"archive/zip"
"fmt"
"io"
"net/http"
"net/url"
"os"
)
@rudSarkar
rudSarkar / main.go
Created February 26, 2023 21:26
Read bagel.htb:5000 phil user id_rsa
package main
import (
"fmt"
"log"
"github.com/gorilla/websocket"
)
func main() {