This file contains 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
/* | |
* futex2_spin example, by André Almeida <andrealmeid@igalia.com> | |
* | |
* Partially inspired by Steven Rostedt benchmark from: | |
* https://lore.kernel.org/all/20231025235413.597287e1@gandalf.local.home/2-extend-sched.c | |
* | |
* gcc spin.c -o spin | |
*/ | |
#define _GNU_SOURCE |
This file contains 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: GPL-2.0 | |
/* | |
* Hidraw Userspace Example | |
* | |
* Copyright (c) 2010 Alan Ott <alan@signal11.us> | |
* Copyright (c) 2010 Signal 11 Software | |
* Copyright (c) 2021 Collabora | |
* | |
* The code may be used by anyone for any purpose, | |
* and can serve as a starting point for developing |
This file contains 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
Computer Information: | |
Manufacturer: Unknown | |
Model: Unknown | |
Form Factor: Desktop | |
No Touch Input Detected | |
Processor Information: | |
CPU Vendor: AuthenticAMD | |
CPU Brand: AMD Ryzen 7 3700X 8-Core Processor | |
CPU Family: 0x17 |
This file contains 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 | |
from tabulate import tabulate | |
CODEPIT_LOGIN_URL = "https://www.codepit.io/api/v1/user/login" | |
CREDENTIALS_FILE = "credentials.txt" | |
def main(): | |
""" |
This file contains 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
# RST ATTACK | |
from scapy.all import * | |
# esse codigo cria um pacote de negação de serviço, tentando convencer o | |
# cliente de que o servidor está offline. As informações inseridas no pacote | |
# são com base em experimentos realizados. Para que o ataque surja efeito, esse | |
# pacote tem que ser enviado logo apos o primeiro passso do handshake para funcionar | |