Either join a faction, buy a faction module and activate it, OR you can add AI turrets and set them to attack everything in range, generally speaking, scavenger ships.
This is where I leave this thread, please refrain from asking me fora turret tutorial.