macOS domain specific nameservers:
- sudo mkdir /etc/resolver
- create file /etc/resolver/ with contents:
nameserver <IP of desired nameserver>
example:
macOS domain specific nameservers:
nameserver <IP of desired nameserver>
example:
| meta: | |
| id: exapunks_solution | |
| file-extension: exapunks_solution | |
| endian: le | |
| seq: | |
| - id: magic | |
| contents: [0xEF, 0x03, 0x00, 0x00] | |
| - id: file_id | |
| type: pstr | |
| - id: name |
| # This script adds an enum for all WSA Error codes | |
| # IDA 7 API | |
| # Windows-Sockets Error Codes https://msdn.microsoft.com/de-de/library/windows/desktop/ms740668(v=vs.85).aspx | |
| id = idaapi.add_enum(idaapi.get_enum_qty(), "WSAERROR", idaapi.decflag()) | |
| idaapi.add_enum_member(id, "WSA_OPERATION_ABORTED", 995) | |
| idaapi.add_enum_member(id, "WSA_IO_INCOMPLETE", 996) | |
| idaapi.add_enum_member(id, "WSA_IO_PENDING", 997) | |
| idaapi.add_enum_member(id, "WSAEINTR", 10004) |
| #!/bin/bash | |
| YOUR_WINDOWS_USERDIRECTORY_NAME_HERE="" | |
| WIN_TEMP_PATH="/mnt/c/Users/$YOUR_WINDOWS_USERDIRECTORY_NAME_HERE/AppData/Local/Temp" | |
| CURRENT_DIR=`pwd` | |
| if [ $# -eq 0 ] | |
| then | |
| echo "No arguments supplied" | |
| exit 1 |
I hereby claim:
To claim this, I am signing this object:
| #!/bin/bash | |
| #notify users per mail and write (now wrapped through notifydelay script by Kilobyte) | |
| notify() { | |
| USER_TO_NOTIFY=$1 | |
| MESSAGE="$USER logged in!" | |
| notifydelay $USER_TO_NOTIFY $MESSAGE | |
| echo "$MESSAGE" | mail $USER_TO_NOTIFY | |
| } | |
| #notifydelay by kilobyte, feature gets triggered if user runs a program with a specific command |