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 cx_Oracle | |
import pandas as pd | |
import csv | |
import datetime | |
import os | |
import time | |
connectStart = time.time() | |
r = connection = cx_Oracle.connect('username','password','localhost:1521/XE') | |
print(r) |
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 express = require('express'), | |
ntlm = require('express-ntlm'); | |
var app = express(); | |
app.use(ntlm()); | |
app.all('*', function(request, response) { | |
response.end(JSON.stringify(request.ntlm)); }); | |
app.listen(9000); |
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 requests | |
from requests_ntlm import HttpNtlmAuth | |
requests.get("http://ntlm_protected_site.com",auth=HttpNtlmAuth('domain\\username','password')) |
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 base64 | |
import socket | |
from ntlm_auth.ntlm import NtlmContext | |
username = 'User' | |
password = 'Password' | |
domain = 'Domain' # Can be blank if you are not in a domain | |
workstation = socket.gethostname().upper() # Can be blank if you wish to not send this 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 socket | |
from ntlm_auth.ntlm import NtlmContext | |
username = 'User' | |
password = 'Password' | |
domain = 'Domain' # Can be blank if you are not in a domain | |
workstation = socket.gethostname().upper() # Can be blank if you wish to not send this info | |
ntlm_context = NtlmContext(username, password, domain, workstation, ntlm_compatibility=0) # Put the ntlm_compatibility level here, 0-2 for LM Auth/NTLMv1 Auth |