Skip to content

Instantly share code, notes, and snippets.

View capsulecorplab's full-sized avatar

Sean Marquez capsulecorplab

View GitHub Profile

Recon and Attack Vectors from My Logs

This document contains excerpts from my web server logs collected over a period of 7 years that shows various kinds of recon and attack vectors.

There were a total of 37.2 million lines of logs out of which 1.1 million unique HTTP requests (Method + URI) were found.

$ sed 's/^.* - - \[.*\] "\(.*\) HTTP\/.*" .*/\1/' access.log > requests.txt
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
from selenium.webdriver import ActionChains
from time import sleep
driver = webdriver.Chrome()
driver.get("https://ytcutter.com")
elem = driver.find_element_by_name("url")
elem.send_keys("https://www.youtube.com/watch?v=eyU3bRy2x44")
elem.send_keys(Keys.RETURN)
elem = driver.find_element_by_name("url")
@gmolveau
gmolveau / firefox_dark_background.md
Last active May 24, 2024 04:22
Firefox dark background / theme for new tab and loading screen

Firefox Dark Background

  • How to change the background on Firefox to a dark one on new tab / loading screen ?

Procedure

  • Type about:config in the URL bar
  • Search toolkit.legacyUserProfileCustomizations.stylesheets and double-click the field to set it to true
  • Type about:support in the URL bar
  • Look for Profile folder field and click on the open button next to it.
@jtpaasch
jtpaasch / Qemu-quickstart.md
Last active January 29, 2024 23:18
A quick cheatsheet/tutorial for using QEMU (on macOS, but should work on Linux too).
@omgreenfield
omgreenfield / gtd.md
Last active April 23, 2024 19:52
Getting things done (GTD)

Getting Things Done (GTD)

Recently, I started listening to the David Allen's audio book, "Getting Things Done: The Art of Stress-Free Productivity". In only a few chapters, this audio book has inspired me to completely revamp how I "get things done".

While I haven't heard the entire GTD system or even fully grasped everything I've heard, here are a few concepts that have already helped me become more productive at work and helped my family become more productive at home.

Get it out of your head

TLDR: always put actions, ideas, and reminders in a place that gets them out of your head but always in reach.

@rnwolf
rnwolf / spacemacs-cheshe.md
Last active June 26, 2019 05:54 — forked from robphoenix/spacemacs-cheshe.md
Spacemacs Cheat Sheet

Useful Spacemacs commands

  • SPC q q - quit
  • SPC w / - split window vertically
  • SPC w - - split window horizontally
  • SPC 1 - switch to window 1
  • SPC 2 - switch to window 2
  • SPC w d - delete current window
  • SPC TAB - switch to previous buffer
  • SPC b b - switch buffers
@cynful
cynful / .vimrc
Last active April 24, 2020 05:17
basic vim configurations
" props to https://dougblack.io/words/a-good-vimrc.html
syntax on " enable syntax processing
set tabstop=4 " number of visual spaces per TAB
set softtabstop=4 " number of spaces in tab when editing
set expandtab " tabs are spaces
set number " show line numbers
set showcmd " show command in bottom bar
set cursorline " highlight current line
filetype indent plugin on " load filetype-specific indent files
@briandominick
briandominick / ajyl-docstack-intro.adoc
Last active April 22, 2020 16:03
Introducing the AJYL Docstack

AJYL DocStack

AsciiDoc

Jekyll

@plembo
plembo / RPIwithQEMU.md
Last active May 16, 2024 08:38
Emulating a Raspberry Pi with QEMU

Emulating a Raspberry Pi with QEMU

Goal: Emulate a Raspberry Pi with QEMU in order to run the Raspbian O/S (based on Debian Linux).

The current setup is not ideal. For one thing, the maximum RAM allowed using the "versatile-pb" firmware is 256 Mb. In addition, only the most basic peripherals, a keyboard and mouse, are supported.

A number of articles have been written on this topic. Most are outdated, and the few recent ones are missing key information.

@blackcater
blackcater / diagrams.md
Created July 6, 2018 16:45
Markdown Diagrams

Diagrams

Markdown Preview Enhanced supports rendering flow charts, sequence diagrams, mermaid, PlantUML, WaveDrom, GraphViz, Vega & Vega-lite, Ditaa diagrams. You can also render TikZ, Python Matplotlib, Plotly and all sorts of other graphs and diagrams by using Code Chunk.

Please note that some diagrams don't work well with file exports such as PDF, pandoc, etc.

Flow Charts

This feature is powered by flowchart.js.