Skip to content

Instantly share code, notes, and snippets.

View klebertiko's full-sized avatar

Kleber Almeida Toyota klebertiko

View GitHub Profile
@klebertiko
klebertiko / pentest-arsenal.md
Created May 1, 2023 06:19 — forked from heinthanth/pentest-arsenal.md
Penetration Testing Tools for MacOS X
  • [] radare2 - brew
  • [] cutter (radare2) - brew cask
  • [] ghidra - brew cask
  • [] ida-free - brew cask
  • [] nmap - brew
  • [] proxychains - brew (https://gist.github.com/allenhuang/3792521)
  • [] sqlmap - brew
  • [] powershell - brew cask
  • [] impacket scripts - git
  • [] powersploit - git
@klebertiko
klebertiko / sqsQueueUtil.go
Created May 8, 2019 20:01 — forked from p4tin/sqsQueueUtil.go
Simple Utility to access Amazon SQS (or local ElasticMQ) using Go
package main
import (
"fmt"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/session"
"github.com/aws/aws-sdk-go/service/sqs"
"os"
"flag"
)
@klebertiko
klebertiko / event.kt
Created April 30, 2019 17:28 — forked from orangy/event.kt
C#-style events in Kotlin
class Event<T> {
private val handlers = arrayListOf<(Event<T>.(T) -> Unit)>()
fun plusAssign(handler: Event<T>.(T) -> Unit) { handlers.add(handler) }
fun invoke(value: T) { for (handler in handlers) handler(value) }
}
val e = Event<String>() // define event
fun main(args : Array<String>) {
e += { println(it) } // subscribe
@klebertiko
klebertiko / InfiniteRetry.kt
Created April 3, 2019 16:51 — forked from ccampo133/InfiniteRetry.kt
Infinite retry with exponential backoff in Kotlin using co-routines
/**
* Copyright 2018 C.J. Campo
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to
* deal in the Software without restriction, including without limitation the
* rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
* sell copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
@klebertiko
klebertiko / stackwalker.txt
Last active December 12, 2017 17:20
StackWalker
StackWalker.getInstance().walk(stream ->
stream.filter(frame -> frame.getClassName().contains("br.com.caelum")
))
.collect(toList());
@klebertiko
klebertiko / mvn clean compile result
Last active January 27, 2017 16:27
OWASP Dependency Check
[INFO] Analysis Started
[INFO] Finished Archive Analyzer (0 seconds)
[INFO] Finished File Name Analyzer (0 seconds)
[INFO] Finished Jar Analyzer (0 seconds)
[INFO] Finished Central Analyzer (2 seconds)
[INFO] Finished Dependency Merging Analyzer (0 seconds)
[INFO] Finished Version Filter Analyzer (0 seconds)
[INFO] Finished Hint Analyzer (0 seconds)
[INFO] Created CPE Index (1 seconds)
[INFO] Finished CPE Analyzer (2 seconds)
@klebertiko
klebertiko / mvn clean compile
Created January 27, 2017 16:03
OWASP Dependency Check
[INFO] Checking for updates
[INFO] NVD CVE requires several updates; this could take a couple of minutes.
[INFO] Download Started for NVD CVE - 2002
[INFO] Download Started for NVD CVE - 2003
[INFO] Download Started for NVD CVE - 2004
[INFO] Download Complete for NVD CVE - 2003 (16506 ms)
[INFO] Download Started for NVD CVE - 2005
[INFO] Processing Started for NVD CVE - 2003
[INFO] Processing Complete for NVD CVE - 2003 (13580 ms)
[INFO] Download Complete for NVD CVE - 2004 (30204 ms)
@klebertiko
klebertiko / settings.xml
Last active January 27, 2017 15:41
Owasp Dependency Check
<profiles>
<profile>
<id>meuPerfil</id>
<repositories>
<repository>
<id>releases</id>
<url>http://artifactory.meu/artifactory/libs-release</url>
<releases>
<enabled>true</enabled>
<updatePolicy>never</updatePolicy>
@klebertiko
klebertiko / pom.xml
Last active January 27, 2017 15:51
OWASP Dependency Check
<build>
<plugins>
<!-- OWASP Dependency Check Analysis -->
<plugin>
<groupId>org.owasp</groupId>
<artifactId>dependency-check-maven</artifactId>
<version>1.4.5</version>
<executions>
<execution>
<goals>
@klebertiko
klebertiko / pom.xml
Created November 29, 2016 21:22
Verificando bugs de segurança com Maven + FindSecBugs
<threshold>Low</threshold> <!-- low é para auditores de seguranca -->