LDAP-OSNAME-CHANGE-ALLOWER - This is my first php, hopefully last.

Overview

LDAP-OSNAME-CHANGE-ALLOWER

This PHP script allows SELF user to read and write the 'Operating System' property on the target computer/s.

How was it developed?

Firstly, differences that occur on SDDL string has to be detected when Read & Write permissions added to Operating System Property on the target computer object.

At this stage, I used Chad Sikorra's amazing PHP ldaptools library for parsing SDDL string and much more.

As a result, we found that two objects need to be added -to the SELF- for Operating System's permissions to be granted:


sid: S-1-5-10 indicates that we are dealing with SELF:

objectType: 3e978925-8c01-11d0-afda-00c04fd930c9 indicates that we are changing Operating System attribute:

How to use?

os_read_allower has 6 parameters:

  • b (Required): Base DN. Example: yeni.lab
  • i (Required): IPv4 address of the target DC. Example: 10.154.127.75
  • u (Required): Username for the LDAP connection. Example: Administrator
  • p (Required): Password for the LDAP connection. Example: Passw0rd
  • d (Optional): Specify a DN if you need to narrow the scope. Example: "ou=ankara,dc=yeni,dc=lab"
  • f (Optional): Specify a filter if you need to be more specific. Example: "(cn=warsaw)"

Usage examples:

  1. Specify a target OU or object. It gives the permission to all computers under that OU:
php os_read_allower.php -b yeni.lab -u administrator -p Passw0rd -d "OU=adana,dc=yeni,dc=lab" -i "10.154.127.75"
  1. Don't specify any additional OU or object. It gives the permisson to all computers under the whole DN (ex: yeni.lab):
php os_read_allower.php -b yeni.lab -u administrator -p Passw0rd -i "10.154.127.75"
  1. Use additional filter:
php os_read_allower.php -b yeni.lab -u administrator -p Passw0rd -d "OU=adana,dc=yeni,dc=lab" -i "10.154.127.75" -f "(cn=adanali)"

For future changes:

os_read_allower should be a one-time operation. If you want to apply these changes for future computer objects; default security descriptor for computer object should be changed with the modified.

You might also like...
the examples of head first object oriented analysis & design - in PHP

Head First object oriented analysis & design in (PHP) after cloning the repository, you have to install the project's dependancies by running the foll

My first attempt at creating my own Rubik's Cube timing interface with PHP and JS!

Cubing Sessions My first attempt at creating my own Rubik's Cube timing interface with PHP and JS! I haved named it the PA Timer for fun, as I hail fr

First SQL Project - HTML, Bootstrap, PHP enabling CRUD from web
First SQL Project - HTML, Bootstrap, PHP enabling CRUD from web

DB-Project First SQL Project with HTML, Bootstrap, PHP enabling CRUD from web Java for mocking data, enabling .csv input Idea This model corresponds t

First Data driver for the Omnipay PHP payment processing library

Omnipay: First Data First Data driver for the Omnipay PHP payment processing library Omnipay is a framework agnostic, multi-gateway payment processing

A first party module to integrate Elastic App Search in Magento 2.
A first party module to integrate Elastic App Search in Magento 2.

A first-party Magento integration for building excellent, relevant search experiences with Elastic App Search. ⚠️ This is a beta version of the client

Raspberry Pi wifi hotspot with an offline-first community portal. Optionally shares internet access over Tor.
Raspberry Pi wifi hotspot with an offline-first community portal. Optionally shares internet access over Tor.

Raspberry Pi wifi hotspot with an offline-first community portal. Optionally shares internet access over Tor.

The Current US Version of PHP-Nuke Evolution Xtreme v3.0.1b-beta often known as Nuke-Evolution Xtreme. This is a hardened version of PHP-Nuke and is secure and safe. We are currently porting Xtreme over to PHP 8.0.3
The Current US Version of PHP-Nuke Evolution Xtreme v3.0.1b-beta often known as Nuke-Evolution Xtreme. This is a hardened version of PHP-Nuke and is secure and safe. We are currently porting Xtreme over to PHP 8.0.3

2021 Nightly Builds Repository PHP-Nuke Evolution Xtreme Developers TheGhost - Ernest Allen Buffington (Lead Developer) SeaBeast08 - Sebastian Scott B

A sampling profiler for PHP written in PHP, which reads information about running PHP VM from outside of the process.

Reli Reli is a sampling profiler (or a VM state inspector) written in PHP. It can read information about running PHP script from outside of the proces

PHP Meminfo is a PHP extension that gives you insights on the PHP memory content

MEMINFO PHP Meminfo is a PHP extension that gives you insights on the PHP memory content. Its main goal is to help you understand memory leaks: by loo

Releases(20211223-062312)
Owner
Özgün Kültekin
Im sure that we are living in a simulation.
Özgün Kültekin
Last Wishes is a PHP application written following Domain-Driven Design approach

Last Wishes is a PHP application written following Domain-Driven Design approach. It's one of the sample applications where you can check the concepts explained in the Domain-Driven Design in PHP book.

DDD Shelf 644 Dec 28, 2022
An Infection + Last Man Standing Event plugin written for OwnagePE

KitPvPEvent An Infection + Last Man Standing Event plugin written for OwnagePE This plugin was a speedcode. I kinda woke up really late on the day I w

OwnagePE Network 2 May 26, 2022
Repository for the last open source version of Booked Scheduler.

Welcome to Booked Scheduler This is a community effort to keep the OpenSource GPLv3 BookedScheduler alive, see History Prerequisites PHP 7.0 or greate

null 259 Jan 5, 2023
A now playing screen for the Raspberry Pi using the Last.fm API.

raspberry-pi-now-playing A now playing screen for the Raspberry Pi using the Last.fm API. This project is detailed, with photos of how I used it with

null 44 Dec 17, 2022
The last validation library you will ever need!

Mighty The last validation library you will ever need! Table of Contents Installation About Mighty Quickstart Mighty Validation Expression Language Ex

Marwan Al-Soltany 55 Jan 3, 2023
My last contribution to Vasar, the final official PocketMine core.

Vasar v5.0 Incomplete and entirely hardcoded. For PocketMine 4.X.X. Many thanks to Prim for plenty of help over the years which basically formed this

null 13 Dec 31, 2022
Mobile detect change theme and redirect based on device type. Magento 2 module.

Magento 2 Mobile Detect Theme Change Magento 2 Mobile detect system can be used to load different themes base on the client device (desktop, tablet, m

EAdesign 27 Jul 5, 2022
A PocketMine-MP Plugin that allow you to change your nickname to specific colors

General Home A PocketMine-MP Plugin that allow you to change your display nametag to specific colors Made By BabosApple And Updated To PM4 By ZhorifCr

ZhorifCraft451 0 Feb 22, 2022
A plugin for Pocketmine-MP to change gamemode with ui

GamemodeUI A Plugin For Pocketmine-MP To Change Gamemode With UI ?? Config # GamemodeUI plugin # Made By FlynnKunz and fernanACM ##############

null 2 Jun 20, 2022
Replace, concat strings or change number fields permanently using Grid Options

It's Pimcore Bundle to replace ,concat strings or change number fields permanently using Grid Options. It will save replaced strings directly in object.

LemonMind.com 5 Aug 31, 2022