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
<# | |
T1113 - Screen Capture | |
T1056 - Input Capture | |
Capture mouse cursor position and buttons actions | |
Take a screenshot for each mouse click and save it in $Directory, works on multiple Screens | |
From PurpleTeam repo https://github.com/mthcht/Purpleteam/blob/main/Simulation/Windows/System/get_cursor_position_and_capture_screenshot_on_mouse_click.ps1 | |
#> | |
$Directory = "$env:USERPROFILE\Pictures\Saved Pictures" | |
$CaptureQuality = 80 |
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
{ | |
"robotcode.robot.variables": { | |
"EXECDIR": "${workspaceFolder}", | |
"ROOT": "${workspaceFolder}" | |
}, | |
"robotcode.robot.outputDir": "${workspaceFolder}/results", | |
"robotcode.debug.attachPython": true, | |
"robotcode.analysis.findUnusedReferences": true, | |
"robotcode.analysis.progressMode": "simple", | |
"robotcode.analysis.diagnosticMode": "workspace", |
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
document.getElementById('input-message').validity.valueMissing; //Return if element is valid ou not | |
document.getElementById('input-message').validationMessage; //return the error message |
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
# Specify the Dart SDK base image version using dart:<version> (ex: dart:2.12) | |
FROM dart:stable AS build | |
# Resolve app dependencies. | |
WORKDIR /app | |
COPY pubspec.* ./ | |
RUN dart pub get | |
# Copy app source code and AOT compile it. | |
COPY . . |
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 csv | |
import os | |
from robot.api.deco import keyword, library | |
from robot.libraries.BuiltIn import BuiltIn | |
@library(scope='GLOBAL') | |
class CSVLibrary(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
adb help // List all comands | |
start app: | |
adb -P 5037 -s emulator-5554 shell am start-activity -W -n <package>/<activity> -S -a android.intent.action.MAIN -c android.intent.category.LAUNCHER -f 0x10200000 | |
adb -P 5037 -s emulator-5554 shell am start-activity -W -n com.android.chrome/com.google.android.apps.chrome.Main -S -a android.intent.action.MAIN -c android.intent.category.LAUNCHER -f 0x10200000 | |
== Adb Server | |
adb kill-server | |
adb start-server |
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
# Comandos | |
# | |
# runner.sh <AMBIENTE> <COM PROMOÇÂO | SEM PROMOÇÂO> | |
# runner.sh 2 no_promo | |
# runner.sh 2 promo | |
# | |
# Variavel para controle para verificar se vai ser executado com ou sem promoção | |
promo=0 |
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
{ | |
"image_server": "https://image.prntscr.com/image/", | |
"recipes": [ | |
{ | |
"id": "1a9a007a-7611-458f-ad87-6af0e1cc408b", | |
"item_name": "Portal para Vilarejo", | |
"item_image": "v-OdevanQkyyC3jRZO0vKw", | |
"recipe_image": "", | |
"recipe_ingredients": [] | |
}, |
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 robot.libraries.BuiltIn import BuiltIn | |
import os.path | |
from pathlib import Path | |
ROBOT_LISTENER_API_VERSION = 2 | |
def start_test(name, attributes): | |
separator = BuiltIn().get_variable_value('${/}') | |
output = BuiltIn().get_variable_value('${OUTPUT_DIR}') | |
execd = BuiltIn().get_variable_value('${EXECDIR}') |
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 string | |
alfabetoMinusculo = string.ascii_lowercase | |
alfabetoMaiusculo = string.ascii_uppercase | |
def encode(message, decode=False): | |
result = '' | |
for l in message: | |
if l in alfabetoMinusculo or l in alfabetoMaiusculo: | |
posicao = getLetterPosition(l) |
NewerOlder