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
| #!/bin/bash | |
| #Configura host para execu莽茫o do Flashman via Docker | |
| VERSAO=2024021501 | |
| #2024021501 - Atualizado o portainer agent para 2.19.4 | |
| #2023112601 - Adicionando parametro de use-vc para uso de TCP em resolucoes de DNS no host | |
| #2023082401 - Adicionando trecho para silenciamento dos logs de erro do docker | |
| #2023072105 - Movendo o trecho que habilita o ufw para antes de bloquear as portas [5]7547. o comando de deny retorna erro quando ufw est谩 disabled | |
| #2023072104 - Consertando if que checa se rede ingress j谩 existe |
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
| /* | |
| Realiza a configura莽茫o inicial para dispositivos da TP-Link. | |
| Se o dispositivo estiver com a tag NOT_PROVISION o script n茫o ser谩 executado. | |
| Se o usu谩rio do PPPOE estiver correto, o script n茫o ser谩 executado. | |
| */ |
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
| #!/usr/bin/env node | |
| let https = require( "https" ); | |
| const token = "aqui coloca o token da api"; | |
| const options = { | |
| headers: { |
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
| ## 1 | |
| qemu-system-x86_64 \ | |
| -device e1000,netdev=net0,mac=50:b8:15:00:01:00 -netdev tap,id=net0,ifname=vunl1_0,script=no \ | |
| -device e1000,netdev=net1,mac=50:b8:15:00:01:01 -netdev tap,id=net1,ifname=vunl1_1 ,script=no \ | |
| -device e1000,netdev=net2,mac=50:b8:15:00:01:02 -netdev tap,id=net2,ifname=vunl1_2,script=no \ | |
| -device e1000,netdev=net3,mac=50:b8:15:00:01:03 -netdev tap,id=net3,ifname=vunl1_3,script=no \ | |
| -nographic -chardev socket,id=serial0,path=/opt/unetlab/tmp/1/1/console.sock,server,nowait \ | |
| -serial chardev:serial0 \ | |
| -chardev socket,id=monitor,path=/opt/unetlab/tmp/1/1/monitor.sock,server,nowait \ | |
| -monitor chardev:monitor \ |
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
| echo "'${VENDOR}'$(cat /dev/random | tr -dc '0-9A-F' | head -c 100000)" > file00.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
| import requests | |
| import re | |
| import hashlib | |
| router_uri = 'https://192.168.1.1' | |
| password = "abcd1234" | |
| def hash(cleartext): | |
| m = hashlib.md5() | |
| m.update(cleartext.encode('utf-8')) |
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 requests | |
| import urllib3 | |
| import xmltodict | |
| urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning) | |
| data = "<soap-env:Envelope xmlns:soap-env=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\"" \ | |
| "xmlns:cwmp=\"urn:telekom-de.totr64-2-n\"><soap-env:Body><cwmp:GetParameterValues xmlns:cwmp=\"urn:dslforum-org:cwmp-1-0\"><cwmp:ParameterNames length=\"1\">" \ | |
| "<xsd:string>Device.IP.Interface.4.IPv4Address.1.IPAddress</xsd:string></cwmp:ParameterNames></cwmp:GetParameterValues></soap-env:Body></soap-env:Envelope>" |
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 dataclasses | |
| import logging | |
| import socket | |
| import threading | |
| import urllib.request | |
| from typing import List | |
| import inflection as inflection | |
| from datetime import datetime | |
| import coloredlogs |
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
| /* | |
| Start upgrading x routers per day, double that number until max router upgrades reached. | |
| Eg: With starting upgrade number of 200 routers, total of 5000 and max per day of 1000: | |
| Day 1 upgrade 200 routers, | |
| Day 2 uprade 400 routers, | |
| Day 3 upgrade 800 routers, | |
| Day 4 upgrade 1000 routers | |
| Day 5 upgrade 1000 routers | |
| Day 6 upgrade 1000 routers |
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
| #cloud-config | |
| # vim: syntax=yaml | |
| # allow change hostname when false | |
| preserve_hostname: false | |
| # change hostname | |
| hostname: {name}% | |
| # setup /etc/hosts | |
| manage_etc_hosts: true | |
| disable_root: true | |
| apt_preserve_sources_list: true |
NewerOlder