Exploit database

GH-67351406b1232afd77e0cd1360df3e3c

ahornyai/lattice_talk

GitHubNot listedPoC
Download repository ZIP

Sources for CVE-2024-31497

5 sources

Preferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source

Repository files19
ahornyai/lattice_talkRevision f0a6bd1b189c

Files from this repository share one source choice. Supporting files may cover other vulnerabilities.

assets/SpawnItem.java

Java · 517 bytes
/**
 * Spawns the given ItemStack as an EntityItem into the World at the given position
 */
public static void spawnAsEntity(World world, BlockPos pos, ItemStack stack) {
    double xInBlock = world.rand.nextFloat() * 0.5F + 0.25D;
    double yInBlock = world.rand.nextFloat() * 0.5F + 0.25D;
    double zInBlock = world.rand.nextFloat() * 0.5F + 0.25D;
    EntityItem entityitem = new EntityItem(world, pos.getX() + xInBlock, pos.getY() + yInBlock, pos.getZ() + zInBlock, stack);
    world.spawnEntity(entityitem);
}