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
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
void run_shell(){ | |
system("/bin/sh"); | |
} | |
void vuln(){ | |
char buf[16]; |
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 base64 | |
def checkPassword(password): | |
if(len(password) != 40): | |
return False | |
newPass = list(password) | |
for i in range(0,40): | |
newPass[i] = chr(ord(newPass[i]) ^ 0x55) | |
finalPass = "".join(newPass) | |
passBytes = finalPass.encode("ascii") |
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 random | |
def checkPassword(password): | |
if(len(password) != 47): | |
return False | |
newPass = list(password) | |
for i in range(0,9): | |
newPass[i] = password[i] | |
for i in range(9,24): | |
newPass[i] = password[32-i] |
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 random | |
def checkPassword(password): | |
if(len(password) != 43): | |
return False | |
if(password[26] == 'r' and | |
password[33] == 't' and | |
password[32] == '3' and | |
password[16] == '3' and | |
password[4] == 'F' and |
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
#!/usr/bin/env python3 | |
i=666 | |
data="" | |
for x in range(1,31): | |
for y in range(x): | |
data+="{} ".format(i) | |
i+=1 | |
print(str(data.rstrip())) |
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
#!/usr/bin/env python3 | |
integers = [str(x) for x in range(1,501)] | |
divider = [3,5] | |
for x in range(integers.__len__()): | |
if int(integers[x])%3==0 and int(integers[x])%5==0: | |
integers[x]="RedRum" | |
continue | |
elif int(integers[x])%3==0: |
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
(function(s, objectName) { | |
setupLinks = function() { | |
if (s.admin) { | |
var sl = document.getElementsByClassName("student-link"); | |
for (i = 0; i < sl.length; i++) { | |
let name = sl[i].innerHTML; | |
sl[i].style.cursor = 'pointer'; | |
sl[i].addEventListener("click", function() { | |
window.location = '/update-' + objectName + '/' + this.dataset.id; | |
}); |
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
#!/usr/bin/env python3 | |
import requests | |
from bs4 import BeautifulSoup | |
if __name__ == "__main__": | |
status = True | |
link="https://finger-warmup.chals.damctf.xyz/" | |
uri="" | |
req=requests.Session() |
NewerOlder