-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'simondotsh/add_synclapspassword' into 4.2
# Conflicts: # src/components/Modals/HelpModal.jsx # src/components/SearchContainer/EdgeFilter/EdgeFilter.jsx # src/index.js
- Loading branch information
Showing
12 changed files
with
157 additions
and
3 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
15 changes: 15 additions & 0 deletions
15
src/components/Modals/HelpTexts/SyncLAPSPassword/Abuse.jsx
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
const Abuse = (sourceName, sourceType, targetName, targetType) => { | ||
let text = `To abuse this privilege with DirSync, first import DirSync into your agent session or into a PowerShell instance at the console. You must authenticate to the Domain Controller as ${ | ||
sourceType === 'User' | ||
? `${sourceName} if you are not running a process as that user` | ||
: `a member of ${sourceName} if you are not running a process as a member` | ||
}. Then, execute the <code>Sync-LAPS</code> function: | ||
<code>Sync-LAPS -LDAPFilter '(samaccountname=TargetComputer$)</code> | ||
You can target a specific domain controller using the <code>-Server</code> parameter. | ||
`; | ||
return { __html: text }; | ||
}; | ||
|
||
export default Abuse; |
13 changes: 13 additions & 0 deletions
13
src/components/Modals/HelpTexts/SyncLAPSPassword/General.jsx
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import { groupSpecialFormat} from '../Formatter'; | ||
|
||
const General = (sourceName, sourceType, targetName, targetType) => { | ||
let text = `${groupSpecialFormat( | ||
sourceType, | ||
sourceName | ||
)} the ability to synchronize the password set by Local Administrator Password Solution (LAPS) on the computer ${targetName}. | ||
The local administrator password for a computer managed by LAPS is stored in the confidential and Read-Only Domain Controller (RODC) filtered LDAP attribute <code>ms-mcs-AdmPwd</code>.`; | ||
return { __html: text }; | ||
}; | ||
|
||
export default General; |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
const Opsec = () => { | ||
let text = `Executing the attack will generate a 4662 (An operation was performed on an object) event at the domain controller if an appropriate SACL is in place on the target object.`; | ||
return { __html: text }; | ||
}; | ||
|
||
export default Opsec; |
7 changes: 7 additions & 0 deletions
7
src/components/Modals/HelpTexts/SyncLAPSPassword/References.jsx
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
const References = () => { | ||
let text = `<a href="https://github.com/simondotsh/DirSync">https://github.com/simondotsh/DirSync</a> | ||
<a href="https://simondotsh.com/infosec/2022/07/11/dirsync.html">https://simondotsh.com/infosec/2022/07/11/dirsync.html</a>`; | ||
return { __html: text }; | ||
}; | ||
|
||
export default References; |
57 changes: 57 additions & 0 deletions
57
src/components/Modals/HelpTexts/SyncLAPSPassword/SyncLAPSPassword.jsx
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
import React from 'react'; | ||
import PropTypes from 'prop-types'; | ||
import { Tabs, Tab } from 'react-bootstrap'; | ||
import General from './General'; | ||
import Abuse from './Abuse'; | ||
import Opsec from './Opsec'; | ||
import References from './References'; | ||
|
||
const SyncLAPSPassword = ({ | ||
sourceName, | ||
sourceType, | ||
targetName, | ||
targetType, | ||
}) => { | ||
return ( | ||
<Tabs defaultActiveKey={1} id='help-tab-container' justified> | ||
<Tab | ||
eventKey={1} | ||
title='Info' | ||
dangerouslySetInnerHTML={General( | ||
sourceName, | ||
sourceType, | ||
targetName, | ||
targetType | ||
)} | ||
/> | ||
<Tab | ||
eventKey={2} | ||
title='Abuse Info' | ||
dangerouslySetInnerHTML={Abuse( | ||
sourceName, | ||
sourceType, | ||
targetName, | ||
targetType | ||
)} | ||
/> | ||
<Tab | ||
eventKey={3} | ||
title='Opsec Considerations' | ||
dangerouslySetInnerHTML={Opsec()} | ||
/> | ||
<Tab | ||
eventKey={4} | ||
title='References' | ||
dangerouslySetInnerHTML={References()} | ||
/> | ||
</Tabs> | ||
); | ||
}; | ||
|
||
SyncLAPSPassword.propTypes = { | ||
sourceName: PropTypes.string, | ||
sourceType: PropTypes.string, | ||
targetName: PropTypes.string, | ||
targetType: PropTypes.string, | ||
}; | ||
export default SyncLAPSPassword; |
This file contains 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
This file contains 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