Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @echo off
- color f3
- echo Welcome to the PTP CLI Setup
- :schoolsetup
- echo.
- echo School Proxy setup
- set /p sproxyu=School Username:
- set /p sproxyp=School Password:
- echo Username: %sproxyu% Password: %sproxyp%
- choice /m "Is this correct?"
- if errorlevel 1 (
- goto ptpsetup
- ) else (
- goto schoolsetup
- )
- :ptpsetup
- echo.
- echo PTP Setup
- set /p pproxyi=PTP IP:
- set /p pproxyu=PTP Username:
- set /p pproxyp=PTP Password:
- echo IP: %pproxyi% PTP Username: %pproxyu% PTP Password: %pproxyp%
- choice /m "Is this correct?"
- if errorlevel 1 (
- goto profileset
- ) else (
- goto ptpsetup
- )
- :profileset
- cls
- echo Automatically setting up proxy...
- (
- <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
- <ProxifierProfile version="101" platform="Windows" product_id="1" product_minver="310">
- <Options>
- <Resolve>
- <AutoModeDetection enabled="true" />
- <ViaProxy enabled="false">
- <TryLocalDnsFirst enabled="false" />
- </ViaProxy>
- <ExclusionList>^%ComputerName^%; localhost; *.local</ExclusionList>
- </Resolve>
- <ProxificationPortableEngine subsystem="32">
- <Location>Winsock</Location>
- <Type hotpatch="true">Prologue</Type>
- </ProxificationPortableEngine>
- <ProxificationPortableEngine subsystem="64">
- <Location>Winsock</Location>
- <Type hotpatch="false">Modcopy</Type>
- </ProxificationPortableEngine>
- <Encryption mode="basic" />
- <HttpProxiesSupport enabled="false" />
- <HandleDirectConnections enabled="false" />
- <ConnectionLoopDetection enabled="true" />
- <ProcessServices enabled="false" />
- <ProcessOtherUsers enabled="false" />
- </Options>
- <ProxyList>
- <Proxy id="100" type="HTTPS">
- <Address>proxy2.eq.edu.au</Address>
- <Port>80</Port>
- <Options>50</Options>
- <Authentication enabled="true">
- <Username>%sproxyu%</Username>
- <Password>%sproxyp%</Password>
- </Authentication>
- </Proxy>
- <Proxy id="101" type="HTTPS">
- <Address>%pproxyi%</Address>
- <Port>443</Port>
- <Options>50</Options>
- <Authentication enabled="true">
- <Username>%pproxyu%</Username>
- <Password>%pproxyp%</Password>
- </Authentication>
- </Proxy>
- </ProxyList>
- <ChainList>
- <Chain id="102" type="simple">
- <Name>New</Name>
- <Proxy enabled="true">100</Proxy>
- <Proxy enabled="true">101</Proxy>
- </Chain>
- </ChainList>
- <RuleList>
- <Rule enabled="true">
- <Name>Localhost</Name>
- <Targets>localhost; 127.0.0.1; ^%ComputerName^%</Targets>
- <Action type="Direct" />
- </Rule>
- <Rule enabled="true">
- <Name>od</Name>
- <Applications>OneDrive.exe; explorer.exe</Applications>
- <Action type="Direct" />
- </Rule>
- <Rule enabled="true">
- <Name>Default</Name>
- <Action type="Chain">102</Action>
- </Rule>
- </RuleList>
- </ProxifierProfile>
- ) > tmp.txt
- echo Done
- pause
- exit
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement