MCPcopy Create free account
hub / github.com/Cybereason/Logout4Shell / transformCache

Method transformCache

src/main/java-template/Log4jRCE.java:156–164  ·  view source on GitHub ↗
(InputStream inputStream, OutputStream outputStream)

Source from the content-addressed store, hash-verified

154 }
155
156 public static void transformCache(InputStream inputStream, OutputStream outputStream) throws IOException {
157 Vector vec = new Vector(1);
158 vec.add(new URL(null, "fictional://", new BytesHandler(inputStream)));
159 PluginCache pc = new PluginCache();
160 pc.loadCacheFiles(vec.elements());
161 Map<String, PluginEntry> ms = pc.getCategory(StrLookup.CATEGORY);
162 ms.remove("jndi");
163 pc.writeCache(outputStream);
164 }
165
166
167

Callers 1

fullyVaccinateMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected