Skip to content

Instantly share code, notes, and snippets.

View olmedocr's full-sized avatar
🎯
Focusing

Raul Olmedo olmedocr

🎯
Focusing
View GitHub Profile
@olmedocr
olmedocr / MediaContainerModel.swift
Created April 15, 2022 10:09
codable model with struct to have more control over the encoding/decoding
struct MediaContainerModel<Type: Decodable & MediaContainerizable>: Decodable {
var title1: String
var content: [Type]
struct CodingKeys: CodingKey {
init?(intValue: Int) {
return nil
}
init(stringValue: String) {
@olmedocr
olmedocr / f680.md
Last active January 28, 2021 09:23
Instrucciones para obtener las claves GPON, SIP y de administración del router f680 v2 y v4 con firmware T18

Pre requisitos: USB formateado en NTFS Live CD de alguna distro de linux (probe con macOS, pero no parece funcionar) f680 v2 o v4 con version de firmware T18 o anterior (no se si funcionará con futuras versiones)

Al lio: Formateamos el USB en NTFS y desde linux creamos un symlink con el siguiente comando: ln -s /var/samba/lib/smb.conf .

Lo enchufamos al USB del router y nos metemos en la interfaz web, en el apartado de aplicaciones nos aseguramos de que el servidor samba este activado y funcionando, ahi mismo encontraremos las instrucciones para conectarnos

@olmedocr
olmedocr / setup.sh
Created November 13, 2019 18:58
Script to setup my mac from scratch, based on my preferences and usage
#!/usr/bin/env zsh
#############################################################################
# #
# Begin SSH key generation #
# #
#############################################################################
echo "Creating an SSH key..."
ssh-keygen -t rsa -b 4096 -C "20819857+olmedocr@users.noreply.github.com"
@olmedocr
olmedocr / olmedocr-stars.md
Last active April 17, 2019 18:20
A Gist with all my starred repositories grouped by topic
@olmedocr
olmedocr / reaver_for_dummies.sh
Last active April 6, 2018 11:39
Script to launch reaver/PixieWPS attacks with minimal user interaction. For script kiddies, by a script kiddie.
#!/usr/bin/env bash
# Script to launch reaver/PixieWPS attacks with minimal user interaction. For script kiddies, by a script kiddie
# Copyright (C) 2018 Raul Olmedo - All Rights Reserved
# Do whatever you want with this
# Last revised 6/4/2018
FLAG_END=0
airmon-ng start wlan0
echo "Listing nearby networks, please wait 10 seconds"
timeout 10s wash -i wlan0mon > wps_all_networks.txt