Skip to content

Instantly share code, notes, and snippets.

View bbriggs's full-sized avatar
🤢
On a break. Probably for a long time.

Bren Briggs bbriggs

🤢
On a break. Probably for a long time.
View GitHub Profile
@bbriggs
bbriggs / certificate.yaml
Created September 1, 2021 22:05
Privatebin as a subdirectory with istio
apiVersion: cert-manager.io/v1
kind: Certificate
metadata:
name: fraq-tls
namespace: istio-system
spec:
issuerRef:
name: letsencrypt-prod
kind: ClusterIssuer
secretName: fraq-tls
on: [pull_request]
name: Test
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: 1.14.x
@bbriggs
bbriggs / CVE-2020-1350.yaml
Created July 14, 2020 21:28
Ansible task for CVE-2020-1350 mitigation
- name: Mitigate CVE-2020-1350
hosts: all
tasks:
- name: Fix registry key to mitigate CVE-2020-1350
win_regedit:
path: HKLM:\SYSTEM\CurrentControlSet\Services\DNS\Parameters
name: TcpReceivePacketSize
data: 0xFF00
type: dword
@bbriggs
bbriggs / transfer.fish
Created December 6, 2019 21:20 — forked from nl5887/transfer.fish
Bash and zsh alias for transfer.sh. Transfers files and directories to transfer.sh.
function transfer
if test (count $argv) -eq 0
echo "No arguments specified. Usage:\necho transfer /tmp/test.md\ncat /tmp/test.md | transfer test.md"
return 1
end
## get temporarily filename, output is written to this file show progress can be showed
set tmpfile ( mktemp -t transferXXX )
## upload stdin or file

Feature: Remind Users to Register if they have not already

Description

The primary channel in secops is now +R. New users may not be immediately aware that they need to register in order to join the channel. Bitbot should have a module that checks a user's registration status and prompts them to register in order to join #main (or any official channels)

Logic

This trigger should send under the following circumstances:

ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQCz+735fOtNh1wlKSbBgcIHl4zzqYFkMAIulUsLsLpd/PRgdZ0Cg96U2nc5gqdCY9+fHeFl3y0j7F47K96okpuHCamo3Tww5K21dnwwN5h3B/oFit5vGLv1psHKBIKLy3pImMC4uIjqyKd0rrrUZaQ3/CnyeqRzTK75LqTLALh8K+Wdk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bzrfFxHnxQknELwyCNz9zGBvB3bSvhGYkCG2lPiy/rPghh1pc3b16c6qQtl598vEaAspfyXw99BPCKbAZM7KqbRteNjcaBD/ngyWYWoxrB/x/1kMIpzL6lKWXEke2d/89e9NcHlsD95xG0YP5tCRtbGk5E+slC3QXszfuo+zO9loMZmayL7eZ4j5a3lkLQYQS1+hqaeMBXwpl3m0AQMFU9QQocQ== fraq

!gh verb [args...]

  • list
    • repos
      • user
      • org
    • issues
      • user
        • open
        • closed
  • repo

Your field guide to getting involved in #hack weekend

How do I...

Register

Sign up for hack here! Registration takes just a minute (you can even use Facebook or Github to make it superfast!)

Join or submit a project