This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/zsh | |
# cve_info | |
# Docs: https://nvd.nist.gov/developers/start-here | |
# Get your api key here: https://nvd.nist.gov/developers/request-an-api-key | |
# Get CVE details right in your terminal. Sometimes I'm in the need of looking up some CVE information and copy and | |
# pasting each individual CVE into the web browser is too slow. Specially when dealing with nmap output or nuclei recently | |
# added CVE templates. This script aims to speed up the CVE details extraction. It accepts input from stidn, a file or | |
# as arguments. It's still a very informal script that gets the job done and a lot of optimizations can be made. Also |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Switch { | |
private Engine engine; | |
private boolean on; | |
public Switch(Engine engine) { | |
this.engine = engine; | |
this.on = false; | |
} | |
public boolean switchOn() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
try: | |
sueldo = float(input("Intoduce tu sueldo: ")) | |
except ValueError: | |
print("Datos incorrecto") | |
quit() | |
impuesto = 0 | |
if sueldo == 0: | |
print("Nada a que aplicarle impuesto") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
IP="127.0.0.1" | |
PORT="8877" | |
SHARED_SECRET="shared secret" | |
OPENSSL="/usr/local/opt/libressl/bin/openssl" | |
OPENSSL_CMD="$OPENSSL enc -a -A -aes-256-gcm" | |
while IFS= read -r MSG; do | |
echo "$MSG" | $OPENSSL_CMD -e -k "$SHARED_SECRET" | |
echo |