Research, Analysis, and Implementation of Security Attacks in 5G and IoT