Mercurial > codedump
changeset 1:05978f04869b
Add files via upload
committer: GitHub <noreply@github.com>
author | Paper <37962225+mrpapersonic@users.noreply.github.com> |
---|---|
date | Mon, 04 Jan 2021 13:52:42 -0500 |
parents | bfa16fc2d0a5 |
children | 26b01c33d7ab |
files | decode.cpp garf.cpp nhentai.py peardeck.cpp python3path.bat win95kg.cpp |
diffstat | 6 files changed, 586 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/decode.cpp Mon Jan 04 13:52:42 2021 -0500 @@ -0,0 +1,34 @@ +// requires libcurl +#include <curl/curl.h> +#include <iostream> +#include <string.h> +#include <fstream> + +int main(int argc, char *argv[]){ + if(argc != 3){ + std::cout << "usage: " << argv[0] << " <input> <output>"; + return 0; + } + std::string encoded; + CURL *curl = curl_easy_init(); + char somedata[256]; + std::ifstream in(argv[1], std::ios::in | std::ios::binary); + if (in) + { + in.seekg(0, std::ios::end); + encoded.resize(in.tellg()); + in.seekg(0, std::ios::beg); + in.read(&encoded[0], encoded.size()); + in.close(); + } + int outlength; + char *cres = curl_easy_unescape(curl, encoded.c_str(), encoded.length(), &outlength); + std::string res(cres, cres + outlength); + curl_free(cres); + curl_easy_cleanup(curl); + std::ofstream myfile2; + myfile2.open(argv[2]); + myfile2 << res; + myfile2.close(); + return 0; +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/garf.cpp Mon Jan 04 13:52:42 2021 -0500 @@ -0,0 +1,16 @@ +// garf simulator +#include <iostream> +#include <stdio.h> +#include <string.h> + +int main(){ +char answer[100]; +std::cout << "would you like to monetize 1123.best?: "; +gets(answer); +if(answer=="yes"){ +std::cout << "it's a yes!"; +}else{ +std::cout << "it's a yes!"; +} +return 0; +} \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nhentai.py Mon Jan 04 13:52:42 2021 -0500 @@ -0,0 +1,26 @@ +import os, argparse, sys + +def main(argv): + global outputfile + parser = argparse.ArgumentParser() + parser.add_argument('-o', '--output', help="output file, defaults to urls.txt", metavar='<output>', required=True) + args = parser.parse_args() + if args.output: + outputfile = args.output + a = ["257892", "226942", "236297", "216039", "221711", "267371", "235905", "266808", "262036", "206069", "245304", "166174", "175220", "244327", "191049", "147577", "188940", "240543", "165264", "267384", "220882", "244859", "227446", "259322", "259862", "267372", "234932", "247540", "253687", "259569", "259758", "259555", "242505", "255388", "262042", "231290", "250827", "247175", "258728", "264370", "146718", "202230", "259668", "259848", "259542", "266772", "267243", "264901", "263960", "262771", "259420", "188717", "259727", "257889", "259904", "247703", "244427", "242070", "238845", "228510", "258136", "259906", "259986", "216926", "197648", "228426", "225259", "229779", "228922", "103383", "232854", "156069", "122984", "260026", "259634", "160556", "100094", "169468", "204746", "219077", "259610", "259348", "258669", "256097", "118282", "269329", "173023", "186446", "229948", "256088", "260028", "260058", "259557", "259497", "122220", "269582", "270455", "256776", "238651", "242543", "260111", "260088", "259880", "258977", "260097", "263329", "127727", "256789", "256787", "217410", "259765", "259359", "260138", "259617", "107965", "269413", "268926", "208174", "211112", "225664", "197255", "260276", "260209", "260210", "260203", "266834", "196341", "267924", "258212", "248769", "191360", "191390", "248933", "257567", "227913", "219077", "204746", "204066", "007693", "007695", "211648", "210240", "260626", "259622", "257991", "017131", "130602", "172787", "043168", "050856", "213966", "260623", "149112", "252168", "198203", "056657", "064707", "162677", "079712", "167450", "114783", "220958", "244387", "243734", "223315", "102346", "183783", "114427", "119726", "142154", "118069", "136188", "260686", "241777", "260912", "152889", "186055", "204746", "270536", "270528", "142154", "119298", "261174", "258301", "256808", "270415", "270393", "270240", "269871", "269834", "169134", "220354", "260271", "261725", "261378", "269821", "269740", "269721", "269672", "269649", "252174", "261928", "114427", "187003", "147572", "269638", "269434", "269279", "256302", "242517", "249458", "157767", "224316", "175294", "258450", "212347", "268820", "268306", "266301", "265066", "233864", "236128", "261162", "174036", "187205", "270424", "269374", "269067", "268742", "267859", "210873", "193318", "110232", "199310", "193816", "270629", "270628", "270517", "270435", "270174", "220376", "193814", "193815", "219068", "220386", "269064", "269653", "279474", "269366", "268487", "177642", "188269", "181837", "220377", "119293", "268328", "268423", "267935", "265575", "265453", "257528", "258926", "262384", "105951", "259904", "265002", "265085", "270559", "270347", "266882", "208174", "249229", "245644", "262538", "234818", "266442", "264901", "263960", "262771", "262326", "216845", "149212", "134442", "135927", "262447", "261539", "269370", "258301", "256785", "256808", "261811", "261650", "261225", "261226", "260761", "255351", "253306", "242070", "235763", "230437", "250327", "192327", "167801", "150309", "123554", "233736", "260606", "253099", "236707", "231576"] + if os.path.exists(outputfile): + answer = "" + while answer not in ["y", "n", "yes", "no"]: + print(f"{outputfile} still exists. Delete it? [y/n]: ", end = "") + answer = input().lower() + if answer in ["y", "yes"]: + os.remove(outputfile) + else: + sys.exit() + for i in a: + myfile = open(outputfile, "a") + myfile.write(f"https://nhentai.org/g/{i}\n") + myfile.close() + print("URLs successfully written!") +if __name__ == "__main__": + main(sys.argv[1:])
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/peardeck.cpp Mon Jan 04 13:52:42 2021 -0500 @@ -0,0 +1,376 @@ +#include <iostream> +#include <stdlib.h> + +void adje(int num); +void noun(int num); +void adve(int num); +void verb(int num); +char i[256]; +int main(){ + std::cout << "what is your peardeck code?: "; + fgets(i, sizeof(i), stdin); + std::string str(i); + int length = str.length(); + if(length==7){ + adje(0); + noun(1); + adve(2); + verb(3); + adje(4); + noun(5); + } + else if(length==6){ + adje(0); + noun(1); + verb(2); + adje(3); + noun(4); + } + else{ + std::cout << "invalid input, exiting"; + std::exit(EXIT_FAILURE); + } + std::exit(EXIT_SUCCESS); +} +void adje(int num){ + switch(i[num]){ + case 'a': + std::cout << "Acidic "; + break; + case 'b': + std::cout << "Broke "; + break; + case 'c': + std::cout << "Confused "; + break; + case 'd': + std::cout << "Determined "; + break; + case 'e': + std::cout << "Exothermic "; + break; + case 'f': + std::cout << "Fragrant "; + break; + case 'g': + std::cout << "Green "; + break; + case 'h': + std::cout << "Hilarious "; + break; + case 'i': + std::cout << "Insincere "; + break; + case 'j': + std::cout << "Juicy "; + break; + case 'k': + std::cout << "Keen "; + break; + case 'l': + std::cout << "Lovely "; + break; + case 'm': + std::cout << "Misty "; + break; + case 'n': + std::cout << "New "; + break; + case 'o': + std::cout << "Orange "; + break; + case 'p': + std::cout << "Purple "; + break; + case 'q': + std::cout << "Quick "; + break; + case 'r': + std::cout << "Red "; + break; + case 's': + std::cout << "Stoic "; + break; + case 't': + std::cout << "Troubling "; + break; + case 'u': + std::cout << "Underwhelmed "; + break; + case 'v': + std::cout << "Victorious "; + break; + case 'w': + std::cout << "Warm "; + break; + case 'x': + std::cout << "Xeric "; + break; + case 'y': + std::cout << "Young "; + break; + case 'z': + std::cout << "Zesty "; + break; + default: + std::cout << "invalid input, exiting"; + std::exit(EXIT_FAILURE); + } +} +void noun(int num){ + switch(i[num]){ + case 'a': + std::cout << "Avocados "; + break; + case 'b': + std::cout << "Bandanas "; + break; + case 'c': + std::cout << "Carrots "; + break; + case 'd': + std::cout << "Drums "; + break; + case 'e': + std::cout << "Elephants "; + break; + case 'f': + std::cout << "Flashlights "; + break; + case 'g': + std::cout << "Grapes "; + break; + case 'h': + std::cout << "Highlighters "; + break; + case 'i': + std::cout << "Incentives "; + break; + case 'j': + std::cout << "Jacks "; + break; + case 'k': + std::cout << "Kangaroos "; + break; + case 'l': + std::cout << "Lemons "; + break; + case 'm': + std::cout << "Muffins "; + break; + case 'n': + std::cout << "Ninjas "; + break; + case 'o': + std::cout << "Olives "; + break; + case 'p': + std::cout << "Pears "; + break; + case 'q': + std::cout << "Quizzes "; + break; + case 'r': + std::cout << "Raisins "; + break; + case 's': + std::cout << "Submarines "; + break; + case 't': + std::cout << "Turnips "; + break; + case 'u': + std::cout << "Umbrellas "; + break; + case 'v': + std::cout << "Violas "; + break; + case 'w': + std::cout << "Watermelons "; + break; + case 'x': + std::cout << "X-Rays "; + break; + case 'y': + std::cout << "Yards "; + break; + case 'z': + std::cout << "Zebras "; + break; + default: + std::cout << "invalid input, exiting"; + std::exit(EXIT_FAILURE); + } +} + +void adve(int num){ + switch(i[num]){ + case 'a': + std::cout << "Always "; + break; + case 'b': + std::cout << "Bravely "; + break; + case 'c': + std::cout << "Calmly "; + break; + case 'd': + std::cout << "Daringly "; + break; + case 'e': + std::cout << "Easily "; + break; + case 'f': + std::cout << "Fondly "; + break; + case 'g': + std::cout << "Gladly "; + break; + case 'h': + std::cout << "Honestly "; + break; + case 'i': + std::cout << "Instantly "; + break; + case 'j': + std::cout << "Joyfully "; + break; + case 'k': + std::cout << "Kindly "; + break; + case 'l': + std::cout << "Loudly "; + break; + case 'm': + std::cout << "Magically "; + break; + case 'n': + std::cout << "Neatly "; + break; + case 'o': + std::cout << "Openly "; + break; + case 'p': + std::cout << "Perfectly "; + break; + case 'q': + std::cout << "Quietly "; + break; + case 'r': + std::cout << "Rarely "; + break; + case 's': + std::cout << "Safely "; + break; + case 't': + std::cout << "Tenderly "; + break; + case 'u': + std::cout << "Usually "; + break; + case 'v': + std::cout << "Victoriously "; + break; + case 'w': + std::cout << "Warmly "; + break; + case 'x': + std::cout << "Xerically "; + break; + case 'y': + std::cout << "Yearly "; + break; + case 'z': + std::cout << "Zestfully "; + break; + default: + std::cout << "invalid input, exiting"; + std::exit(EXIT_FAILURE); + } +} + +void verb(int num){ + switch(i[num]){ + case 'a': + std::cout << "Award "; + break; + case 'b': + std::cout << "Bother "; + break; + case 'c': + std::cout << "Conduct "; + break; + case 'd': + std::cout << "Drive "; + break; + case 'e': + std::cout << "Evaluate "; + break; + case 'f': + std::cout << "Form "; + break; + case 'g': + std::cout << "Give "; + break; + case 'h': + std::cout << "Help "; + break; + case 'i': + std::cout << "Inspect "; + break; + case 'j': + std::cout << "Jump "; + break; + case 'k': + std::cout << "Keep "; + break; + case 'l': + std::cout << "Lift "; + break; + case 'm': + std::cout << "Memorize "; + break; + case 'n': + std::cout << "Notice "; + break; + case 'o': + std::cout << "Officiate "; + break; + case 'p': + std::cout << "Pursue "; + break; + case 'q': + std::cout << "Quiz "; + break; + case 'r': + std::cout << "Raise "; + break; + case 's': + std::cout << "Switch "; + break; + case 't': + std::cout << "Turn "; + break; + case 'u': + std::cout << "Underwhelm "; + break; + case 'v': + std::cout << "Vacate "; + break; + case 'w': + std::cout << "Wish "; + break; + case 'x': + std::cout << "X-Ray "; + break; + case 'y': + std::cout << "Yield "; + break; + case 'z': + std::cout << "Zip "; + break; + default: + std::cout << "invalid input, exiting"; + std::exit(EXIT_FAILURE); + } +} \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/python3path.bat Mon Jan 04 13:52:42 2021 -0500 @@ -0,0 +1,11 @@ +@echo off +echo Downloading pathed... +if not exist %temp%\python3path mkdir %temp%\python3path +powershell "iwr -OutFile "%temp%\python3path\pathed.exe" https://cdn.discordapp.com/attachments/559034172274901012/795468079432990740/pathed.exe" +powershell "iwr -OutFile "%temp%\python3path\GSharpTools.dll" https://cdn.discordapp.com/attachments/757237744530358292/795469138469978162/GSharpTools.dll" +powershell "iwr -OutFile "%temp%\python3path\GSharpTools.WPF.dll" https://cdn.discordapp.com/attachments/757237744530358292/795469255575076914/GSharpTools.WPF.dll" +powershell "iwr -OutFile "%temp%\python3path\log4net.dll" https://cdn.discordapp.com/attachments/757237744530358292/795469497141035028/log4net.dll" +%temp%\python3path\pathed.exe /append %userprofile%\AppData\Local\Programs\Python\Python39 /user +%temp%\python3path\pathed.exe /append %userprofile%\AppData\Local\Programs\Python\Python39\Scripts /user +echo Python added to path! +pause
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/win95kg.cpp Mon Jan 04 13:52:42 2021 -0500 @@ -0,0 +1,123 @@ +/* Windows 95 Keygen - 11/24/20 + By Paper + not sure if this will work fully, but from what i've seen it works well enough +*/ +#include <ctime> +#include <cstdlib> +#include <cstring> +#include <iomanip> +#include <iostream> +#include <string> + +int a(), b(), c(), d(), e(); +int main(int argc, char* argv[]){ + int endpoint, startpoint, sadsong; + srand((unsigned) time(NULL)); + if(argc>=2){ + if (strcmp(argv[1], "--office") == 0){ + startpoint = c(); + sadsong = 4; + } + else if (strcmp(argv[1], "--oem") == 0){ + int first = d(), third = e(); + std::cout << std::setw(5) << std::setfill('0') << first; + std::cout << "-OEM-"; + std::cout << std::setw(7) << std::setfill('0') << third << "-"; + std::cout << std::setw(5) << std::setfill('0') << (rand() % 100000); + return 0; + } + else if (strcmp(argv[1], "--normal") == 0){ + startpoint = a(); + sadsong = 3; + } + else { + std::cout << "usage: " << argv[0] << " [--normal] [--oem] [--office]"; + return 0; + } + } + else { + std::cout << "usage: " << argv[0] << " [--normal] [--oem] [--office]"; + return 0; + } + endpoint = b(); + std::cout << std::setw(sadsong) << std::setfill('0') << startpoint << "-"; + std::cout << std::setw(7) << std::setfill('0') << endpoint; + return 0; +} +int a(){ + int num; + num = rand() % 1000; + while ((num == 333) and (num == 444) and (num == 555) and (num == 666) and (num == 777) and (num == 888) and (num == 999)){ + num = rand() % 1000; + } + while ((num % 3) != 0){ + num=num+1; + } + return num; +} +int b(){ + int first_digits = rand() % 10000000; + int last_digit = rand() % 10; + while ((last_digit == 0) || (last_digit >= 8)){ + last_digit = rand() % 10; + } + std::string thisis = std::to_string(first_digits); + std::string veryfrustrating = std::to_string(last_digit); + std::string second_segment_p1 = (std::string(thisis) + std::string(veryfrustrating)); + int second_segment = std::stoi(second_segment_p1); + while (second_segment % 7 != 0){ + first_digits = rand() % 10000000; + last_digit = rand() % 10; + while ((last_digit == 0) || (last_digit >= 8)){ + last_digit = rand() % 10; + } + std::string thisis = std::to_string(first_digits); + std::string veryfrustrating = std::to_string(last_digit); + std::string second_segment_p1 = (std::string(thisis) + std::string(veryfrustrating)); + second_segment = std::stoi(second_segment_p1); + } + return second_segment; +} + +int c(){ + int new_site = rand() % 1000; + int ez_pwned = new_site % 10 + 1; + while (ez_pwned >= 10){ + ez_pwned = ez_pwned - 10; + } + std::string thisisstill = std::to_string(new_site); + std::string prettyfrustrating = std::to_string(ez_pwned); + std::string iamsocool = (std::string(thisisstill) + std::string(prettyfrustrating)); + int mysinusesareclogged = std::stoi(iamsocool); + return mysinusesareclogged; +} + +int d(){ + int day = (rand() % 366) + 1; + const char* years[] = {"95", "96", "97", "98", "99", "00", "01", "02", "03"}; + int index = (rand() % 9); + const char* year = years[index]; + std::string iamsotired = std::to_string(day); + std::string ofdoingthis = year; + std::string pleasehelp = (std::string(iamsotired) + std::string(ofdoingthis)); + int ohmygod = std::stoi(pleasehelp); + return ohmygod; +} + +int e(){ + int first_digits = rand() % 1000000; + int last_digit = rand() % 10; + std::string thisis = std::to_string(first_digits); + std::string veryfrustrating = std::to_string(last_digit); + std::string second_segment_p1 = (std::string(thisis) + std::string(veryfrustrating)); + int second_segment = std::stoi(second_segment_p1); + while (second_segment % 7 != 0){ + first_digits = rand() % 10000000; + last_digit = rand() % 10; + std::string thisis = std::to_string(first_digits); + std::string veryfrustrating = std::to_string(last_digit); + std::string second_segment_p1 = (std::string(thisis) + std::string(veryfrustrating)); + second_segment = std::stoi(second_segment_p1); + } + return second_segment; +}