Postagens

How to deploy a React.js app to GitHub pages

  To deploy a React.js app to GitHub Pages, you can follow these steps: 1. Create a new GitHub repository: Create a new repository on GitHub where you'll host your React.js app. Make sure it's initialized as an empty repository. 2. Install the `gh-pages` package: In your React.js project folder, open a terminal and run the following command to install the `gh-pages` package as a development dependency: npm install gh-pages --save-dev 3. Update the `package.json` file: Open the `package.json` file in your project and add the following properties at the top-level: "homepage": "https://<your-github-username>.github.io/<your-repository-name>", "scripts": {   "predeploy": "npm run build",   "deploy": "gh-pages -d build" } Replace `<your-github-username>` with your GitHub username and `<your-repository-name>` with the name of your GitHub repository. 4. Build your React app: In the terminal,...

Deploy a Honeypot in AWS using T-Pot

Imagem
This article outlines the step-by-step process of setting up the honeypot, including the necessary configurations and considerations specific to the AWS environment. It covers aspects such as network setup, instance provisioning, and security configurations, ensuring that the honeypot operates effectively and securely within the AWS cloud. Additionally, the report highlights the importance of honeypots as a valuable tool for understanding hacker activity and developing more robust security solutions. By documenting the installation process, this report serves as a valuable resource for organizations looking to implement honeypots in the AWS cloud, contributing to their overall cybersecurity strategy. Create an account into Amazon AWS, then log in the search bar navigate to ”EC2 Console”. In the top right corner select the region where you want to set your honeypot, 1 keeping in mind that where you set it up may change where the attacks come from. With the region selected you need to la...
JavaScript JavaScript Como declarar variáveis _ let nome_da_variavel ; _ var nome_da_variavel ; Como declaramos constantes Usamos const Tipos primitivos de variáveis: string number Boolean undefined null simbol Tipagem dinâmica Diferente de outas linguagens como o Java, C#, o JavaScript é uma linguagem dinâmica. Diferente das linguagens anteriores que devemos citar o tipo da variável com precisão(float,double,etc), no javascript ele descobre em tempo de execução. Usamos o comando typeof , para saber o tipo primitivo de uma variável. Usando a tipagem dinâmica podemos mudar o tipo de uma variavel com o decorrrer do codigo. Objects Declaração de um objeto: let pessoa = { nome : ‘Rafael’ idade : 34; estaAprovado : true; sobrenome : ‘de Souza’ }; Arrays Um array ou vetor é capaz de armazenar dados em posições que podem ser acessados através de um índice. Declarar array: let família = [23,44,23,31]; E diferente de outas linguagens em JavaScript podemos misturar os tipos de variáveis num ar...

Assembly MIPS

Assembly MIPS Diretivas do assembler .data faz com que os itens abaixo se tornem dados guardados em variáveis; .text torna todos os dados abaixo linhas de instruções; Comandos li $v0 li $v0, 1 → imprime um inteiro li $v0, 2 → imprime um float li $v0, 3 → imprime um double li $v0, 4 → imprime uma string ou caractere li $v0, 5 → ler um inteiro li $v0, 6 → ler um float li $v0, 7 → ler um double li$v0, 8 → ler uma string li $v0, 10 → encerrar o programa principal Estrutura básica de um programa Objetivo: Imprimir “Olá mundo” na tela .data mensagem: .asciiz "Olá mundo" #declaramos a nossa variavel .text li $v0, 4 #damos o comando de imprimir uma string la $a0, mensagem #transferimos a string pro registrador $a0 syscall #mandamos executar Declaração de variáveis Para declarar variaveis usamos a seguinte estrutura: nome_variavel: .tipo_variavel valor Para cada tipo de variavel usamos as seguintes designações: .asciiz para strings(colocamos-as e...