Exploit database

GH-38e6ddae9b36414359566f0f6b043800

nulldreams/cve-2017-16082

GitHubNot listedPoC
Download repository ZIP

Sources for CVE-2017-16082

1 source

Preferred order: Exploit-DB, Metasploit, then GitHub repositories by stars.

Repository files2
nulldreams/cve-2017-16082Revision 6deefeb3361a

Files from this repository share one source choice. Supporting files may cover other vulnerabilities.

src/models/index.js

JavaScript · 734 bytes
const postgresAdapter = require('sails-postgresql')
const Waterline = require('waterline')

const orm = new Waterline()

const config = {
    adapters: {
        postgresql: postgresAdapter
    },

    connections: {
        default: {
            adapter: 'postgresql',
            host: 'localhost',
            user: 'postgres',
            database: 'pentest'
        }
    }
}

var fs = require('fs');
var path      = require("path");

fs
  .readdirSync(__dirname)
  .filter(function(file) {
    return (file.indexOf(".") !== 0) && (file !== "index.js");
  })
  .forEach(function(file) {
    var model = require(path.join(__dirname, file));
    orm.loadCollection(model);
  });

module.exports = {waterline: orm, config: config};