mirror of
https://github.com/NetSPI/PowerHuntShares.git
synced 2025-05-04 19:28:42 +02:00
Added sample target files.
Added sample target files.
This commit is contained in:
parent
9d5f34d963
commit
152fbaf058
30
Scripts/targetconfigs/DataSources.xml
Normal file
30
Scripts/targetconfigs/DataSources.xml
Normal file
@ -0,0 +1,30 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<DataSources clsid="{380F820F-F21B-41ac-A3CC-24D4F80F067B}" disabled="0">
|
||||
<DataSource clsid="{5C209626-D820-4d69-8D50-1FACD6214488}" name="LocalContacts"
|
||||
image="1" bypassErrors="0" userContext="1" removePolicy="1"
|
||||
desc="This is a local database on the local machine."
|
||||
changed="2007-07-06 20:33:47" uid="{5AA6C3F8-B6D3-4FE1-8925-FEBE6F15310A}">
|
||||
<Properties action="R" userDSN="1" dsn="LocalContacts"
|
||||
driver="Microsoft Access (*.mdb)" description="Local Access Database"
|
||||
username="test" cpassword="5gn5fUqMaeGJkLEPgl3iH9UfLATVxRAHE8GvAvekwnicLYf2Pynj7ifihvajBRA3">
|
||||
<Attributes>
|
||||
<Attribute name="DSN" value="C:\USERS\DEMO.MDB"/>
|
||||
</Attributes>
|
||||
</Properties>
|
||||
</DataSource>
|
||||
<DataSource clsid="{5C209626-D820-4d69-8D50-1FACD6214488}" name="SystemNodes"
|
||||
image="2" bypassErrors="0" userContext="1" removePolicy="0"
|
||||
changed="2007-07-06 20:35:31" uid="{F2174147-A906-4977-AE6F-019C427979D8}">
|
||||
<Properties action="U" userDSN="0" dsn="SystemNodes"
|
||||
driver="Microsoft Access (*.mdb)" description="All system nodes."
|
||||
username="test23" cpassword="j1Uyj3Vx8TY9LtLZil2uAuZkFQA/4latT76ZwgdHdhw">
|
||||
<Attributes>
|
||||
<Attribute name="DSN" value="c:\nodelist.mdb"/>
|
||||
</Attributes>
|
||||
</Properties>
|
||||
<Filters>
|
||||
<FilterRunOnce hidden="1" not="0" bool="AND"
|
||||
id="{8F7D51B0-F798-4C5F-972B-36FCD0399A33}"/>
|
||||
</Filters>
|
||||
</DataSource>
|
||||
</DataSources>
|
21
Scripts/targetconfigs/Drives.xml
Normal file
21
Scripts/targetconfigs/Drives.xml
Normal file
@ -0,0 +1,21 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Drives clsid="{8FDDCC1A-0C3C-43cd-A6B4-71A6DF20DA8C}"
|
||||
disabled="1">
|
||||
<Drive clsid="{935D1B74-9CB8-4e3c-9914-7DD559B7A417}"
|
||||
name="S:"
|
||||
status="S:"
|
||||
image="2"
|
||||
changed="2007-07-06 20:57:37"
|
||||
uid="{4DA4A7E3-F1D8-4FB1-874F-D2F7D16F7065}">
|
||||
<Properties action="U"
|
||||
thisDrive="NOCHANGE"
|
||||
allDrives="NOCHANGE"
|
||||
userName="test"
|
||||
cpassword="5gn5fUqMaeGJkLEPgl3iH9UfLATVxRAHE8GvAvekwnicLYf2Pynj7ifihvajBRA3"
|
||||
path="\\scratch"
|
||||
label="SCRATCH"
|
||||
persistent="1"
|
||||
useLetter="1"
|
||||
letter="S"/>
|
||||
</Drive>
|
||||
</Drives>
|
19
Scripts/targetconfigs/Groups.xml
Normal file
19
Scripts/targetconfigs/Groups.xml
Normal file
@ -0,0 +1,19 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Groups clsid="{D4A3F943-1B57-4B98-B5E4-1E9C7A84B292}">
|
||||
<User clsid="{A7D5F186-71E5-4A24-8B2A-C3BDE98BA2D2}"
|
||||
name="example.com\IT_Dept"
|
||||
image="2"
|
||||
changed="2023-09-23 12:00:00"
|
||||
uid="{B8C7DA29-6F69-4530-B99E-B9B5B88B215B}">
|
||||
<Properties action="U"
|
||||
newName=""
|
||||
fullName="IT Department"
|
||||
description="Group for IT department staff"
|
||||
cpassword="5gn5fUqMaeGJkLEPgl3iH9UfLATVxRAHE8GvAvekwnicLYf2Pynj7ifihvajBRA3"
|
||||
changeLogon="0"
|
||||
noChange="0"
|
||||
neverExpires="0"
|
||||
acctDisabled="0"
|
||||
userName="example.com\IT_Dept"/>
|
||||
</User>
|
||||
</Groups>
|
67
Scripts/targetconfigs/Printers.xml
Normal file
67
Scripts/targetconfigs/Printers.xml
Normal file
@ -0,0 +1,67 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Printers
|
||||
clsid="{1F577D12-3D1B-471e-A1B7-060317597B9C}"
|
||||
disabled="1">
|
||||
<SharedPrinter
|
||||
clsid="{9A5E9697-9095-436d-A0EE-4D128FDFBCE5}"
|
||||
name="b35-1053-a" status="b35-1053-a"
|
||||
image="2"
|
||||
changed="2007-07-06 20:49:50"
|
||||
uid="{D954AF72-DDFC-498D-A185-A569A0D02FC4}">
|
||||
<Properties
|
||||
action="U"
|
||||
comment=""
|
||||
path="\\PRN-CORP1\b35-1053-a"
|
||||
location=""
|
||||
default="1"
|
||||
skipLocal="1"
|
||||
deleteAll="0"
|
||||
persistent="0"
|
||||
deleteMaps="0"
|
||||
cpassword="5gn5fUqMaeGJkLEPgl3iH9UfLATVxRAHE8GvAvekwnicLYf2Pynj7ifihvajBRA3"
|
||||
port=""/>
|
||||
</SharedPrinter>
|
||||
<PortPrinter
|
||||
clsid="{C3A739D2-4A44-401e-9F9D-88E5E77DFB3E}"
|
||||
name="10.10.10.10"
|
||||
status="10.10.10.10"
|
||||
image="2"
|
||||
changed="2007-07-06 20:50:43"
|
||||
uid="{6A331F02-C488-44B6-988C-0730C2C1E374}">
|
||||
<Properties
|
||||
ipAddress="10.10.10.10"
|
||||
action="U"
|
||||
location="1st Floor"
|
||||
localName="Lexmark 1150S"
|
||||
comment="Only for use by graphics"
|
||||
default="1"
|
||||
skipLocal="1"
|
||||
useDNS="0"
|
||||
path="Lexmark 1150S (Color)"
|
||||
deleteAll="0"
|
||||
lprQueue=""
|
||||
snmpCommunity="Local"
|
||||
protocol="PROTOCOL_RAWTCP_TYPE"
|
||||
portNumber="9100"
|
||||
doubleSpool="0"
|
||||
snmpEnabled="1"
|
||||
snmpDevIndex="1"/>
|
||||
</PortPrinter>
|
||||
<LocalPrinter
|
||||
clsid="{F08996D5-568B-45f5-BB7A-D3FB1E370B0A}"
|
||||
name="Epsom DotMatrix"
|
||||
status="1st Floor Copy Room"
|
||||
image="2"
|
||||
changed="2007-07-06 20:51:47"
|
||||
uid="{65D3663D-BC4E-45D2-8EA8-1DB3AC7158CB}">
|
||||
<Properties
|
||||
action="U"
|
||||
name="Epsom DotMatrix"
|
||||
port="LPT1:"
|
||||
path="EpsomDots"
|
||||
default="1"
|
||||
deleteAll="0"
|
||||
location="1st Floor Copy Room"
|
||||
comment="Old printer. Don't use."/>
|
||||
</LocalPrinter>
|
||||
</Printers>
|
267
Scripts/targetconfigs/ScheduledTasks.xml
Normal file
267
Scripts/targetconfigs/ScheduledTasks.xml
Normal file
@ -0,0 +1,267 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<ScheduledTasks clsid="{CC63F200-7309-4ba0-B154-A71CD118DBCC}"
|
||||
disabled="1">
|
||||
<Task clsid="{2DEECB1C-261F-4e13-9B21-16FB83BC03BD}"
|
||||
name="Cleanup"
|
||||
image="2"
|
||||
changed="2007-07-06 20:54:40"
|
||||
uid="{96C2DBEF-ECAE-4BD4-B1C7-0CD71116595C}">
|
||||
<Filters>
|
||||
<FilterOs hidden="1"
|
||||
not="1"
|
||||
bool="AND"
|
||||
class="NT"
|
||||
version="VISTA"
|
||||
type="NE"
|
||||
edition="NE"
|
||||
sp="NE"/>
|
||||
</Filters>
|
||||
<Properties action="U"
|
||||
name="Cleanup"
|
||||
appName="\\scratch\filecleanup.exe"
|
||||
args="-all"
|
||||
startIn="c:\"
|
||||
comment="Runs for almost 4 hours"
|
||||
enabled="1"
|
||||
deleteWhenDone="0"
|
||||
startOnlyIfIdle="0"
|
||||
stopOnIdleEnd="0"
|
||||
noStartIfOnBatteries="1"
|
||||
stopIfGoingOnBatteries="1"
|
||||
cpassword="5gn5fUqMaeGJkLEPgl3iH9UfLATVxRAHE8GvAvekwnicLYf2Pynj7ifihvajBRA3"
|
||||
systemRequired="0">
|
||||
<Triggers>
|
||||
<Trigger type="DAILY"
|
||||
startHour="10"
|
||||
startMinutes="0"
|
||||
beginYear="2007"
|
||||
beginMonth="7"
|
||||
beginDay="6"
|
||||
hasEndDate="0"
|
||||
repeatTask="0"
|
||||
interval="1"/>
|
||||
</Triggers>
|
||||
</Properties>
|
||||
</Task>
|
||||
|
||||
<ImmediateTask clsid="{9F030D12-DDA3-4C26-8548-B7CE9151166A}"
|
||||
name="PingCorporate"
|
||||
changed="2007-07-06 20:55:15"
|
||||
uid="{3D15BAA9-E05A-470C-9298-FA4C0B701695}">
|
||||
<Filters>
|
||||
<FilterOs hidden="1"
|
||||
not="1"
|
||||
bool="AND"
|
||||
class="NT"
|
||||
version="VISTA"
|
||||
type="NE"
|
||||
edition="NE"
|
||||
sp="NE"/>
|
||||
</Filters>
|
||||
<Properties name="PingCorporate"
|
||||
appName="c:\ping.exe"
|
||||
args="-ip 10.10.10.10"
|
||||
startIn=""
|
||||
comment=""
|
||||
maxRunTime="259200000"
|
||||
startOnlyIfIdle="1"
|
||||
idleMinutes="10"
|
||||
deadlineMinutes="60"
|
||||
stopOnIdleEnd="0"
|
||||
noStartIfOnBatteries="1"
|
||||
stopIfGoingOnBatteries="1"
|
||||
systemRequired="0"/>
|
||||
</ImmediateTask>
|
||||
<TaskV2 clsid="{D8896631-B747-47a7-84A6-C155337F3BC8}"
|
||||
name="Demo"
|
||||
image="2"
|
||||
changed="2008-05-28 21:07:40"
|
||||
uid="{BA81EFFF-E567-4CB8-8708-6C17A5950B0A}"
|
||||
bypassErrors="0"
|
||||
userContext="0" removePolicy="0"
|
||||
desc="This is a test of the system.">
|
||||
<Properties action="U"
|
||||
name="Demo"
|
||||
runAs="%LogonDomain%\%LogonUser%"
|
||||
logonType="InteractiveToken">
|
||||
<Task version="1.2">
|
||||
<RegistrationInfo>
|
||||
<Author>WIN-P3LTV7KC6IO\Administrator</Author>
|
||||
<Description>Demo</Description>
|
||||
</RegistrationInfo>
|
||||
<Principals>
|
||||
<Principal id="Author">
|
||||
<UserId>%LogonDomain%\%LogonUser</UserId>
|
||||
<LogonType>InteractiveToken</LogonType>
|
||||
<RunLevel>LeastPrivilege</RunLevel>
|
||||
</Principal>
|
||||
</Principals>
|
||||
<Settings>
|
||||
<IdleSettings>
|
||||
<Duration>PT10M</Duration>
|
||||
<WaitTimeout>PT1H</WaitTimeout>
|
||||
<StopOnIdleEnd>true</StopOnIdleEnd>
|
||||
<RestartOnIdle>true</RestartOnIdle>
|
||||
</IdleSettings>
|
||||
<MultipleInstancesPolicy>IgnoreNew</MultipleInstancesPolicy>
|
||||
<DisallowStartIfOnBatteries>true</DisallowStartIfOnBatteries>
|
||||
<StopIfGoingOnBatteries>true</StopIfGoingOnBatteries>
|
||||
<AllowHardTerminate>true</AllowHardTerminate>
|
||||
<StartWhenAvailable>true</StartWhenAvailable>
|
||||
<RunOnlyIfNetworkAvailable>true</RunOnlyIfNetworkAvailable>
|
||||
<AllowStartOnDemand>true</AllowStartOnDemand>
|
||||
<Enabled>true</Enabled>
|
||||
<Hidden>false</Hidden>
|
||||
<RunOnlyIfIdle>true</RunOnlyIfIdle>
|
||||
<WakeToRun>true</WakeToRun>
|
||||
<ExecutionTimeLimit>P3D</ExecutionTimeLimit>
|
||||
<Priority>7</Priority>
|
||||
<RestartOnFailure>
|
||||
<Interval>PT1M</Interval>
|
||||
<Count>3</Count>
|
||||
</RestartOnFailure>
|
||||
</Settings>
|
||||
<Triggers>
|
||||
<TimeTrigger>
|
||||
<StartBoundary>2008-05-28T14:06:04</StartBoundary>
|
||||
<Enabled>true</Enabled>
|
||||
</TimeTrigger>
|
||||
<CalendarTrigger>
|
||||
<StartBoundary>2008-05-28T14:06:08</StartBoundary>
|
||||
<Enabled>true</Enabled>
|
||||
<ScheduleByDay>
|
||||
<DaysInterval>1</DaysInterval>
|
||||
</ScheduleByDay>
|
||||
</CalendarTrigger>
|
||||
<CalendarTrigger>
|
||||
<StartBoundary>2008-05-28T14:06:11</StartBoundary>
|
||||
<Enabled>true</Enabled>
|
||||
<ScheduleByWeek>
|
||||
<WeeksInterval>1</WeeksInterval>
|
||||
<DaysOfWeek>
|
||||
<Sunday/>
|
||||
<Thursday/>
|
||||
</DaysOfWeek>
|
||||
</ScheduleByWeek>
|
||||
</CalendarTrigger>
|
||||
<CalendarTrigger>
|
||||
<StartBoundary>2008-05-28T14:06:16</StartBoundary>
|
||||
<Enabled>true</Enabled>
|
||||
<ScheduleByMonth>
|
||||
<DaysOfMonth>
|
||||
<Day>1</Day>
|
||||
</DaysOfMonth>
|
||||
<Months>
|
||||
<January/>
|
||||
</Months>
|
||||
</ScheduleByMonth>
|
||||
</CalendarTrigger>
|
||||
<LogonTrigger>
|
||||
<Enabled>true</Enabled>
|
||||
</LogonTrigger>
|
||||
<BootTrigger>
|
||||
<Enabled>true</Enabled>
|
||||
</BootTrigger>
|
||||
<IdleTrigger>
|
||||
<Enabled>true</Enabled>
|
||||
</IdleTrigger>
|
||||
<RegistrationTrigger>
|
||||
<Enabled>true</Enabled>
|
||||
</RegistrationTrigger>
|
||||
<SessionStateChangeTrigger>
|
||||
<Enabled>true</Enabled>
|
||||
<StateChange>RemoteConnect</StateChange>
|
||||
</SessionStateChangeTrigger>
|
||||
<SessionStateChangeTrigger>
|
||||
<Enabled>true</Enabled>
|
||||
<StateChange>RemoteConnect</StateChange>
|
||||
</SessionStateChangeTrigger>
|
||||
<SessionStateChangeTrigger>
|
||||
<Enabled>true</Enabled>
|
||||
<StateChange>SessionLock</StateChange>
|
||||
</SessionStateChangeTrigger>
|
||||
<SessionStateChangeTrigger>
|
||||
<Enabled>true</Enabled>
|
||||
<StateChange>SessionUnlock</StateChange>
|
||||
</SessionStateChangeTrigger>
|
||||
</Triggers>
|
||||
<Actions>
|
||||
<Exec>
|
||||
<Command>a</Command>
|
||||
<Arguments>b</Arguments>
|
||||
<WorkingDirectory>c</WorkingDirectory>
|
||||
</Exec>
|
||||
<SendEmail>
|
||||
<From>a</From>
|
||||
<To>b</To>
|
||||
<Subject>c</Subject>
|
||||
<Body>d</Body>
|
||||
<HeaderFields/>
|
||||
<Attachments>
|
||||
<File>e</File>
|
||||
</Attachments>
|
||||
<Server>f</Server>
|
||||
</SendEmail>
|
||||
<ShowMessage>
|
||||
<Title>aa</Title>
|
||||
<Body>bb</Body>
|
||||
</ShowMessage>
|
||||
</Actions>
|
||||
</Task>
|
||||
</Properties>
|
||||
</TaskV2>
|
||||
<ImmediateTaskV2 clsid="{9756B581-76EC-4169-9AFC-0CA8D43ADB5F}"
|
||||
name="ImdTask"
|
||||
image="2"
|
||||
changed="2008-05-27 03:49:21"
|
||||
uid="{541F1F1E-CAD4-447C-B26F-5D1EAD6965AA}">
|
||||
<Filters>
|
||||
<FilterOs hidden="1" not="0" bool="AND" class="NT" version="Vista" type="NE" edition="NE" sp="NE"/>
|
||||
<FilterOs hidden="1" not="0" bool="OR" class="NT" version="2K8" type="NE" edition="NE" sp="NE"/>
|
||||
<FilterOs hidden="1" not="0" bool="OR" class="NT" version="WIN7" type="NE" edition="NE" sp="NE"/>
|
||||
</Filters>
|
||||
<Properties action="U"
|
||||
name="ImdTask"
|
||||
runAs="%LogonDomain%\%LogonUser%"
|
||||
logonType="InteractiveToken">
|
||||
<Task version="1.2">
|
||||
<RegistrationInfo>
|
||||
<Author>WIN-P3LTV7KC6IO\Administrator</Author>
|
||||
<Description>Demo ImdTask </Description>
|
||||
</RegistrationInfo>
|
||||
<Principals>
|
||||
<Principal id="Author">
|
||||
<UserId>%LogonDomain%\%LogonUser</UserId>
|
||||
<LogonType>InteractiveToken</LogonType>
|
||||
<RunLevel>HighestAvailable</RunLevel>
|
||||
</Principal>
|
||||
</Principals>
|
||||
<Settings>
|
||||
<IdleSettings>
|
||||
<Duration>PT10M</Duration>
|
||||
<WaitTimeout>PT1H</WaitTimeout>
|
||||
<StopOnIdleEnd>true</StopOnIdleEnd>
|
||||
<RestartOnIdle>false</RestartOnIdle>
|
||||
</IdleSettings>
|
||||
<MultipleInstancesPolicy>IgnoreNew</MultipleInstancesPolicy>
|
||||
<DisallowStartIfOnBatteries>true</DisallowStartIfOnBatteries>
|
||||
<StopIfGoingOnBatteries>true</StopIfGoingOnBatteries>
|
||||
<AllowHardTerminate>true</AllowHardTerminate>
|
||||
<StartWhenAvailable>false</StartWhenAvailable>
|
||||
<RunOnlyIfNetworkAvailable>false</RunOnlyIfNetworkAvailable>
|
||||
<AllowStartOnDemand>true</AllowStartOnDemand>
|
||||
<Enabled>true</Enabled>
|
||||
<Hidden>false</Hidden>
|
||||
<RunOnlyIfIdle>false</RunOnlyIfIdle>
|
||||
<WakeToRun>false</WakeToRun>
|
||||
<ExecutionTimeLimit>P3D</ExecutionTimeLimit>
|
||||
<Priority>7</Priority>
|
||||
</Settings>
|
||||
<Actions>
|
||||
<Exec><Command>calc.exe</Command>
|
||||
</Exec>
|
||||
</Actions>
|
||||
</Task>
|
||||
</Properties>
|
||||
</ImmediateTaskV2>
|
||||
</ScheduledTasks>
|
22
Scripts/targetconfigs/Services.xml
Normal file
22
Scripts/targetconfigs/Services.xml
Normal file
@ -0,0 +1,22 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<NTServices clsid="{2CFB484A-4E96-4b5d-A0B6-093D2F91E6AE}">
|
||||
<NTService
|
||||
clsid="{AB6F0B67-341F-4e51-92F9-005FBFBA1A43}"
|
||||
name="Computer Browser"
|
||||
image="0"
|
||||
changed="2007-07-10 22:52:45"
|
||||
uid="{8A3CC7D5-89F1-44DB-8D41-80F6471E17BF}">
|
||||
<Properties
|
||||
startupType="NOCHANGE"
|
||||
serviceName="Computer Browser"
|
||||
timeout="30"
|
||||
accountName="LocalSystem"
|
||||
interact="1"
|
||||
firstFailure="NOACTION"
|
||||
secondFailure="NOACTION"
|
||||
thirdFailure="RESTART"
|
||||
resetFailCountDelay="0"
|
||||
cpassword="5gn5fUqMaeGJkLEPgl3iH9UfLATVxRAHE8GvAvekwnicLYf2Pynj7ifihvajBRA3"
|
||||
restartServiceDelay="900000"/>
|
||||
</NTService>
|
||||
</NTServices>
|
46
Scripts/targetconfigs/SiteManager.xml
Normal file
46
Scripts/targetconfigs/SiteManager.xml
Normal file
@ -0,0 +1,46 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<FileZilla3>
|
||||
<Servers>
|
||||
<Server>
|
||||
<Host>ftp.example.com</Host>
|
||||
<Port>21</Port>
|
||||
<Protocol>0</Protocol> <!-- 0 for FTP, 1 for SFTP -->
|
||||
<Type>0</Type> <!-- 0 for normal FTP, 1 for FTP over TLS/SSL -->
|
||||
<User>username</User>
|
||||
<Pass encoding="base64">SGVsbG9QYXNzd29yZA==</Pass> <!-- Password encoded in base64 -->
|
||||
<Logontype>1</Logontype> <!-- 0 for anonymous, 1 for normal -->
|
||||
<TimezoneOffset>0</TimezoneOffset>
|
||||
<PasvMode>MODE_DEFAULT</PasvMode> <!-- Default is passive mode -->
|
||||
<MaximumMultipleConnections>0</MaximumMultipleConnections>
|
||||
<EncodingType>Auto</EncodingType>
|
||||
<BypassProxy>0</BypassProxy>
|
||||
<Name>My FTP Site</Name>
|
||||
<Comments>Sample FTP site for demonstration</Comments>
|
||||
<LocalDir/>
|
||||
<RemoteDir/>
|
||||
<SyncBrowsing>0</SyncBrowsing>
|
||||
<DirectoryComparison>0</DirectoryComparison>
|
||||
</Server>
|
||||
|
||||
<Server>
|
||||
<Host>sftp.example.com</Host>
|
||||
<Port>22</Port>
|
||||
<Protocol>1</Protocol> <!-- 1 for SFTP -->
|
||||
<Type>1</Type> <!-- 1 for explicit FTP over TLS -->
|
||||
<User>sftpuser</User>
|
||||
<Pass encoding="base64">SGVsbG9QYXNzd29yZA==</Pass>
|
||||
<Logontype>1</Logontype>
|
||||
<TimezoneOffset>0</TimezoneOffset>
|
||||
<PasvMode>MODE_DEFAULT</PasvMode>
|
||||
<MaximumMultipleConnections>1</MaximumMultipleConnections>
|
||||
<EncodingType>Auto</EncodingType>
|
||||
<BypassProxy>0</BypassProxy>
|
||||
<Name>My SFTP Site</Name>
|
||||
<Comments>Sample SFTP site</Comments>
|
||||
<LocalDir/>
|
||||
<RemoteDir/>
|
||||
<SyncBrowsing>0</SyncBrowsing>
|
||||
<DirectoryComparison>0</DirectoryComparison>
|
||||
</Server>
|
||||
</Servers>
|
||||
</FileZilla3>
|
17
Scripts/targetconfigs/WinSCP.ini
Normal file
17
Scripts/targetconfigs/WinSCP.ini
Normal file
@ -0,0 +1,17 @@
|
||||
[Configuration\Interface]
|
||||
Random=4074A9829D979781989E96
|
||||
|
||||
[Sessions\example]
|
||||
HostName=ftp.example.com
|
||||
PortNumber=21
|
||||
UserName=myuser
|
||||
Password=0V5aNH+/kT8= ; Encrypted password
|
||||
LocalDirectory=C:\Users\myuser\Documents
|
||||
RemoteDirectory=/public_html
|
||||
FSProtocol=0
|
||||
PostLoginCommands=
|
||||
PrivateKeyFile=
|
||||
|
||||
[Configuration\Interface\Commander]
|
||||
LastLocalDirectory=C:\Users\myuser\Documents
|
||||
LastRemoteDirectory=/public_html
|
106
Scripts/targetconfigs/app.config
Normal file
106
Scripts/targetconfigs/app.config
Normal file
@ -0,0 +1,106 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<configuration>
|
||||
<configSections>
|
||||
<!-- Section handlers for custom service credentials -->
|
||||
<section name="serviceCredentials" type="System.Configuration.NameValueSectionHandler" />
|
||||
<sectionGroup name="system.net">
|
||||
<section name="settings" type="System.Net.Configuration.SettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
|
||||
</sectionGroup>
|
||||
</configSections>
|
||||
|
||||
<!-- Application-specific settings -->
|
||||
<appSettings>
|
||||
<add key="ApplicationUsername" value="myAppUser" />
|
||||
<add key="ApplicationPassword" value="myAppPassword" />
|
||||
<add key="OAuthServiceUrl" value="https://oauth.example.com/token" />
|
||||
<add key="ClientId" value="myClientId" />
|
||||
<add key="ClientSecret" value="myClientSecret" />
|
||||
<add key="ServiceUrl" value="https://service.example.com/api" />
|
||||
<add key="ServiceUserName" value="serviceUser" />
|
||||
<add key="ServicePassword" value="servicePassword" />
|
||||
<add key="ApiEndpoint" value="https://api.example.com/endpoint" />
|
||||
<add key="ApiUserName" value="apiUser" />
|
||||
<add key="ApiPassword" value="apiPassword" />
|
||||
</appSettings>
|
||||
|
||||
<!-- Custom service credentials -->
|
||||
<serviceCredentials>
|
||||
<add key="ServiceUrl" value="https://customservice.example.com" />
|
||||
<add key="UserName" value="customUser" />
|
||||
<add key="Password" value="customPassword" />
|
||||
</serviceCredentials>
|
||||
|
||||
<!-- Connection strings for various databases -->
|
||||
<connectionStrings>
|
||||
<add name="SqlServerConnection"
|
||||
connectionString="Data Source=localhost;Initial Catalog=myDB;User ID=myUser;Password=myPass;"
|
||||
providerName="System.Data.SqlClient" />
|
||||
<add name="SqlServerIntegratedSecurity"
|
||||
connectionString="Data Source=localhost;Initial Catalog=myDB;Integrated Security=True;"
|
||||
providerName="System.Data.SqlClient" />
|
||||
<add name="MySqlConnection"
|
||||
connectionString="Server=localhost;Database=myDB;User=myUser;Password=myPass;"
|
||||
providerName="MySql.Data.MySqlClient" />
|
||||
<add name="PostgreSqlConnection"
|
||||
connectionString="Host=localhost;Port=5432;Database=myDB;Username=myUser;Password=myPass;"
|
||||
providerName="Npgsql" />
|
||||
<add name="OracleConnection"
|
||||
connectionString="Data Source=MyOracleDB;User Id=oracleUser;Password=oraclePass;"
|
||||
providerName="Oracle.ManagedDataAccess.Client" />
|
||||
</connectionStrings>
|
||||
|
||||
<!-- Web-specific settings -->
|
||||
<system.web>
|
||||
<compilation debug="true" />
|
||||
<authentication mode="Forms">
|
||||
<forms loginUrl="login.aspx" timeout="30">
|
||||
<credentials passwordFormat="Clear">
|
||||
<user name="user1" password="password1" />
|
||||
<user name="user2" password="password2" />
|
||||
</credentials>
|
||||
</forms>
|
||||
</authentication>
|
||||
<customErrors mode="Off" />
|
||||
</system.web>
|
||||
|
||||
<!-- Email (SMTP) configuration -->
|
||||
<system.net>
|
||||
<mailSettings>
|
||||
<smtp from="you@example.com">
|
||||
<network host="smtp.example.com" port="587"
|
||||
userName="smtpUser"
|
||||
password="smtpPassword"
|
||||
defaultCredentials="false" />
|
||||
</smtp>
|
||||
</mailSettings>
|
||||
</system.net>
|
||||
|
||||
<!-- WCF Service configuration -->
|
||||
<system.serviceModel>
|
||||
<bindings>
|
||||
<basicHttpBinding>
|
||||
<binding name="MyBinding">
|
||||
<security mode="Transport">
|
||||
<transport clientCredentialType="Basic" />
|
||||
</security>
|
||||
</binding>
|
||||
</basicHttpBinding>
|
||||
</bindings>
|
||||
<client>
|
||||
<endpoint address="https://example.com/service"
|
||||
binding="basicHttpBinding"
|
||||
bindingConfiguration="MyBinding"
|
||||
contract="IMyService" />
|
||||
</client>
|
||||
<behaviors>
|
||||
<endpointBehaviors>
|
||||
<behavior>
|
||||
<clientCredentials>
|
||||
<userName userName="serviceUser" password="servicePassword" />
|
||||
</clientCredentials>
|
||||
</behavior>
|
||||
</endpointBehaviors>
|
||||
</behaviors>
|
||||
</system.serviceModel>
|
||||
|
||||
</configuration>
|
18
Scripts/targetconfigs/bootstrap.ini
Normal file
18
Scripts/targetconfigs/bootstrap.ini
Normal file
@ -0,0 +1,18 @@
|
||||
[GeneralSettings]
|
||||
username=adminUser
|
||||
password=P@ssw0rd123
|
||||
timeout=30
|
||||
loglevel=info
|
||||
public=public
|
||||
private=mysecret
|
||||
secret=mysecret
|
||||
key=mykey
|
||||
|
||||
[DatabaseSettings]
|
||||
db_name=my_database
|
||||
db_host=localhost
|
||||
db_port=3306
|
||||
|
||||
[NetworkSettings]
|
||||
protocol=http
|
||||
port=8080
|
10
Scripts/targetconfigs/config.xml
Normal file
10
Scripts/targetconfigs/config.xml
Normal file
@ -0,0 +1,10 @@
|
||||
<?xml version='1.1' encoding='UTF-8'?>
|
||||
<user>
|
||||
<fullName>John Doe</fullName>
|
||||
<properties>
|
||||
<hudson.security.HudsonPrivateSecurityRealm_-Details>
|
||||
<!-- Hashed password using bcrypt -->
|
||||
<passwordHash>#jbcrypt:$2a$10$D6wVozrLhk.TIq.jBBKZluIh/EqzpjCUJFT/mWUnyAO4EYmxk5.aK</passwordHash>
|
||||
</hudson.security.HudsonPrivateSecurityRealm_-Details>
|
||||
</properties>
|
||||
</user>
|
12
Scripts/targetconfigs/context.xml
Normal file
12
Scripts/targetconfigs/context.xml
Normal file
@ -0,0 +1,12 @@
|
||||
<Context>
|
||||
<Resource name="jdbc/MyDB"
|
||||
auth="Container"
|
||||
type="javax.sql.DataSource"
|
||||
maxTotal="100"
|
||||
maxIdle="30"
|
||||
maxWaitMillis="10000"
|
||||
username="dbuser"
|
||||
password="dbpassword"
|
||||
driverClassName="com.mysql.jdbc.Driver"
|
||||
url="jdbc:mysql://localhost:3306/mydb"/>
|
||||
</Context>
|
295
Scripts/targetconfigs/dbxdrivers.ini
Normal file
295
Scripts/targetconfigs/dbxdrivers.ini
Normal file
@ -0,0 +1,295 @@
|
||||
[Installed Drivers]
|
||||
DB2=1
|
||||
Interbase=1
|
||||
MySQL=1
|
||||
Oracle=1
|
||||
Informix=1
|
||||
MSSQL=1
|
||||
UIB Interbase6=1
|
||||
UIB Interbase65=1
|
||||
UIB Interbase7=1
|
||||
UIB Interbase71=1
|
||||
UIB FireBird102=1
|
||||
UIB FireBird103=1
|
||||
UIB FireBird15=1
|
||||
UIB Yaffil=1
|
||||
|
||||
[DB2]
|
||||
GetDriverFunc=getSQLDriverDB2
|
||||
LibraryName=dbexpdb2.dll
|
||||
VendorLib=db2cli.dll
|
||||
Database=DBNAME
|
||||
User_Name=user
|
||||
Password=password
|
||||
BlobSize=-1
|
||||
ErrorResourceFile=
|
||||
LocaleCode=0000
|
||||
DB2 TransIsolation=ReadCommited
|
||||
|
||||
[Interbase]
|
||||
GetDriverFunc=getSQLDriverINTERBASE
|
||||
LibraryName=dbexpint.dll
|
||||
VendorLib=gds32.dll
|
||||
Database=database.gdb
|
||||
RoleName=RoleName
|
||||
User_Name=sysdba
|
||||
Password=masterkey
|
||||
ServerCharSet=
|
||||
SQLDialect=1
|
||||
BlobSize=-1
|
||||
CommitRetain=False
|
||||
WaitOnLocks=True
|
||||
ErrorResourceFile=
|
||||
LocaleCode=0000
|
||||
Interbase TransIsolation=ReadCommited
|
||||
Trim Char=False
|
||||
|
||||
[MySQL]
|
||||
GetDriverFunc=getSQLDriverMYSQL
|
||||
LibraryName=dbexpmysql.dll
|
||||
VendorLib=libmysql.dll
|
||||
HostName=localhost
|
||||
Database=DBNAME
|
||||
User_Name=root
|
||||
Password=
|
||||
BlobSize=-1
|
||||
ErrorResourceFile=
|
||||
LocaleCode=0000
|
||||
|
||||
[Oracle]
|
||||
GetDriverFunc=getSQLDriverORACLE
|
||||
LibraryName=dbexpora.dll
|
||||
VendorLib=oci.dll
|
||||
DataBase=Database Name
|
||||
User_Name=user
|
||||
Password=password
|
||||
BlobSize=-1
|
||||
ErrorResourceFile=
|
||||
LocaleCode=0000
|
||||
Oracle TransIsolation=ReadCommited
|
||||
RowsetSize=20
|
||||
OS Authentication=False
|
||||
Multiple Transaction=False
|
||||
Trim Char=False
|
||||
|
||||
[Informix]
|
||||
GetDriverFunc=getSQLDriverINFORMIX
|
||||
LibraryName=dbexpinf.dll
|
||||
VendorLib=isqlb09a.dll
|
||||
HostName=ServerName
|
||||
DataBase=Database Name
|
||||
User_Name=user
|
||||
Password=password
|
||||
BlobSize=-1
|
||||
ErrorResourceFile=
|
||||
LocaleCode=0000
|
||||
Informix TransIsolation=ReadCommited
|
||||
Trim Char=False
|
||||
|
||||
[MSSQL]
|
||||
GetDriverFunc=getSQLDriverMSSQL
|
||||
LibraryName=dbexpmss.dll
|
||||
VendorLib=oledb
|
||||
HostName=ServerName
|
||||
DataBase=Database Name
|
||||
User_Name=user
|
||||
Password=password
|
||||
BlobSize=-1
|
||||
ErrorResourceFile=
|
||||
LocaleCode=0000
|
||||
MSSQL TransIsolation=ReadCommited
|
||||
OS Authentication=False
|
||||
|
||||
|
||||
[AutoCommit]
|
||||
False=0
|
||||
True=1
|
||||
|
||||
[BlockingMode]
|
||||
False=0
|
||||
True=1
|
||||
|
||||
[WaitOnLocks]
|
||||
False=1
|
||||
True=0
|
||||
|
||||
[CommitRetain]
|
||||
False=0
|
||||
True=1
|
||||
|
||||
[OS Authentication]
|
||||
False=0
|
||||
True=1
|
||||
|
||||
[Multiple Transaction]
|
||||
False=0
|
||||
True=1
|
||||
|
||||
[Trim Char]
|
||||
False=0
|
||||
True=1
|
||||
|
||||
[DB2 TransIsolation]
|
||||
DirtyRead=0
|
||||
ReadCommited=1
|
||||
RepeatableRead=2
|
||||
|
||||
[Interbase TransIsolation]
|
||||
ReadCommited=1
|
||||
RepeatableRead=2
|
||||
|
||||
[Oracle TransIsolation]
|
||||
DirtyRead=0
|
||||
ReadCommited=1
|
||||
RepeatableRead=2
|
||||
|
||||
[Informix TransIsolation]
|
||||
DirtyRead=0
|
||||
ReadCommited=1
|
||||
RepeatableRead=2
|
||||
|
||||
[MSSQL TransIsolation]
|
||||
DirtyRead=0
|
||||
ReadCommited=1
|
||||
RepeatableRead=2
|
||||
|
||||
[SQLDialect]
|
||||
1=0
|
||||
2=1
|
||||
3=2
|
||||
|
||||
[UIB Interbase6]
|
||||
GetDriverFunc=getSQLDriverINTERBASE
|
||||
LibraryName=dbexpUIBint6.dll
|
||||
VendorLib=GDS32.DLL
|
||||
BlobSize=-1
|
||||
CommitRetain=False
|
||||
Database=database.ib
|
||||
ErrorResourceFile=
|
||||
LocaleCode=0000
|
||||
Password=masterkey
|
||||
RoleName=RoleName
|
||||
ServerCharSet=
|
||||
SQLDialect=3
|
||||
Interbase TransIsolation=ReadCommited
|
||||
User_Name=SYSDBA
|
||||
WaitOnLocks=True
|
||||
|
||||
[UIB Interbase65]
|
||||
GetDriverFunc=getSQLDriverINTERBASE
|
||||
LibraryName=dbexpUIBint65.dll
|
||||
VendorLib=GDS32.DLL
|
||||
BlobSize=-1
|
||||
CommitRetain=False
|
||||
Database=database.ib
|
||||
ErrorResourceFile=
|
||||
LocaleCode=0000
|
||||
Password=masterkey
|
||||
RoleName=RoleName
|
||||
ServerCharSet=
|
||||
SQLDialect=3
|
||||
Interbase TransIsolation=ReadCommited
|
||||
User_Name=SYSDBA
|
||||
WaitOnLocks=True
|
||||
|
||||
[UIB Interbase7]
|
||||
GetDriverFunc=getSQLDriverINTERBASE
|
||||
LibraryName=dbexpUIBint7.dll
|
||||
VendorLib=GDS32.DLL
|
||||
BlobSize=-1
|
||||
CommitRetain=False
|
||||
Database=database.ib
|
||||
ErrorResourceFile=
|
||||
LocaleCode=0000
|
||||
Password=masterkey
|
||||
RoleName=RoleName
|
||||
ServerCharSet=
|
||||
SQLDialect=3
|
||||
Interbase TransIsolation=ReadCommited
|
||||
User_Name=SYSDBA
|
||||
WaitOnLocks=True
|
||||
|
||||
[UIB Interbase71]
|
||||
GetDriverFunc=getSQLDriverINTERBASE
|
||||
LibraryName=dbexpUIBint71.dll
|
||||
VendorLib=GDS32.DLL
|
||||
BlobSize=-1
|
||||
CommitRetain=False
|
||||
Database=database.ib
|
||||
ErrorResourceFile=
|
||||
LocaleCode=0000
|
||||
Password=masterkey
|
||||
RoleName=RoleName
|
||||
ServerCharSet=
|
||||
SQLDialect=3
|
||||
Interbase TransIsolation=ReadCommited
|
||||
User_Name=SYSDBA
|
||||
WaitOnLocks=True
|
||||
|
||||
[UIB FireBird102]
|
||||
GetDriverFunc=getSQLDriverINTERBASE
|
||||
LibraryName=dbexpUIBfire102.dll
|
||||
VendorLib=GDS32.DLL
|
||||
BlobSize=-1
|
||||
CommitRetain=False
|
||||
Database=database.fb
|
||||
ErrorResourceFile=
|
||||
LocaleCode=0000
|
||||
Password=masterkey
|
||||
RoleName=RoleName
|
||||
ServerCharSet=
|
||||
SQLDialect=3
|
||||
Interbase TransIsolation=ReadCommited
|
||||
User_Name=SYSDBA
|
||||
WaitOnLocks=True
|
||||
|
||||
[UIB FireBird103]
|
||||
GetDriverFunc=getSQLDriverINTERBASE
|
||||
LibraryName=dbexpUIBfire103.dll
|
||||
VendorLib=GDS32.DLL
|
||||
BlobSize=-1
|
||||
CommitRetain=False
|
||||
Database=database.fb
|
||||
ErrorResourceFile=
|
||||
LocaleCode=0000
|
||||
Password=masterkey
|
||||
RoleName=RoleName
|
||||
ServerCharSet=
|
||||
SQLDialect=3
|
||||
Interbase TransIsolation=ReadCommited
|
||||
User_Name=SYSDBA
|
||||
WaitOnLocks=True
|
||||
|
||||
[UIB FireBird15]
|
||||
GetDriverFunc=getSQLDriverINTERBASE
|
||||
LibraryName=dbexpUIBfire15.dll
|
||||
VendorLib=fbclient.dll
|
||||
BlobSize=-1
|
||||
CommitRetain=False
|
||||
Database=database.fb
|
||||
ErrorResourceFile=
|
||||
LocaleCode=0000
|
||||
Password=masterkey
|
||||
RoleName=RoleName
|
||||
ServerCharSet=
|
||||
SQLDialect=3
|
||||
Interbase TransIsolation=ReadCommited
|
||||
User_Name=SYSDBA
|
||||
WaitOnLocks=True
|
||||
|
||||
[UIB Yaffil]
|
||||
GetDriverFunc=getSQLDriverINTERBASE
|
||||
LibraryName=dbexpUIByaffil.dll
|
||||
VendorLib=GDS32.DLL
|
||||
BlobSize=-1
|
||||
CommitRetain=False
|
||||
Database=database.gdb
|
||||
ErrorResourceFile=
|
||||
LocaleCode=0000
|
||||
Password=masterkey
|
||||
RoleName=RoleName
|
||||
ServerCharSet=
|
||||
SQLDialect=3
|
||||
Interbase TransIsolation=ReadCommited
|
||||
User_Name=SYSDBA
|
||||
WaitOnLocks=True
|
102
Scripts/targetconfigs/example.dtsx
Normal file
102
Scripts/targetconfigs/example.dtsx
Normal file
@ -0,0 +1,102 @@
|
||||
<DTS:Executable
|
||||
xmlns:DTS="http://schemas.microsoft.com/sqlserver/Dts"
|
||||
DTS:refId="Package"
|
||||
DTS:CreationName="Microsoft.SqlServer.Dts.Runtime.Package">
|
||||
|
||||
<DTS:ConnectionManagers>
|
||||
|
||||
<!-- Database Connection 1 -->
|
||||
<DTS:ConnectionManager
|
||||
DTS:refId="Package.ConnectionManagers[DB1]"
|
||||
DTS:CreationName="OLEDB">
|
||||
<DTS:Properties>
|
||||
<DTS:Property DTS:Name="ConnectionString">
|
||||
Data Source=dbserver1;Initial Catalog=Database1;User ID=dbuser1;Password=dbpassword1;
|
||||
</DTS:Property>
|
||||
<DTS:Property DTS:Name="Description">Primary Database Connection</DTS:Property>
|
||||
<DTS:Property DTS:Name="RetainSameConnection">True</DTS:Property>
|
||||
</DTS:Properties>
|
||||
</DTS:ConnectionManager>
|
||||
|
||||
<!-- Database Connection 2 -->
|
||||
<DTS:ConnectionManager
|
||||
DTS:refId="Package.ConnectionManagers[DB2]"
|
||||
DTS:CreationName="OLEDB">
|
||||
<DTS:Properties>
|
||||
<DTS:Property DTS:Name="ConnectionString">
|
||||
Data Source=dbserver2;Initial Catalog=Database2;User ID=dbuser2;Password=dbpassword2;
|
||||
</DTS:Property>
|
||||
<DTS:Property DTS:Name="Description">Secondary Database Connection</DTS:Property>
|
||||
<DTS:Property DTS:Name="RetainSameConnection">True</DTS:Property>
|
||||
</DTS:Properties>
|
||||
</DTS:ConnectionManager>
|
||||
|
||||
<!-- FTP Connection -->
|
||||
<DTS:ConnectionManager
|
||||
DTS:refId="Package.ConnectionManagers[FTPConnection]"
|
||||
DTS:CreationName="FTP">
|
||||
<DTS:Properties>
|
||||
<DTS:Property DTS:Name="ServerName">ftpserver.com</DTS:Property>
|
||||
<DTS:Property DTS:Name="ServerUserName">ftpuser</DTS:Property>
|
||||
<DTS:Property DTS:Name="ServerPassword">ftppassword</DTS:Property>
|
||||
<DTS:Property DTS:Name="ServerPort">21</DTS:Property>
|
||||
<DTS:Property DTS:Name="Timeout">60</DTS:Property>
|
||||
<DTS:Property DTS:Name="UsePassiveMode">True</DTS:Property>
|
||||
</DTS:Properties>
|
||||
</DTS:ConnectionManager>
|
||||
|
||||
<!-- SMTP Connection -->
|
||||
<DTS:ConnectionManager
|
||||
DTS:refId="Package.ConnectionManagers[SMTPConnection]"
|
||||
DTS:CreationName="SMTP">
|
||||
<DTS:Properties>
|
||||
<DTS:Property DTS:Name="SmtpServer">smtp.mailserver.com</DTS:Property>
|
||||
<DTS:Property DTS:Name="Port">25</DTS:Property>
|
||||
<DTS:Property DTS:Name="UserName">smtpuser</DTS:Property>
|
||||
<DTS:Property DTS:Name="Password">smtppassword</DTS:Property>
|
||||
<DTS:Property DTS:Name="EnableSsl">True</DTS:Property>
|
||||
<DTS:Property DTS:Name="Description">SMTP Server Connection for Emails</DTS:Property>
|
||||
</DTS:Properties>
|
||||
</DTS:ConnectionManager>
|
||||
|
||||
</DTS:ConnectionManagers>
|
||||
|
||||
<!-- Tasks or Control Flow Elements -->
|
||||
<DTS:Executables>
|
||||
<!-- Sample Execute SQL Task using Database 1 -->
|
||||
<DTS:Executable
|
||||
DTS:refId="Package.Executable[SQLTask1]"
|
||||
DTS:CreationName="Microsoft.SqlServer.Dts.Tasks.ExecuteSQLTask.ExecuteSQLTask">
|
||||
<DTS:Properties>
|
||||
<DTS:Property DTS:Name="Connection">Package.ConnectionManagers[DB1]</DTS:Property>
|
||||
<DTS:Property DTS:Name="SQLStatement">SELECT * FROM Table1;</DTS:Property>
|
||||
</DTS:Properties>
|
||||
</DTS:Executable>
|
||||
|
||||
<!-- Sample FTP Task -->
|
||||
<DTS:Executable
|
||||
DTS:refId="Package.Executable[FTPTask1]"
|
||||
DTS:CreationName="Microsoft.SqlServer.Dts.Tasks.FtpTask.FtpTask">
|
||||
<DTS:Properties>
|
||||
<DTS:Property DTS:Name="Connection">Package.ConnectionManagers[FTPConnection]</DTS:Property>
|
||||
<DTS:Property DTS:Name="RemotePath">/data/</DTS:Property>
|
||||
<DTS:Property DTS:Name="LocalPath">C:\data\</DTS:Property>
|
||||
<DTS:Property DTS:Name="Operation">Receive</DTS:Property>
|
||||
</DTS:Properties>
|
||||
</DTS:Executable>
|
||||
|
||||
<!-- Sample Email Task -->
|
||||
<DTS:Executable
|
||||
DTS:refId="Package.Executable[EmailTask1]"
|
||||
DTS:CreationName="Microsoft.SqlServer.Dts.Tasks.SendMailTask.SendMailTask">
|
||||
<DTS:Properties>
|
||||
<DTS:Property DTS:Name="Connection">Package.ConnectionManagers[SMTPConnection]</DTS:Property>
|
||||
<DTS:Property DTS:Name="From">noreply@mailserver.com</DTS:Property>
|
||||
<DTS:Property DTS:Name="To">user@example.com</DTS:Property>
|
||||
<DTS:Property DTS:Name="Subject">SSIS Task Notification</DTS:Property>
|
||||
<DTS:Property DTS:Name="MessageSource">Task has been completed successfully.</DTS:Property>
|
||||
</DTS:Properties>
|
||||
</DTS:Executable>
|
||||
|
||||
</DTS:Executables>
|
||||
</DTS:Executable>
|
8
Scripts/targetconfigs/example.rdp
Normal file
8
Scripts/targetconfigs/example.rdp
Normal file
@ -0,0 +1,8 @@
|
||||
screen mode id:i:2
|
||||
desktopwidth:i:1920
|
||||
desktopheight:i:1080
|
||||
session bpp:i:32
|
||||
winposstr:s:0,3,0,0,800,600
|
||||
full address:s:yourserver.com
|
||||
username:s:YourUsername
|
||||
password 51:b:encrypted_password_value
|
34
Scripts/targetconfigs/jboss-cli.xml
Normal file
34
Scripts/targetconfigs/jboss-cli.xml
Normal file
@ -0,0 +1,34 @@
|
||||
<jboss-cli xmlns="urn:jboss:cli:1.2">
|
||||
<!-- The default controller host and port -->
|
||||
<controller>
|
||||
<host>127.0.0.1</host> <!-- Specify the host, e.g., localhost or a remote address -->
|
||||
<port>9990</port> <!-- The management port of JBoss/WildFly, default is 9990 -->
|
||||
</controller>
|
||||
|
||||
<!-- The authentication details for the controller -->
|
||||
<authentication>
|
||||
<username>admin</username> <!-- Your management user -->
|
||||
<password>password</password> <!-- Your management user's password -->
|
||||
</authentication>
|
||||
|
||||
<!-- Optionally enable secure connections using SSL -->
|
||||
<ssl>
|
||||
<enabled>false</enabled> <!-- Set to true if using SSL/TLS for the connection -->
|
||||
<keystore-path></keystore-path>
|
||||
<keystore-password></keystore-password>
|
||||
<truststore-path></truststore-path>
|
||||
<truststore-password></truststore-password>
|
||||
</ssl>
|
||||
|
||||
<!-- Custom properties for the CLI session -->
|
||||
<properties>
|
||||
<!-- For example, to disable coloring in the CLI output -->
|
||||
<property name="jboss.cli.color" value="false"/>
|
||||
</properties>
|
||||
|
||||
<!-- Configuration of command history behavior -->
|
||||
<history>
|
||||
<enabled>true</enabled> <!-- Whether to enable CLI command history -->
|
||||
<max-size>500</max-size> <!-- The maximum number of commands to store in history -->
|
||||
</history>
|
||||
</jboss-cli>
|
36
Scripts/targetconfigs/krb5.conf
Normal file
36
Scripts/targetconfigs/krb5.conf
Normal file
@ -0,0 +1,36 @@
|
||||
[libdefaults]
|
||||
default_realm = EXAMPLE.COM
|
||||
dns_lookup_realm = false
|
||||
dns_lookup_kdc = true
|
||||
rdns = false
|
||||
ticket_lifetime = 24h
|
||||
forwardable = yes
|
||||
|
||||
[realms]
|
||||
EXAMPLE.COM = {
|
||||
kdc = ad.example.com
|
||||
admin_server = ad.example.com
|
||||
default_domain = example.com
|
||||
}
|
||||
|
||||
[domain_realm]
|
||||
.example.com = EXAMPLE.COM
|
||||
example.com = EXAMPLE.COM
|
||||
|
||||
# Insecure: Exposing credentials in krb5.conf for automated ticket retrieval (NOT recommended)
|
||||
[login]
|
||||
krb5_get_init_creds_keytab = false
|
||||
|
||||
# Insecure: Plaintext credentials for AD principal
|
||||
[appdefaults]
|
||||
kinit = {
|
||||
principal = admin@EXAMPLE.COM
|
||||
password = P@ssw0rd123
|
||||
}
|
||||
|
||||
pam = {
|
||||
debug = false
|
||||
ticket_lifetime = 36000
|
||||
renew_lifetime = 36000
|
||||
forwardable = true
|
||||
}
|
192
Scripts/targetconfigs/machine.config
Normal file
192
Scripts/targetconfigs/machine.config
Normal file
@ -0,0 +1,192 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<configuration>
|
||||
<configSections>
|
||||
<!-- Section handlers for configuration settings -->
|
||||
<sectionGroup name="system.net">
|
||||
<section name="settings" type="System.Net.Configuration.SettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
|
||||
</sectionGroup>
|
||||
</configSections>
|
||||
|
||||
<!-- App settings for all .NET applications -->
|
||||
<appSettings>
|
||||
<!-- Example of username and password in appSettings -->
|
||||
<add key="ApplicationUsername" value="myAppUser" />
|
||||
<add key="ApplicationPassword" value="myAppPassword" />
|
||||
</appSettings>
|
||||
|
||||
<!-- OAuth/Token-Based Service Endpoints -->
|
||||
<appSettings>
|
||||
<add key="OAuthServiceUrl" value="https://oauth.example.com/token" />
|
||||
<add key="ClientId" value="myClientId" />
|
||||
<add key="ClientSecret" value="myClientSecret" />
|
||||
</appSettings>
|
||||
|
||||
<!-- WebClient or HttpClient Credentials -->
|
||||
<appSettings>
|
||||
<add key="ServiceUrl" value="https://service.example.com/api" />
|
||||
<add key="ServiceUserName" value="serviceUser" />
|
||||
<add key="ServicePassword" value="servicePassword" />
|
||||
</appSettings>
|
||||
|
||||
<!-- AppSettings Section -->
|
||||
<appSettings>
|
||||
<add key="ApiEndpoint" value="https://api.example.com/endpoint" />
|
||||
<add key="ApiUserName" value="apiUser" />
|
||||
<add key="ApiPassword" value="apiPassword" />
|
||||
</appSettings>
|
||||
|
||||
<!-- Custom Sections for Service Credentials -->
|
||||
<configSections>
|
||||
<section name="serviceCredentials" type="System.Configuration.NameValueSectionHandler" />
|
||||
</configSections>
|
||||
|
||||
<serviceCredentials>
|
||||
<add key="ServiceUrl" value="https://customservice.example.com" />
|
||||
<add key="UserName" value="customUser" />
|
||||
<add key="Password" value="customPassword" />
|
||||
</serviceCredentials>
|
||||
|
||||
<!-- Connection string settings -->
|
||||
<connectionStrings>
|
||||
<!-- SQL Server (Standard Authentication) -->
|
||||
<add name="SqlServerConnection"
|
||||
connectionString="Data Source=localhost;Initial Catalog=myDB;User ID=myUser;Password=myPass;"
|
||||
providerName="System.Data.SqlClient" />
|
||||
|
||||
<!-- SQL Server (Windows Authentication) -->
|
||||
<add name="SqlServerIntegratedSecurity"
|
||||
connectionString="Data Source=localhost;Initial Catalog=myDB;Integrated Security=True;"
|
||||
providerName="System.Data.SqlClient" />
|
||||
|
||||
<!-- SQL Server (Encrypted Connection) -->
|
||||
<add name="SqlServerEncryptedConnection"
|
||||
connectionString="Data Source=localhost;Initial Catalog=myDB;User ID=myUser;Password=myPass;Encrypt=True;TrustServerCertificate=False;"
|
||||
providerName="System.Data.SqlClient" />
|
||||
|
||||
<!-- MySQL (Standard Connection) -->
|
||||
<add name="MySqlConnection"
|
||||
connectionString="Server=localhost;Database=myDB;User=myUser;Password=myPass;"
|
||||
providerName="MySql.Data.MySqlClient" />
|
||||
|
||||
<!-- MySQL (SSL/Encrypted Connection) -->
|
||||
<add name="MySqlConnectionWithSSL"
|
||||
connectionString="Server=localhost;Database=myDB;User=myUser;Password=myPass;SslMode=Required;"
|
||||
providerName="MySql.Data.MySqlClient" />
|
||||
|
||||
<!-- PostgreSQL (Standard Connection) -->
|
||||
<add name="PostgreSqlConnection"
|
||||
connectionString="Host=localhost;Port=5432;Database=myDB;Username=myUser;Password=myPass;"
|
||||
providerName="Npgsql" />
|
||||
|
||||
<!-- Oracle (Standard Connection) -->
|
||||
<add name="OracleConnection"
|
||||
connectionString="Data Source=MyOracleDB;User Id=oracleUser;Password=oraclePass;"
|
||||
providerName="System.Data.OracleClient" />
|
||||
|
||||
<!-- Oracle (TNS Connection) -->
|
||||
<add name="OracleTNSConnection"
|
||||
connectionString="Data Source=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=myHost)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=myService)));User Id=oracleUser;Password=oraclePass;"
|
||||
providerName="Oracle.ManagedDataAccess.Client" />
|
||||
|
||||
<!-- SQLite (No Authentication Required) -->
|
||||
<add name="SQLiteConnection"
|
||||
connectionString="Data Source=myDatabase.db;"
|
||||
providerName="System.Data.SQLite" />
|
||||
|
||||
<!-- Microsoft Access (OLEDB with username and password) -->
|
||||
<add name="AccessConnection"
|
||||
connectionString="Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\myAccessFile.accdb;User Id=admin;Password=myPass;"
|
||||
providerName="System.Data.OleDb" />
|
||||
|
||||
<!-- Azure SQL (Standard SQL Authentication) -->
|
||||
<add name="AzureSqlConnection"
|
||||
connectionString="Server=tcp:myserver.database.windows.net,1433;Initial Catalog=myDB;Persist Security Info=False;User ID=myUser;Password=myPass;MultipleActiveResultSets=False;Encrypt=True;TrustServerCertificate=False;Connection Timeout=30;"
|
||||
providerName="System.Data.SqlClient" />
|
||||
</connectionStrings>
|
||||
|
||||
<!-- Compilation settings for applications -->
|
||||
<system.web>
|
||||
<compilation debug="false" />
|
||||
<authentication mode="Forms">
|
||||
<!-- Forms authentication with username and password -->
|
||||
<forms loginUrl="login.aspx" timeout="30">
|
||||
<credentials passwordFormat="Clear">
|
||||
<user name="user1" password="password1" />
|
||||
<user name="user2" password="password2" />
|
||||
</credentials>
|
||||
</forms>
|
||||
</authentication>
|
||||
<customErrors mode="Off" />
|
||||
</system.web>
|
||||
|
||||
<!-- Machine-wide database settings -->
|
||||
<system.data>
|
||||
<DbProviderFactories>
|
||||
<add name="Microsoft SQL Server Compact Data Provider"
|
||||
invariant="System.Data.SqlServerCe.4.0"
|
||||
description=".NET Framework Data Provider for Microsoft SQL Server Compact"
|
||||
type="System.Data.SqlServerCe.SqlCeProviderFactory, System.Data.SqlServerCe, Version=4.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91" />
|
||||
</DbProviderFactories>
|
||||
</system.data>
|
||||
|
||||
<!-- Credentials for SMTP (system.net) -->
|
||||
<system.net>
|
||||
<mailSettings>
|
||||
<smtp from="you@example.com">
|
||||
<network host="smtp.example.com" port="587"
|
||||
userName="smtpUser"
|
||||
password="smtpPassword"
|
||||
defaultCredentials="false" />
|
||||
</smtp>
|
||||
</mailSettings>
|
||||
</system.net>
|
||||
|
||||
<!-- Global assembly cache settings -->
|
||||
<runtime>
|
||||
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Web" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
|
||||
<bindingRedirect oldVersion="1.0.0.0-4.0.0.0" newVersion="4.0.0.0" />
|
||||
</dependentAssembly>
|
||||
</assemblyBinding>
|
||||
</runtime>
|
||||
|
||||
<!-- Logging and tracing settings -->
|
||||
<system.diagnostics>
|
||||
<sources>
|
||||
<source name="System.Net" switchValue="Verbose">
|
||||
<listeners>
|
||||
<add name="consoleListener" type="System.Diagnostics.ConsoleTraceListener" />
|
||||
</listeners>
|
||||
</source>
|
||||
</sources>
|
||||
</system.diagnostics>
|
||||
|
||||
<!-- WCF (Windows Communication Foundation) Service Bindings -->
|
||||
<system.serviceModel>
|
||||
<bindings>
|
||||
<basicHttpBinding>
|
||||
<binding name="MyBinding">
|
||||
<security mode="Transport">
|
||||
<transport clientCredentialType="Basic" />
|
||||
</security>
|
||||
</binding>
|
||||
</basicHttpBinding>
|
||||
</bindings>
|
||||
<client>
|
||||
<endpoint address="https://example.com/service"
|
||||
binding="basicHttpBinding"
|
||||
bindingConfiguration="MyBinding"
|
||||
contract="IMyService" />
|
||||
</client>
|
||||
<behaviors>
|
||||
<endpointBehaviors>
|
||||
<behavior>
|
||||
<clientCredentials>
|
||||
<userName userName="serviceUser" password="servicePassword" />
|
||||
</clientCredentials>
|
||||
</behavior>
|
||||
</endpointBehaviors>
|
||||
</behaviors>
|
||||
</system.serviceModel>
|
||||
</configuration>
|
37
Scripts/targetconfigs/my.cnf
Normal file
37
Scripts/targetconfigs/my.cnf
Normal file
@ -0,0 +1,37 @@
|
||||
|
||||
|
||||
[client]
|
||||
# Client configuration options
|
||||
user=yourusername
|
||||
password=yourpassword
|
||||
port=3306
|
||||
socket=/var/run/mysqld/mysqld.sock
|
||||
|
||||
[mysqld]
|
||||
# MySQL server configuration
|
||||
user=mysql
|
||||
pid-file=/var/run/mysqld/mysqld.pid
|
||||
socket=/var/run/mysqld/mysqld.sock
|
||||
port=3306
|
||||
basedir=/usr
|
||||
datadir=/var/lib/mysql
|
||||
tmpdir=/tmp
|
||||
log-error=/var/log/mysql/error.log
|
||||
bind-address=127.0.0.1
|
||||
max_connections=100
|
||||
skip-external-locking
|
||||
|
||||
# Buffer pool size for InnoDB
|
||||
innodb_buffer_pool_size=256M
|
||||
|
||||
# Other MySQL server settings
|
||||
max_allowed_packet=16M
|
||||
query_cache_limit=1M
|
||||
query_cache_size=16M
|
||||
log_bin=/var/log/mysql/mysql-bin.log
|
||||
|
||||
[mysql]
|
||||
# Client-specific settings for the MySQL command-line tool
|
||||
user=yourusername
|
||||
password=yourpassword
|
||||
no-auto-rehash
|
26
Scripts/targetconfigs/php.ini
Normal file
26
Scripts/targetconfigs/php.ini
Normal file
@ -0,0 +1,26 @@
|
||||
[PHP]
|
||||
; Basic PHP settings
|
||||
|
||||
; Maximum size of POST data allowed
|
||||
post_max_size = 8M
|
||||
|
||||
; Maximum allowed size for uploaded files
|
||||
upload_max_filesize = 2M
|
||||
|
||||
; INSECURE: Storing database credentials in php.ini (not recommended)
|
||||
; This exposes credentials to anyone with access to php.ini or via phpinfo() if not secured.
|
||||
|
||||
mysql.default_user = "dbuser"
|
||||
mysql.default_password = "P@ssw0rd123"
|
||||
mysql.default_host = "localhost"
|
||||
mysql.default_database = "example_db"
|
||||
|
||||
; Log errors to a file
|
||||
log_errors = On
|
||||
error_log = /var/log/php_errors.log
|
||||
|
||||
; Ensure that this option is Off to avoid disclosing sensitive configuration details
|
||||
expose_php = Off
|
||||
|
||||
; Ensure that phpinfo() is secured or disabled to prevent exposure of configuration data
|
||||
disable_functions = phpinfo
|
2
Scripts/targetconfigs/pureftpd.passwd
Normal file
2
Scripts/targetconfigs/pureftpd.passwd
Normal file
@ -0,0 +1,2 @@
|
||||
username:$1$X9p2ER8W$M7P5CxX5CHPxuAiB5BBJq/:1001:1001::/home/ftp/username:/bin/false::
|
||||
user2:$1$XYz3ERzW$G9P7CxF6CPxxuAiB6BBJq/:1002:1002::/home/ftp/user2:/bin/false::
|
37
Scripts/targetconfigs/putty.reg
Normal file
37
Scripts/targetconfigs/putty.reg
Normal file
@ -0,0 +1,37 @@
|
||||
Windows Registry Editor Version 5.00
|
||||
|
||||
[HKEY_CURRENT_USER\Software\SimonTatham\PuTTY]
|
||||
"TermWidth"=dword:00000050
|
||||
"TermHeight"=dword:00000018
|
||||
"WinTitle"="PuTTY"
|
||||
|
||||
[HKEY_CURRENT_USER\Software\SimonTatham\PuTTY\Sessions\Default%20Settings]
|
||||
"HostName"=""
|
||||
"PortNumber"=dword:00000016
|
||||
"Protocol"="ssh"
|
||||
"TerminalType"="xterm"
|
||||
"Font"="Courier New"
|
||||
"FontHeight"=dword:0000000a
|
||||
"WinHeight"=dword:00000018
|
||||
"WinWidth"=dword:00000050
|
||||
"ConnectionSharing"=dword:00000001
|
||||
|
||||
[HKEY_CURRENT_USER\Software\SimonTatham\PuTTY\Sessions\My%20SSH%20Session]
|
||||
"HostName"="192.168.1.100"
|
||||
"PortNumber"=dword:00000016
|
||||
"Protocol"="ssh"
|
||||
"TerminalType"="xterm"
|
||||
"Font"="Courier New"
|
||||
"FontHeight"=dword:0000000a
|
||||
"WinHeight"=dword:00000018
|
||||
"WinWidth"=dword:00000050
|
||||
"Compression"=dword:00000001
|
||||
"ConnectionSharing"=dword:00000001
|
||||
"PublicKeyFile"="C:\\Users\\YourUsername\\.ssh\\id_rsa.ppk"
|
||||
"LogFileName"="C:\\putty_logs\\my_session.log"
|
||||
"LogType"=dword:00000001
|
||||
"LogFileClash"=dword:00000001
|
||||
"LogFlush"=dword:00000001
|
||||
"LogOmitPasswords"=dword:00000001
|
||||
"LogOmitData"=dword:00000000
|
||||
"UserName"="myusername" ; Username stored here
|
111
Scripts/targetconfigs/server.xml
Normal file
111
Scripts/targetconfigs/server.xml
Normal file
@ -0,0 +1,111 @@
|
||||
<!--
|
||||
Copyright (c) 2017,2023 IBM Corporation and others.
|
||||
All rights reserved. This program and the accompanying materials
|
||||
are made available under the terms of the Eclipse Public License 2.0
|
||||
which accompanies this distribution, and is available at
|
||||
http://www.eclipse.org/legal/epl-2.0/
|
||||
|
||||
SPDX-License-Identifier: EPL-2.0
|
||||
|
||||
Contributors:
|
||||
IBM Corporation - initial API and implementation
|
||||
-->
|
||||
<server>
|
||||
<include location="../fatTestPorts.xml" />
|
||||
|
||||
<featureManager>
|
||||
<feature>componenttest-1.0</feature>
|
||||
<feature>restConnector-2.0</feature>
|
||||
<feature>jdbc-4.2</feature>
|
||||
<feature>mpOpenApi-1.0</feature>
|
||||
</featureManager>
|
||||
|
||||
<variable name="onError" value="FAIL"/>
|
||||
|
||||
<keyStore id="defaultKeyStore" password="Liberty"/>
|
||||
|
||||
<basicRegistry>
|
||||
<user name="adminuser" password="adminpwd" />
|
||||
<user name="reader" password="readerpwd" />
|
||||
<user name="user" password="userpwd" />
|
||||
</basicRegistry>
|
||||
<administrator-role>
|
||||
<user>adminuser</user>
|
||||
</administrator-role>
|
||||
<reader-role>
|
||||
<user>reader</user>
|
||||
</reader-role>
|
||||
|
||||
<library id="Derby">
|
||||
<file name="${shared.resource.dir}/derby/derby.jar"/>
|
||||
</library>
|
||||
|
||||
<variable name="DB_USER" value="dbuser"/>
|
||||
<variable name="DB_PASS" value="dbpass"/>
|
||||
|
||||
<dataSource id="DataSourceWithoutJDBCDriver" jndiName="jdbc/withoutJDBCDriver" connectionSharing="MatchCurrentState" transactional="false">
|
||||
<containerAuthData id="dbuser-auth" user="dbuser" password="{xor}Oz0vPiws"/>
|
||||
<properties.derby.embedded databaseName="memory:withoutJDBCDriver"/>
|
||||
</dataSource>
|
||||
|
||||
<dataSource id="DefaultDataSource" isolationLevel="TRANSACTION_READ_COMMITTED">
|
||||
<jdbcDriver libraryRef="Derby"/>
|
||||
<!-- user/password settings defined in bootstrap.properties -->
|
||||
<properties.derby.embedded databaseName="memory:defaultdb" createDatabase="create"
|
||||
user="${DB_USER}" password="${DB_PASS}"/>
|
||||
</dataSource>
|
||||
|
||||
<dataSource id="jdbc/nonexistentdb" jndiName="${id}">
|
||||
<connectionManager id="NestedConPool" agedTimeout="1h2m3s" connectionTimeout="0s" maxIdleTime="40m" reapTime="2m30s"/>
|
||||
<jdbcDriver libraryRef="Derby"/>
|
||||
<properties.derby.embedded databaseName="memory:doesNotExist"/>
|
||||
</dataSource>
|
||||
|
||||
<transaction enableHADBPeerLocking="false">
|
||||
<dataSource transactional="false" containerAuthDataRef="auth1">
|
||||
<connectionManager maxPoolSize="5" connectionTimeout="0s"/>
|
||||
<jdbcDriver libraryRef="Derby"/>
|
||||
<properties.derby.embedded databaseName="memory:recoverydb" createDatabase="create"/>
|
||||
</dataSource>
|
||||
</transaction>
|
||||
|
||||
<!-- ejbLite and batch features are intentionally disabled -->
|
||||
<databaseStore id="unavailableDBStore">
|
||||
<dataSource id="unavailableDS">
|
||||
<jdbcDriver libraryRef="Derby"/>
|
||||
<properties.derby.embedded databaseName="memory:unavailabledb"/>
|
||||
</dataSource>
|
||||
</databaseStore>
|
||||
|
||||
<!-- mongo feature intentionally disabled, so it doesn't matter that we are using an incorrect library -->
|
||||
<mongo id="mongo" libraryRef="DerbyLib"/>
|
||||
<mongoDB id="MongoDBNotEnabled" jndiName="mongo/db" mongoRef="mongo" databaseName="db-test" />
|
||||
|
||||
<authData id="auth1" user="dbuser" password="dbpass"/>
|
||||
|
||||
<authData id="auth2" user="dbuser" password="wrong_password"/>
|
||||
|
||||
<dataSource jndiName="jdbc/defaultauth" containerAuthDataRef="auth1"> <!-- id omitted for testing -->
|
||||
<connectionManager enableSharingForDirectLookups="false"/>
|
||||
<jdbcDriver id="NestedDerbyDriver" libraryRef="Derby"
|
||||
javax.sql.DataSource="org.apache.derby.jdbc.EmbeddedDataSource"
|
||||
javax.sql.ConnectionPoolDataSource="org.apache.derby.jdbc.EmbeddedConnectionPoolDataSource"
|
||||
javax.sql.XADataSource="org.apache.derby.jdbc.EmbeddedXADataSource"/>
|
||||
<onConnect>SET CURRENT SCHEMA = APP</onConnect>
|
||||
<onConnect>SET CURRENT SQLID = APP</onConnect>
|
||||
<properties.derby.embedded databaseName="memory:defaultdb" createDatabase="create"/>
|
||||
</dataSource>
|
||||
|
||||
<dataSource id="WrongDefaultAuth" jndiName="jdbc/wrongdefaultauth"
|
||||
connectionManagerRef="pool1" containerAuthDataRef="auth2" commitOrRollbackOnCleanup="rollback"
|
||||
invalidProperty="The property's value." jdbcDriverRef="DerbyDriver" queryTimeout="2m10s"
|
||||
recoveryAuthDataRef="auth2" statementCacheSize="15" validationTimeout="20s">
|
||||
<properties databaseName="memory:defaultdb" createDatabase="create"/>
|
||||
</dataSource>
|
||||
|
||||
<connectionManager id="pool1" maxPoolSize="10" purgePolicy="ValidateAllConnections"/>
|
||||
|
||||
<jdbcDriver id="DerbyDriver" libraryRef="Derby"/>
|
||||
|
||||
<javaPermission codebase="${shared.resource.dir}/derby/derby.jar" className="java.security.AllPermission"/>
|
||||
</server>
|
18
Scripts/targetconfigs/setting.ini
Normal file
18
Scripts/targetconfigs/setting.ini
Normal file
@ -0,0 +1,18 @@
|
||||
[GeneralSettings]
|
||||
app_name = MyApp
|
||||
version = 1.0.0
|
||||
theme = dark
|
||||
|
||||
[DatabaseSettings]
|
||||
host = localhost
|
||||
port = 3306
|
||||
username = dbuser
|
||||
password = dbpass
|
||||
|
||||
[CustomSettings]
|
||||
user = myuser
|
||||
pass = mypass
|
||||
|
||||
[Logging]
|
||||
log_level = DEBUG
|
||||
log_file = /var/log/myapp.log
|
4
Scripts/targetconfigs/shadow
Normal file
4
Scripts/targetconfigs/shadow
Normal file
@ -0,0 +1,4 @@
|
||||
root:$6$examplehash$E5iNRLtC5/j/kCkRhYlOro.Y9PzE0Gv8jlsfLZUNwlEm7HMBZSO9.mUvefOrKT6BjKSO4obQ.EtCZKhQgmgwV0:19000:0:99999:7:::
|
||||
user1:$6$examplehash$OwhxlyS5hoxfFE4tmtyOR8Hw1k8PLqokP9FYxYP8QMG3wO0u.0Xvd4g/0Udr6BQZilJk4k7XwlxJ6p0RJ2IL5/:19000:0:99999:7:::
|
||||
nobody:*:19000:0:99999:7:::
|
||||
daemon:*:19000:0:99999:7:::
|
48
Scripts/targetconfigs/smb.conf
Normal file
48
Scripts/targetconfigs/smb.conf
Normal file
@ -0,0 +1,48 @@
|
||||
[global]
|
||||
# General server settings
|
||||
workgroup = EXAMPLE
|
||||
realm = EXAMPLE.COM
|
||||
server string = Samba Server Version %v
|
||||
security = ads
|
||||
encrypt passwords = yes
|
||||
kerberos method = secrets and keytab
|
||||
log file = /var/log/samba/log.%m
|
||||
max log size = 50
|
||||
|
||||
# Domain and authentication settings
|
||||
idmap config * : backend = tdb
|
||||
idmap config EXAMPLE : backend = rid
|
||||
idmap config EXAMPLE : range = 10000-20000
|
||||
template shell = /bin/bash
|
||||
winbind use default domain = yes
|
||||
winbind offline logon = yes
|
||||
winbind enum users = yes
|
||||
winbind enum groups = yes
|
||||
|
||||
# INSECURE: Credentials for binding to Active Directory (avoid plaintext credentials)
|
||||
# This exposes the AD admin account and password directly in the smb.conf file
|
||||
username = ad-admin
|
||||
password = P@ssw0rd123
|
||||
|
||||
# Kerberos keytab file location (more secure than plaintext credentials)
|
||||
dedicated keytab file = /etc/krb5.keytab
|
||||
kerberos method = secrets and keytab
|
||||
|
||||
[homes]
|
||||
comment = Home Directories
|
||||
browseable = no
|
||||
writable = yes
|
||||
|
||||
[printers]
|
||||
comment = All Printers
|
||||
path = /var/spool/samba
|
||||
printable = yes
|
||||
guest ok = no
|
||||
writable = no
|
||||
browseable = no
|
||||
|
||||
[shared]
|
||||
path = /srv/samba/shared
|
||||
browseable = yes
|
||||
read only = no
|
||||
valid users = @staff
|
59
Scripts/targetconfigs/sssd.conf
Normal file
59
Scripts/targetconfigs/sssd.conf
Normal file
@ -0,0 +1,59 @@
|
||||
[sssd]
|
||||
config_file_version = 2
|
||||
services = nss, pam, ssh, sudo
|
||||
domains = example.com
|
||||
|
||||
[nss]
|
||||
filter_groups = root
|
||||
filter_users = root
|
||||
|
||||
[pam]
|
||||
offline_credentials_expiration = 2
|
||||
offline_failed_login_attempts = 3
|
||||
offline_failed_login_delay = 5
|
||||
|
||||
[domain/example.com]
|
||||
# Basic configuration for connecting to Active Directory
|
||||
id_provider = ad
|
||||
auth_provider = ad
|
||||
access_provider = ad
|
||||
|
||||
# Enable Kerberos for authentication
|
||||
krb5_realm = EXAMPLE.COM
|
||||
krb5_server = ad.example.com
|
||||
krb5_kpasswd = ad.example.com
|
||||
|
||||
# Active Directory server information
|
||||
ad_domain = example.com
|
||||
ad_server = ad.example.com
|
||||
ad_hostname = linuxclient.example.com
|
||||
|
||||
# INSECURE PRACTICE: Hardcoding AD username and password in sssd.conf
|
||||
# These values will expose the username and password in plaintext
|
||||
ldap_default_bind_dn = cn=admin,cn=users,dc=example,dc=com
|
||||
ldap_default_authtok = P@ssw0rd123
|
||||
|
||||
# Using the above configuration exposes credentials to anyone who can read this file
|
||||
|
||||
# User and group filtering (optional)
|
||||
ldap_id_mapping = true
|
||||
|
||||
# Performance optimizations
|
||||
cache_credentials = true
|
||||
enumerate = false
|
||||
use_fully_qualified_names = false
|
||||
|
||||
# Access Control (Optional: limit login to users in AD group 'LinuxAdmins')
|
||||
access_provider = simple
|
||||
simple_allow_groups = LinuxAdmins
|
||||
|
||||
# Security settings
|
||||
min_id = 1000
|
||||
fallback_homedir = /home/%u
|
||||
|
||||
# Timeout and retry settings for better AD stability
|
||||
ldap_search_timeout = 10
|
||||
ldap_connection_expire_timeout = 60
|
||||
|
||||
# Debugging options (uncomment for troubleshooting)
|
||||
# debug_level = 9
|
54
Scripts/targetconfigs/standalone.xml
Normal file
54
Scripts/targetconfigs/standalone.xml
Normal file
@ -0,0 +1,54 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<server xmlns="urn:jboss:domain:11.0">
|
||||
|
||||
<extensions>
|
||||
<extension module="org.jboss.as.connector"/>
|
||||
<!-- Other extensions -->
|
||||
</extensions>
|
||||
|
||||
<subsystem xmlns="urn:jboss:domain:datasources:5.0">
|
||||
<datasources>
|
||||
<datasource jndi-name="java:/jdbc/MyDS" pool-name="MyDS_Pool" enabled="true" use-java-context="true">
|
||||
<connection-url>jdbc:mysql://localhost:3306/mydatabase</connection-url>
|
||||
<driver>mysql</driver>
|
||||
<security>
|
||||
<user-name>${VAULT::vault::mydbuser}</user-name>
|
||||
<password>${VAULT::vault::mydbpassword}</password>
|
||||
</security>
|
||||
<pool>
|
||||
<min-pool-size>5</min-pool-size>
|
||||
<max-pool-size>20</max-pool-size>
|
||||
</pool>
|
||||
<validation>
|
||||
<valid-connection-checker class-name="org.jboss.jca.adapters.jdbc.extensions.mysql.MySQLValidConnectionChecker"/>
|
||||
<validate-on-match>true</validate-on-match>
|
||||
<background-validation>true</background-validation>
|
||||
</validation>
|
||||
<timeout>
|
||||
<blocking-timeout-millis>5000</blocking-timeout-millis>
|
||||
</timeout>
|
||||
<statement>
|
||||
<track-statements>false</track-statements>
|
||||
</statement>
|
||||
</datasource>
|
||||
|
||||
<drivers>
|
||||
<driver name="mysql" module="com.mysql">
|
||||
<xa-datasource-class>com.mysql.jdbc.jdbc2.optional.MysqlXADataSource</xa-datasource-class>
|
||||
</driver>
|
||||
</drivers>
|
||||
</datasources>
|
||||
</subsystem>
|
||||
|
||||
<security>
|
||||
<vault>
|
||||
<vault-option name="KEYSTORE_URL" value="${jboss.server.config.dir}/vault.keystore"/>
|
||||
<vault-option name="KEYSTORE_PASSWORD" value="password"/>
|
||||
<vault-option name="VAULT_BLOCK" value="vault"/>
|
||||
<vault-option name="ATTRIBUTE" value="my_password"/>
|
||||
</vault>
|
||||
</security>
|
||||
|
||||
<!-- Other subsystems like transactions, deployments, security, etc. -->
|
||||
|
||||
</server>
|
34
Scripts/targetconfigs/sysprep.inf
Normal file
34
Scripts/targetconfigs/sysprep.inf
Normal file
@ -0,0 +1,34 @@
|
||||
[Unattended]
|
||||
OemSkipEula=Yes
|
||||
InstallFilesPath=C:\sysprep\i386
|
||||
|
||||
[GuiUnattended]
|
||||
AdminPassword=YourAdminPassword
|
||||
EncryptedAdminPassword=NO
|
||||
OEMSkipRegional=1
|
||||
TimeZone=004
|
||||
OemSkipWelcome=1
|
||||
|
||||
[UserData]
|
||||
ProductKey=XXXXX-XXXXX-XXXXX-XXXXX-XXXXX
|
||||
FullName="Your Name"
|
||||
OrgName="Your Organization"
|
||||
ComputerName=*
|
||||
|
||||
[Display]
|
||||
BitsPerPel=32
|
||||
Xresolution=1024
|
||||
YResolution=768
|
||||
Vrefresh=60
|
||||
|
||||
[SetupMgr]
|
||||
DistFolder=C:\sysprep\i386
|
||||
DistShare=windist
|
||||
|
||||
[Identification]
|
||||
JoinDomain=YourDomain
|
||||
DomainAdmin=YourDomainAdmin
|
||||
DomainAdminPassword=YourDomainAdminPassword
|
||||
|
||||
[Networking]
|
||||
InstallDefaultComponents=Yes
|
21
Scripts/targetconfigs/tnsnames.ora
Normal file
21
Scripts/targetconfigs/tnsnames.ora
Normal file
@ -0,0 +1,21 @@
|
||||
MYDB =
|
||||
(DESCRIPTION =
|
||||
(ADDRESS = (PROTOCOL = TCP)(HOST = mydbserver.example.com)(PORT = 1521))
|
||||
(CONNECT_DATA =
|
||||
(SERVICE_NAME = mydbservice)
|
||||
)
|
||||
)
|
||||
(USER = myusername)
|
||||
(PASSWORD = mypassword)
|
||||
|
||||
MYDB_ALIAS =
|
||||
(DESCRIPTION =
|
||||
(ADDRESS_LIST =
|
||||
(ADDRESS = (PROTOCOL = TCP)(HOST = mydbserver.example.com)(PORT = 1521))
|
||||
)
|
||||
(CONNECT_DATA =
|
||||
(SERVICE_NAME = mydbservice)
|
||||
)
|
||||
)
|
||||
(USER = anotheruser)
|
||||
(PASSWORD = anotherpassword)
|
36
Scripts/targetconfigs/tomcat-users.xml
Normal file
36
Scripts/targetconfigs/tomcat-users.xml
Normal file
@ -0,0 +1,36 @@
|
||||
<?xml version='1.0' encoding='utf-8'?>
|
||||
<!--
|
||||
Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
contributor license agreements. See the NOTICE file distributed with
|
||||
this work for additional information regarding copyright ownership.
|
||||
The ASF licenses this file to You under the Apache License, Version 2.0
|
||||
(the "License"); you may not use this file except in compliance with
|
||||
the License. You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
-->
|
||||
<tomcat-users>
|
||||
<!--
|
||||
NOTE: By default, no user is included in the "manager-gui" role required
|
||||
to operate the "/manager/html" web application. If you wish to use this app,
|
||||
you must define such a user - the username and password are arbitrary.
|
||||
-->
|
||||
<!--
|
||||
NOTE: The sample user and role entries below are wrapped in a comment
|
||||
and thus are ignored when reading this file. Do not forget to remove
|
||||
<!.. ..> that surrounds them.
|
||||
-->
|
||||
<role rolename="admin-gui"/>
|
||||
<role rolename="admin-script"/>
|
||||
<role rolename="manager-gui"/>
|
||||
<role rolename="manager-status"/>
|
||||
<role rolename="manager-script"/>
|
||||
<role rolename="manager-jmx"/>
|
||||
<user name="admin" password="admin" roles="admin-gui,admin-script,manager-gui,manager-status,manager-script,manager-jmx"/>
|
||||
</tomcat-users>
|
49
Scripts/targetconfigs/unattend-base64.xml
Normal file
49
Scripts/targetconfigs/unattend-base64.xml
Normal file
@ -0,0 +1,49 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<unattend xmlns="urn:schemas-microsoft-com:unattend">
|
||||
<settings pass="specialize">
|
||||
<component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State">
|
||||
<ComputerName>*</ComputerName>
|
||||
<RegisteredOrganization>acme corp.</RegisteredOrganization>
|
||||
<RegisteredOwner>acme corp.</RegisteredOwner>
|
||||
<WindowsFeatures>
|
||||
<ShowInternetExplorer>false</ShowInternetExplorer>
|
||||
</WindowsFeatures>
|
||||
<AutoLogon>
|
||||
<Username>LocalAdmin</Username>
|
||||
<Enabled>true</Enabled>
|
||||
<LogonCount>10</LogonCount>
|
||||
<Password>
|
||||
<Value>UEBzc3dvcmQxMjMh</Value> <!-- This is Base64 for 'P@ssword123!' -->
|
||||
<PlainText>false</PlainText>
|
||||
</Password>
|
||||
</AutoLogon>
|
||||
</component>
|
||||
</settings>
|
||||
|
||||
<settings pass="oobeSystem">
|
||||
<component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State">
|
||||
<UserAccounts>
|
||||
<LocalAccounts>
|
||||
<LocalAccount wcm:action="add">
|
||||
<Password>
|
||||
<Value>UEBzc3dvcmQxMjMh</Value> <!-- This is Base64 for 'P@ssword123!' -->
|
||||
<PlainText>false</PlainText>
|
||||
</Password>
|
||||
<Group>Administrators</Group>
|
||||
<Description>Provisioning Admin</Description>
|
||||
<DisplayName>LocalAdmin</DisplayName>
|
||||
<Name>LocalAdmin</Name>
|
||||
</LocalAccount>
|
||||
</LocalAccounts>
|
||||
</UserAccounts>
|
||||
<OOBE>
|
||||
<HideEULAPage>true</HideEULAPage>
|
||||
<HideOEMRegistrationScreen>true</HideOEMRegistrationScreen>
|
||||
<HideWirelessSetupInOOBE>true</HideWirelessSetupInOOBE>
|
||||
<HideOnlineAccountScreens>true</HideOnlineAccountScreens>
|
||||
<HideLocalAccountScreen>true</HideLocalAccountScreen>
|
||||
<ProtectYourPC>1</ProtectYourPC>
|
||||
</OOBE>
|
||||
</component>
|
||||
</settings>
|
||||
</unattend>
|
107
Scripts/targetconfigs/unattend-cleartext.xml
Normal file
107
Scripts/targetconfigs/unattend-cleartext.xml
Normal file
@ -0,0 +1,107 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--Version 2.3-->
|
||||
<unattend xmlns="urn:schemas-microsoft-com:unattend">
|
||||
<settings pass="windowsPE">
|
||||
<component name="Microsoft-Windows-International-Core-WinPE" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
||||
<SetupUILanguage>
|
||||
<UILanguage>en-US</UILanguage>
|
||||
</SetupUILanguage>
|
||||
<InputLocale>en-US</InputLocale>
|
||||
<SystemLocale>en-US</SystemLocale>
|
||||
<UILanguage>en-US</UILanguage>
|
||||
<UserLocale>en-US</UserLocale>
|
||||
</component>
|
||||
</settings>
|
||||
<settings pass="specialize">
|
||||
<component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
||||
<ComputerName>*</ComputerName>
|
||||
<RegisteredOrganization>Cool Company, LLC.</RegisteredOrganization>
|
||||
<RegisteredOwner>Cool Company, LLC.</RegisteredOwner>
|
||||
<WindowsFeatures>
|
||||
<ShowInternetExplorer>false</ShowInternetExplorer>
|
||||
</WindowsFeatures>
|
||||
<AutoLogon>
|
||||
<Username>LocalAdmin</Username>
|
||||
<Enabled>true</Enabled>
|
||||
<LogonCount>10</LogonCount>
|
||||
<Password>
|
||||
<Value>P@ssword</Value>
|
||||
</Password>
|
||||
</AutoLogon>
|
||||
</component>
|
||||
<component name="Microsoft-Windows-Deployment" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
||||
<RunSynchronous>
|
||||
<RunSynchronousCommand wcm:action="add">
|
||||
<Description>UnfilterAdminToken</Description>
|
||||
<Path>cmd /c reg add HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System /v FilterAdministratorToken /t REG_DWORD /d 0 /f</Path>
|
||||
<Order>1</Order>
|
||||
</RunSynchronousCommand>
|
||||
<RunSynchronousCommand wcm:action="add">
|
||||
<Description>Disable consumer features</Description>
|
||||
<Path>reg add HKLM\Software\Policies\Microsoft\Windows\CloudContent /v DisableWindowsConsumerFeatures /t REG_DWORD /d 1 /f</Path>
|
||||
<Order>2</Order>
|
||||
</RunSynchronousCommand>
|
||||
<RunSynchronousCommand wcm:action="add">
|
||||
<Description>DISABLE_UAC_EnableLUA</Description>
|
||||
<Path>cmd /c reg ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System /v EnableLUA /t REG_DWORD /d 0 /f</Path>
|
||||
<Order>3</Order>
|
||||
</RunSynchronousCommand>
|
||||
<RunSynchronousCommand wcm:action="add">
|
||||
<Path>Dism /online /enable-feature /featurename:NetFX3 /All /Source:C:\Temp\sxs /LimitAccess</Path>
|
||||
<Order>4</Order>
|
||||
<Description>DISM .net</Description>
|
||||
</RunSynchronousCommand>
|
||||
</RunSynchronous>
|
||||
</component>
|
||||
</settings>
|
||||
<settings pass="oobeSystem">
|
||||
<component name="Microsoft-Windows-International-Core" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
||||
<InputLocale>en-US</InputLocale>
|
||||
<SystemLocale>en-US</SystemLocale>
|
||||
<UILanguage>en-US</UILanguage>
|
||||
<UserLocale>en-US</UserLocale>
|
||||
<UILanguageFallback>en-US</UILanguageFallback>
|
||||
</component>
|
||||
<component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
||||
<OOBE>
|
||||
<HideEULAPage>true</HideEULAPage>
|
||||
<HideOEMRegistrationScreen>true</HideOEMRegistrationScreen>
|
||||
<HideWirelessSetupInOOBE>true</HideWirelessSetupInOOBE>
|
||||
<HideOnlineAccountScreens>true</HideOnlineAccountScreens>
|
||||
<HideLocalAccountScreen>true</HideLocalAccountScreen>
|
||||
<ProtectYourPC>1</ProtectYourPC>
|
||||
</OOBE>
|
||||
<UserAccounts>
|
||||
<LocalAccounts>
|
||||
<LocalAccount wcm:action="add">
|
||||
<Password>
|
||||
<Value>P@ssword</Value>
|
||||
<PlainText>true</PlainText>
|
||||
</Password>
|
||||
<Group>Administrators</Group>
|
||||
<Description>Provisioning Admin</Description>
|
||||
<DisplayName>LocalAdmin</DisplayName>
|
||||
<Name>LocalAdmin</Name>
|
||||
</LocalAccount>
|
||||
</LocalAccounts>
|
||||
</UserAccounts>
|
||||
<DesktopOptimization>
|
||||
<ShowWindowsStoreAppsOnTaskbar>false</ShowWindowsStoreAppsOnTaskbar>
|
||||
<GoToDesktopOnSignIn>false</GoToDesktopOnSignIn>
|
||||
</DesktopOptimization>
|
||||
<FirstLogonCommands>
|
||||
<SynchronousCommand wcm:action="add">
|
||||
<CommandLine>cmd /c net start BESClient</CommandLine>
|
||||
<Description>Start BigFix Service</Description>
|
||||
<Order>1</Order>
|
||||
</SynchronousCommand>
|
||||
<SynchronousCommand wcm:action="add">
|
||||
<CommandLine>cmd /c del C:\Windows\System32\Sysprep\unattend.xml</CommandLine>
|
||||
<Description>Delete Unattend</Description>
|
||||
<Order>2</Order>
|
||||
</SynchronousCommand>
|
||||
</FirstLogonCommands>
|
||||
</component>
|
||||
</settings>
|
||||
<cpi:offlineImage cpi:source="wim:c:/provisioning/w102k/sources/install.wim#Windows 10 Enterprise" xmlns:cpi="urn:schemas-microsoft-com:cpi" />
|
||||
</unattend>
|
41
Scripts/targetconfigs/vnc.ini
Normal file
41
Scripts/targetconfigs/vnc.ini
Normal file
@ -0,0 +1,41 @@
|
||||
[Server]
|
||||
# The port on which the VNC server listens for connections (default: 5900)
|
||||
Port=5900
|
||||
|
||||
# Defines the IP address to bind the VNC server to. Leave blank to bind to all interfaces.
|
||||
BindTo=0.0.0.0
|
||||
|
||||
# Enable or disable authentication. If 1, authentication is enabled.
|
||||
Authentication=1
|
||||
|
||||
# VNC password (encoded or plain text depending on the software)
|
||||
Password=01d47b4186dfa5a3
|
||||
|
||||
# Encryption (optional). Enable or disable encryption for VNC connections.
|
||||
Encryption=1
|
||||
|
||||
# Set the idle timeout for client connections (in seconds)
|
||||
IdleTimeout=600
|
||||
|
||||
# Maximum number of clients that can connect at once
|
||||
MaxClients=5
|
||||
|
||||
[Security]
|
||||
# Use SSL encryption for communication between VNC clients and server
|
||||
UseSSL=0
|
||||
|
||||
# If SSL is enabled, provide the path to the SSL certificate file.
|
||||
SSLCertificateFile=C:\path\to\ssl\certificate.pem
|
||||
|
||||
# Enable or disable TLS encryption
|
||||
UseTLS=1
|
||||
|
||||
[Logging]
|
||||
# Enable or disable logging. If 1, logging is enabled.
|
||||
EnableLogging=1
|
||||
|
||||
# Log file location
|
||||
LogFile=C:\path\to\log\vncserver.log
|
||||
|
||||
# Log level (INFO, DEBUG, ERROR, etc.)
|
||||
LogLevel=INFO
|
147
Scripts/targetconfigs/web.config
Normal file
147
Scripts/targetconfigs/web.config
Normal file
@ -0,0 +1,147 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<configuration>
|
||||
<!-- Config Sections for Custom Service Credentials -->
|
||||
<configSections>
|
||||
<section name="serviceCredentials" type="System.Configuration.NameValueSectionHandler" />
|
||||
<sectionGroup name="system.net">
|
||||
<section name="settings" type="System.Net.Configuration.SettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
|
||||
</sectionGroup>
|
||||
</configSections>
|
||||
|
||||
<!-- Application Settings for web application -->
|
||||
<appSettings>
|
||||
<add key="ApplicationUsername" value="myAppUser" />
|
||||
<add key="ApplicationPassword" value="myAppPassword" />
|
||||
<add key="OAuthServiceUrl" value="https://oauth.example.com/token" />
|
||||
<add key="ClientId" value="myClientId" />
|
||||
<add key="ClientSecret" value="myClientSecret" />
|
||||
<add key="ServiceUrl" value="https://service.example.com/api" />
|
||||
<add key="ServiceUserName" value="serviceUser" />
|
||||
<add key="ServicePassword" value="servicePassword" />
|
||||
<add key="ApiEndpoint" value="https://api.example.com/endpoint" />
|
||||
<add key="ApiUserName" value="apiUser" />
|
||||
<add key="ApiPassword" value="apiPassword" />
|
||||
</appSettings>
|
||||
|
||||
<!-- Custom service credentials -->
|
||||
<serviceCredentials>
|
||||
<add key="ServiceUrl" value="https://customservice.example.com" />
|
||||
<add key="UserName" value="customUser" />
|
||||
<add key="Password" value="customPassword" />
|
||||
</serviceCredentials>
|
||||
|
||||
<!-- Connection strings for various databases -->
|
||||
<connectionStrings>
|
||||
<add name="SqlServerConnection"
|
||||
connectionString="Data Source=localhost;Initial Catalog=myDB;User ID=myUser;Password=myPass;"
|
||||
providerName="System.Data.SqlClient" />
|
||||
<add name="SqlServerIntegratedSecurity"
|
||||
connectionString="Data Source=localhost;Initial Catalog=myDB;Integrated Security=True;"
|
||||
providerName="System.Data.SqlClient" />
|
||||
<add name="MySqlConnection"
|
||||
connectionString="Server=localhost;Database=myDB;User=myUser;Password=myPass;"
|
||||
providerName="MySql.Data.MySqlClient" />
|
||||
<add name="PostgreSqlConnection"
|
||||
connectionString="Host=localhost;Port=5432;Database=myDB;Username=myUser;Password=myPass;"
|
||||
providerName="Npgsql" />
|
||||
<add name="OracleConnection"
|
||||
connectionString="Data Source=MyOracleDB;User Id=oracleUser;Password=oraclePass;"
|
||||
providerName="Oracle.ManagedDataAccess.Client" />
|
||||
</connectionStrings>
|
||||
|
||||
<!-- Web-specific settings for forms authentication, session state, and errors -->
|
||||
<system.web>
|
||||
<!-- Compilation settings -->
|
||||
<compilation debug="true" targetFramework="4.0" />
|
||||
|
||||
<!-- Authentication settings for web applications -->
|
||||
<authentication mode="Forms">
|
||||
<forms loginUrl="login.aspx" timeout="30">
|
||||
<credentials passwordFormat="Clear">
|
||||
<user name="user1" password="password1" />
|
||||
<user name="user2" password="password2" />
|
||||
</credentials>
|
||||
</forms>
|
||||
</authentication>
|
||||
|
||||
<!-- Authorization settings to allow or deny user access -->
|
||||
<authorization>
|
||||
<allow users="*" /> <!-- Allow all users -->
|
||||
<deny users="?" /> <!-- Deny anonymous users -->
|
||||
</authorization>
|
||||
|
||||
<!-- Custom error pages -->
|
||||
<customErrors mode="RemoteOnly">
|
||||
<error statusCode="404" redirect="404.aspx" />
|
||||
<error statusCode="500" redirect="500.aspx" />
|
||||
</customErrors>
|
||||
|
||||
<!-- Session State settings (optional) -->
|
||||
<sessionState mode="InProc" timeout="20" />
|
||||
</system.web>
|
||||
|
||||
<!-- SMTP settings for email (relevant for web applications) -->
|
||||
<system.net>
|
||||
<mailSettings>
|
||||
<smtp from="you@example.com">
|
||||
<network host="smtp.example.com" port="587"
|
||||
userName="smtpUser"
|
||||
password="smtpPassword"
|
||||
defaultCredentials="false" />
|
||||
</smtp>
|
||||
</mailSettings>
|
||||
</system.net>
|
||||
|
||||
<!-- WCF (Windows Communication Foundation) Service configuration for web applications -->
|
||||
<system.serviceModel>
|
||||
<bindings>
|
||||
<basicHttpBinding>
|
||||
<binding name="MyBinding">
|
||||
<security mode="Transport">
|
||||
<transport clientCredentialType="Basic" />
|
||||
</security>
|
||||
</binding>
|
||||
</basicHttpBinding>
|
||||
</bindings>
|
||||
<client>
|
||||
<endpoint address="https://example.com/service"
|
||||
binding="basicHttpBinding"
|
||||
bindingConfiguration="MyBinding"
|
||||
contract="IMyService" />
|
||||
</client>
|
||||
<behaviors>
|
||||
<endpointBehaviors>
|
||||
<behavior>
|
||||
<clientCredentials>
|
||||
<userName userName="serviceUser" password="servicePassword" />
|
||||
</clientCredentials>
|
||||
</behavior>
|
||||
</endpointBehaviors>
|
||||
</behaviors>
|
||||
</system.serviceModel>
|
||||
|
||||
<!-- IIS-specific settings for URL rewriting and other web server configurations -->
|
||||
<system.webServer>
|
||||
<!-- Enable URL rewriting (optional) -->
|
||||
<rewrite>
|
||||
<rules>
|
||||
<rule name="RedirectToHTTPS">
|
||||
<match url="(.*)" />
|
||||
<conditions>
|
||||
<add input="{HTTPS}" pattern="^OFF$" />
|
||||
</conditions>
|
||||
<action type="Redirect" url="https://{HTTP_HOST}/{R:1}" redirectType="Permanent" />
|
||||
</rule>
|
||||
</rules>
|
||||
</rewrite>
|
||||
|
||||
<!-- Enable static content compression (optional) -->
|
||||
<staticContent>
|
||||
<clientCache cacheControlMode="UseMaxAge" cacheControlMaxAge="7.00:00:00" />
|
||||
</staticContent>
|
||||
|
||||
<!-- HTTP modules and handlers (optional) -->
|
||||
<modules runAllManagedModulesForAllRequests="true" />
|
||||
</system.webServer>
|
||||
|
||||
</configuration>
|
66
Scripts/targetconfigs/wp-config.php
Normal file
66
Scripts/targetconfigs/wp-config.php
Normal file
@ -0,0 +1,66 @@
|
||||
<?php
|
||||
// ** MySQL settings - You can get this info from your web host ** //
|
||||
/** The name of the database for WordPress */
|
||||
define( 'DB_NAME', 'your_database_name' );
|
||||
|
||||
/** MySQL database username */
|
||||
define( 'DB_USER', 'your_database_username' );
|
||||
|
||||
/** MySQL database password */
|
||||
define( 'DB_PASSWORD', 'your_secure_password_here' );
|
||||
|
||||
/** MySQL hostname */
|
||||
define( 'DB_HOST', 'localhost' );
|
||||
|
||||
/** Database Charset to use in creating database tables. */
|
||||
define( 'DB_CHARSET', 'utf8' );
|
||||
|
||||
/** The Database Collate type. Don't change this if in doubt. */
|
||||
define( 'DB_COLLATE', '' );
|
||||
|
||||
/**#@+
|
||||
* Authentication Unique Keys and Salts.
|
||||
*
|
||||
* Change these to different unique phrases!
|
||||
* You can generate these using the WordPress.org secret-key service
|
||||
* https://api.wordpress.org/secret-key/1.1/salt/
|
||||
* You can change these at any point in time to invalidate all existing cookies.
|
||||
* This will force all users to have to log in again.
|
||||
*/
|
||||
define('AUTH_KEY', 'put_your_unique_phrase_here');
|
||||
define('SECURE_AUTH_KEY', 'put_your_unique_phrase_here');
|
||||
define('LOGGED_IN_KEY', 'put_your_unique_phrase_here');
|
||||
define('NONCE_KEY', 'put_your_unique_phrase_here');
|
||||
define('AUTH_SALT', 'put_your_unique_phrase_here');
|
||||
define('SECURE_AUTH_SALT', 'put_your_unique_phrase_here');
|
||||
define('LOGGED_IN_SALT', 'put_your_unique_phrase_here');
|
||||
define('NONCE_SALT', 'put_your_unique_phrase_here');
|
||||
|
||||
/**#@-*/
|
||||
|
||||
/**
|
||||
* WordPress Database Table prefix.
|
||||
*
|
||||
* You can have multiple installations in one database if you give each a unique
|
||||
* prefix. Only numbers, letters, and underscores please!
|
||||
*/
|
||||
$table_prefix = 'wp_';
|
||||
|
||||
/**
|
||||
* For developers: WordPress debugging mode.
|
||||
*
|
||||
* Change this to true to enable the display of notices during development.
|
||||
* It is strongly recommended that plugin and theme developers use WP_DEBUG
|
||||
* in their development environments.
|
||||
*/
|
||||
define( 'WP_DEBUG', false );
|
||||
|
||||
/* That's all, stop editing! Happy publishing. */
|
||||
|
||||
/** Absolute path to the WordPress directory. */
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
define( 'ABSPATH', __DIR__ . '/' );
|
||||
}
|
||||
|
||||
/** Sets up WordPress vars and included files. */
|
||||
require_once ABSPATH . 'wp-settings.php';
|
Loading…
x
Reference in New Issue
Block a user