- The ApacheSecureAuth / LDAP login code in MISP is a
- 3rd party contribution and untested (including security)
- by the MISP-project team. However, you are free to enable
- it and report back to the developers if you run into any issues.
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
#! /usr/bin/env bash | |
if [[ -z $1 ]]; then | |
printf "Usage: %s: <grep arguments> [filename]\n" "$(basename "$0")" | |
exit 1 | |
fi | |
function _grep { | |
PRINT_FILENAME="$1" | |
FILENAME="$2" |
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
// Get amazon book list as JSON data | |
// Based on https://gist.github.com/yige233/274fbd29ba26a6f9d75d698c1790e0d5 | |
// 1 open i.e. https://www.amazon.com/hz/mycd/digital-console/contentlist/booksAll/dateDsc/ | |
// 2. Open developer console | |
// 4. If required, adapt the fetch url below. | |
// 5. If required ajust batchSize | |
// 6. paste into developer console and press enter | |
// 7. Promise {<Pending>} will appear | |
// 8. AFter a while a js structure starting with {success: true, .... should appear. | |
// 9. Right click that line, "Copy object" |
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
@echo off | |
rem https://stackoverflow.com/a/5370380 | |
rem Loop on multiple input files and auto | |
rem trim them using magick "!item_%%n!" -trim "!item_%%n!" | |
setlocal ENABLEDELAYEDEXPANSION | |
rem Take the cmd-line, remove all until the first parameter | |
set "params=!cmdcmdline:~0,-1!" | |
set "params=!params:*" =!" | |
set count=0 |
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
... | |
'ApacheSecureAuth' => array ( | |
'apacheEnv' => 'REDIRECT_REMOTE_USER', # Eventuelt REMOTE_USER | |
'ldapServer' => 'ldap://ad.example.com', | |
'starttls' => true, # kommer i 2.4.169, burde fortsatt kunne bli med | |
'updateUser' => false, | |
'ldapProtocol' => 3, | |
'ldapNetworkTimeout' => -1, | |
'ldapReaderUser' => 'CN=srv_misp,OU=Service Users,DC=example,DC=com', |
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
# For LDAP debug | |
# LDAPLibraryDebug 7 | |
<VirtualHost *:80> | |
ServerAdmin [email protected] | |
ServerName misp.local | |
Header always unset "X-Powered-By" | |
RewriteEngine On | |
RewriteCond %{HTTPS} !=on | |
RewriteRule ^/?(.*) https://%{SERVER_NAME}/$1 [R,L] |
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
hildenae@spune:~$ echo "foo" | gist-paste | |
Please log in with `gist --login`. (Github now requires credentials to gist https://bit.ly/2GBBxKw) | |
hildenae@spune:~$ gist-paste --login | |
Obtaining OAuth2 access_token from github. | |
GitHub username: | |
GitHub password: | |
Error: Requires authentication | |
GitHub username: | |
GitHub password: | |
Error: Requires authentication |
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
- name: loop test | |
gather_facts: no | |
hosts: localhost | |
vars: | |
- array_usage: | |
- id: 0 | |
usage: 89 | |
- id: 1 | |
usage: 70 | |
- id: 2 |
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
- name: loop test | |
gather_facts: no | |
hosts: localhost | |
vars: | |
- array_usage: | |
- id: 0 | |
usage: 89 | |
- id: 1 | |
usage: 70 | |
- id: 2 |
NewerOlder