Browse Source

Merge remote-tracking branch 'origin/master'

master
Manvan33 8 months ago
parent
commit
96eb77b113
  1. 5
      Dockerfile
  2. 3
      bin/main/Main.kt
  3. 3
      src/Main.kt

5
Dockerfile

@ -11,7 +11,4 @@ ENV APP_NAME victim
COPY --from=build /usr/local/src/build/install/${APP_NAME}/bin/${APP_NAME} /usr/local/bin/app
COPY --from=build /usr/local/src/build/install/${APP_NAME}/lib/ /usr/local/lib/
RUN echo '#!/bin/sh\n/usr/local/bin/app $@' > /entrypoint.sh
RUN chmod +x /entrypoint.sh
ENTRYPOINT [ "/entrypoint.sh" ]
ENTRYPOINT [ "/usr/local/bin/app" ]

3
bin/main/Main.kt

@ -7,11 +7,10 @@ val logger: Logger = LogManager.getLogger()
fun work(input: String)
{
System.setProperty("com.sun.jndi.ldap.object.trustURLCodebase", "true")
logger.info(System.getProperty("com.sun.jndi.ldap.object.trustURLCodebase"))
logger.info("Working on {}", input)
}
fun main(args: Array<String>) {
System.setProperty("com.sun.jndi.ldap.object.trustURLCodebase", "true")
args.forEach{work(it)}
}

3
src/Main.kt

@ -7,11 +7,10 @@ val logger: Logger = LogManager.getLogger()
fun work(input: String)
{
System.setProperty("com.sun.jndi.ldap.object.trustURLCodebase", "true")
logger.info(System.getProperty("com.sun.jndi.ldap.object.trustURLCodebase"))
logger.info("Working on {}", input)
}
fun main(args: Array<String>) {
System.setProperty("com.sun.jndi.ldap.object.trustURLCodebase", "true")
args.forEach{work(it)}
}

Loading…
Cancel
Save