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
| # Most powerfull bruteforce command Just a one line :D | |
| printf "code: %04d\n" {0..9999} | nc localhost 4000 |
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
| version: '3.7' | |
| services: | |
| elasticsearch: | |
| image: docker.elastic.co/elasticsearch/elasticsearch:${ELASTIC_VERSION} | |
| volumes: | |
| - ./elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml:ro,Z | |
| - elasticsearch:/usr/share/elasticsearch/data:Z | |
| ports: |
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
| from datetime import datetime | |
| from inspect import getframeinfo, stack | |
| import json | |
| import os | |
| LOG_LEVELS = [ | |
| "FATAL", | |
| "ERROR", | |
| "WARNING", | |
| "INFO", |
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
| import decimal | |
| from mongoengine.fields import * | |
| class MongoEngine: | |
| def StringField( | |
| self, | |
| regex=None, | |
| max_length=None, | |
| min_length=None, |
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
| [uwsgi] | |
| env = DJANGO_SETTINGS_MODULE=cassandra.settings | |
| env = UWSGI_VIRTUALENV=/venv | |
| env = IS_WSGI=True | |
| env = LANG=en_US.UTF-8 | |
| workdir = /code | |
| chdir = /code | |
| module = cassandra.wsgi:application | |
| master = True | |
| pidfile = /tmp/app-master.pid |
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
| from django.views import generic | |
| class CustomView(generic.View): | |
| def get_context_data(self, **kwargs): | |
| context = super(CustomView, self).get_context_data(**kwargs) | |
| context["menu"] = "menu" | |
| context["menu"] = "footer" | |
| return context | |
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 ( | |
| "encoding/json" | |
| "fmt" | |
| "github.com/gorilla/mux" | |
| "net/http" | |
| "time" | |
| ) |
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
| var MongoClient = require('mongodb').MongoClient; | |
| var ObjectId = require('mongodb').ObjectId; | |
| var mongodbUri = require('mongodb-uri'); | |
| var MongoURI = process.env.MONGO_URI; | |
| var Mongo = function () { | |
| // client | |
| this.client = MongoClient; | |
| // mongo uri |
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
| psycopg2==2.7.4 | |
| psycopg2-binary==2.7.4 |
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
| #!/bin/bash | |
| echo -e "Installing Docker Ubuntu Server" | |
| apt update | |
| apt install -y apt-transport-https ca-certificates curl software-properties-common | |
| curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - |
NewerOlder