Squashed commit of the following:
commit db8a4fe575ec09607036ae5550adb83b345d9f2c Author: Michael Schierl <schierlm@gmx.de> Date: Wed Apr 11 00:41:51 2012 +0200 Ensure the manifest is always at the beginning of the JAR files Might create strange errors when loading stdapi if not. commit fc02de4e36b3b952e256885d277e9c8e91f8f065 Author: Michael Schierl <schierlm@gmx.de> Date: Wed Apr 4 23:20:20 2012 +0200 Change the build file so that it generates fixed timestamps inside meterpreter.jar / ext_server_stdapi.jar [Closes #304]unstable
parent
452cead1e9
commit
5bf03aff7d
|
@ -34,8 +34,34 @@
|
|||
</manifest>
|
||||
</jar>
|
||||
</target>
|
||||
|
||||
<target name="fix-timestamps" depends="jar">
|
||||
<mkdir dir="extensions/tmp"/>
|
||||
<unzip src="extensions/meterpreter.jar" dest="extensions/tmp"/>
|
||||
<touch datetime="01/01/2000 00:00 AM">
|
||||
<fileset dir="extensions/tmp" includes="**/*"/>
|
||||
</touch>
|
||||
<delete file="extensions/meterpreter.jar" />
|
||||
<zip destfile="extensions/meterpreter.jar">
|
||||
<fileset dir="extensions/tmp" includes="META-INF/**" />
|
||||
<fileset dir="extensions/tmp" excludes="META-INF/**" />
|
||||
</zip>
|
||||
<delete dir="extensions/tmp"/>
|
||||
|
||||
<target name="deploy" depends="jar">
|
||||
<mkdir dir="extensions/tmp"/>
|
||||
<unzip src="extensions/ext_server_stdapi.jar" dest="extensions/tmp"/>
|
||||
<touch datetime="01/01/2000 00:00 AM">
|
||||
<fileset dir="extensions/tmp" includes="**/*"/>
|
||||
</touch>
|
||||
<delete file="extensions/ext_server_stdapi.jar" />
|
||||
<zip destfile="extensions/ext_server_stdapi.jar">
|
||||
<fileset dir="extensions/tmp" includes="META-INF/**" />
|
||||
<fileset dir="extensions/tmp" excludes="META-INF/**" />
|
||||
</zip>
|
||||
<delete dir="extensions/tmp"/>
|
||||
</target>
|
||||
|
||||
<target name="deploy" depends="fix-timestamps">
|
||||
<copy todir="../../../../data/meterpreter">
|
||||
<fileset dir="extensions">
|
||||
</fileset>
|
||||
|
|
Loading…
Reference in New Issue