dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
wsl --set-default-version 2
-
Enter the user's folder. C:\Users\USER
-
Create the file: .wslconfig
-
Enter the following:
[wsl2]
memory = 4GB # Limits memory
processors = 2 # Limits virtual processors
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 | |
def verify_vulnerability(url) -> bool: | |
# Verify if the target is vulnerable | |
result = requests.get(url + "/xmlrpc.php") | |
if result.status_code == 405: | |
return True | |
else: | |
return False |
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
//SPDX-License-Identifier: MIT | |
pragma solidity ^0.8.0; | |
import "@openzeppelin/contracts/access/Ownable.sol"; | |
import "github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/utils/math/SafeMath.sol"; | |
contract Desafio is Ownable { | |
using SafeMath for uint256; | |
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.Arrays; | |
import java.util.Map; | |
import java.util.stream.Collectors; | |
public class AreSame { | |
public static boolean comp(int[] a, int[] b) { | |
if (a == null || b == null) return false; | |
int[] arrAlcuadrado = Arrays.stream(a).map(operand -> operand * operand).toArray(); | |
Arrays.sort(arrAlcuadrado); |