Jump to content

Spoiled_Kitten

Member
  • Posts

    359
  • Joined

  • Last visited

Posts posted by Spoiled_Kitten

  1. Hi there,

    I am building a system for storage which will most likely have a raspberry pi as the host. How would I make it so I could easily search in all “boxes” and then see if they have the item that I am looking for. I would be using Python 3

    #CODE EXAMPLE THINGY#

    Box1 [car,dog,sheep]

     

    Box2 [rock,cat,sheep]

    Input for search “sheep”

    Then searches all boxes I have made to see if it that has sheep in them

    If it has them then it goes:

    OUTPUT: Sheep in box 1 and 2

    Else goes item unavailable.

    Input for search “car”

    Searches all boxes I have made to see if it has car in them*

    If it has them then it goes:

    OUTPUT: Car in box 1

     

    This is an example and colours, led and items in box would be different.

    I don’t mind just needing to use the terminal in order to find an item that is required.

    If you have any questions feel free to ask and I will try and get back to you ASAP.

    I am not asking for someone to code the entire thing I am just asking if anyone knows any systems that have been made like this and if there is any ideas on what systems I should use.

    If you want to reach me privately my discord is Spoiled_Kitten#4911

    Thanks,

    Blake McCullough

     

     

  2. Hi all,

    I was working on a site for a friend and I have an issue with the site where when I scroll fully up to the top it formats and resizes everything to leave a giant white area in the side, The site is life (please no griefing).

    I have attached a video showing the error, I have looked through the code and had some mates do so but we haven't been able to fix it.

    Url: https://www.viewtech3d.com.au/

     

    Thanks, Blake

  3. Hi all,

     

    Just wanted to show all my site I have made for school, can anyone give me some feedback on how I could improve it? I wish to increase my skills and feedback is one of my favourite methods.

    I used visual studio code in order to make the site so all HTML,CSS and Javascript! 

    I have included a zip file with all the files if u wish to install that instead of the site.

     

    Thanks,

    Blake!

    Link to the site is:

    https://github.com/Blake-McCullough/Dr-Montogerys-Zoo

  4. On 11/14/2020 at 6:15 AM, Laforet said:

    A somewhat unconventional method, but if you extract your old storage drive, you can use cloning software to migrate the whole OS and all its data to the new drive. Assuming you have a SATA to USB cable (assuming it's a SATA drive), it should be relatively straightforward. I did this a few times using Samsung's cloning software, but it might not be worth the extra effort, depending on how much you have to do to extract your old drive.

     

    For me, it was worth doing it because I spent a lot of time setting up my Linux terminal on windows, among other things. Honestly, IMHO it's easier just to download most of the easy bits like your browser and steam, then manually migrate data using a fast USB or external drive. Unless, of course, you just have a ton of software to install and lots of customizations. 

    It's a m.2 drive. ill look  into it.

    On 11/14/2020 at 4:25 AM, LogicalDrm said:

    -> Moved to Programs, Apps and Websites

    ***

     

    If you will be having both PCs at hand at the same time, network folders is the best. If not, using external HDD.

    I also need to have the programs, so network folders wouldn't work

     

    On 11/13/2020 at 2:32 PM, NineEyeRon said:

    Clone drive or network PCs? 

    It is a drive PC not network as i haven't got that setup.

    On 11/13/2020 at 1:32 PM, PeachGr said:

    https://www.asus.com/support/FAQ/1013067/

    Try this. I only used to to keep the product key if windows, but I think you can use it

    I'll have a look into it, however i don't think it will do for all programs and stuff.

    On 11/13/2020 at 12:44 PM, trag1c said:

    In that case you're probably better off cloning the drive and then reinstalling that image on your new system. Though I don't know how that would work for drivers and what not from the old system. Just copying programs typically isn't a good idea because they're usually spread out throughout multiple directories and the registry through the OS. If you miss something the software doesn't always catch that or doesn't have the data necessary to recreate the files and entry's needed.

    Yeah i'm aware that copying programs isn't a good idea and that is why I don't want to do that, I'm not sure how to do the image install with the files on Windows, would it be similar to linux?

     

    On 11/13/2020 at 12:38 PM, trag1c said:

    Not yet unless there's a port on one of the computers for it to act as a client. The upcoming USB spec I believe has provisions for host to host transfers but nothing has come yet.

     

    As for the OP's question. You could make your drives on one of your computers a network/shared drive and transfer data through ethernet/wifi. If you go through cable you could achieve up to 125MB/s transfer.

    It has usb-c type 2 i believe but usb transfer isn't my favourite option as the other laptop would need to be in use as It is for work and runs like all day, and can't stop as self employed and every minute without using it is costy.

  5. Hi all,

    I'm not sure which topic it fits so I put it in this one.

    I am upgrading my laptop(an xps 13 2 in 1 2016) to the 2020 model, I wish to be able to easily move all my files and software to my new PC, is there an easy way that i can do this, Say with IPhone where u can setup from another device which is already setup and nearby.

    Thanks, Blake

  6. 16 hours ago, vorticalbox said:

    had a tiny bit of free time so had a go for fun.

     

    
    import socket
    from random import random, randint, sample, choice
    from time import sleep
    from typing import List
    
    
    def detect_host(host: str) -> str:
        print(f'[*] finding IP for {host}')
        sleep(randint(1, 3))
        ip = socket.gethostbyname(host)
        print(f'[+] {host} is {ip}')
        print(f'[*] scanning for OS')
        for i in range(randint(5, 20)):
            sleep(randint(0, 1))
        print(f'[+] unix type system found, searching to cves')
        return ip
    
    
    def generate_cve() -> str:
        return f'CVE-2020-{str(random())[2:6]}'
    
    
    def generate_cves() -> List[str]:
        cves = []
        for i in range(randint(2, 5)):
            sleep(randint(0, 1))
            cve = generate_cve()
            print(f'[+] Found potential cve {cve}')
            cves.append(cve)
        return cves
    
    
    def check_cves(cves: List[str]) -> List[str]:
        for cve in cves:
            print(f'[*] Checking to exploit {cve}')
            sleep(randint(1, 2))
    
        return sample(cves, randint(1, len(cves)))
    
    
    def crack(cves: List[str]) -> None:
        successful = choice(cves)
        for cve in cves:
            print(f'[*] attempting {cve}')
            sleep(randint(1, 5))
            if cve == successful:
                print(f'[+] successfully exploited {cve}')
                break
            else:
                print(f'[!] {cve} failed')
    
    
    def shell(host: str):
        while True:
            command = input(f'root@{host}:/ # ')
            print(f'{command} not found')
    
    
    def main() -> None:
        host = input('Enter a host to crack: ')
        ip = detect_host(host)
    
        cves = generate_cves()
        found = check_cves(cves)
        print(f'[+] host vulnerable to {found}')
        crack(found)
        shell(ip)
    
    
    if __name__ == '__main__':
        main()

     

    
    Enter a host to crack: google.co.uk
    [*] finding IP for google.co.uk
    [+] google.co.uk is 216.58.204.3
    [*] scanning for OS
    [+] unix type system found, searching to cves
    [+] Found potential cve CVE-2020-1431
    [+] Found potential cve CVE-2020-0280
    [*] Checking to exploit CVE-2020-1431
    [*] Checking to exploit CVE-2020-0280
    [+] host vulnerable to ['CVE-2020-1431', 'CVE-2020-0280']
    [*] attempting CVE-2020-1431
    [!] CVE-2020-1431 failed
    [*] attempting CVE-2020-0280
    [+] successfully exploited CVE-2020-0280
    root@216.58.204.3:/ # 
    

    You can add commands to the shell function to make it even more believable  but i don't have the time.

    Doesn't work when trying t run, looks good though.

  7. 9 minutes ago, The_russian said:

    Too lazy to look at or run the code, what do you mean by fake hacking? Does it just have lines of code scrolling by really fast then say "I'm in!" or "I hacked the mainframe!" or something?

    yeah lol, thats basically it. except i have it so itdoes, hacking. then hacking.. then hacking... then restarts and those lines are deleted after running

  8. Hi all!

    Wish to share the python 3 code i made that makes it appear as if u are hacking in case anyone needs it!

    I have two made, One with 100% chance of success and one with a 95% chance of success

    100% chance of success code: https://github.com/Blake-McCullough/FakeHackingPython3

    95% chance of success code: https://github.com/Blake-McCullough/FakeHackingWithChanceOfFailPython3 

    I also have attached the code if u wish to download it.

    Thanks,

    Blake

    Fake hacking with chance of fail.py Fake Hacking.py

  9. Hi all!

    I wish to share the discovery i made for deleting the last line in the console on python 3, I hope this can help someone, any questions please redirect to me,

    Thanks,

    Blake

     

     

    code:

    import os 
    import sys
    import time


    #last line deletion
    def delete_last_line():
        "Use this function to delete the last line in the STDOUT"

        #cursor up one line
        sys.stdout.write('\x1b[1A')

        #delete last line
        sys.stdout.write('\x1b[2K')
        
        
    ###DEMO###
    print("this line will delete in 5 seconds")
    time.sleep(5)
    delete_last_line()
     

     

    The link to the github with the code and more is :

    https://github.com/Blake-McCullough/LastLinePython3Delete/tree/main

     

    Attached is also the file for deleting the last line if u wish to just download it.

    Last line python 3 delete.py

  10. 22 hours ago, trag1c said:

    I've never seen or used godot so I can't give a specific answer but as a generic approach to any game or engine this works. Typically you would use a collider or bounding box that simply calls a script or function which unloads the old scene and loads the new one. You could also use pythagorean theorem with to check if the player is within a certain distance from the trigger point.

    I figured out, but thanks

  11. 6 minutes ago, Bombastinator said:

    Hmm simplified.  
    the quote is from an ancient cartoon that took place in a town called “bedrock” mostly says I’m really old and I don’t know much about Minecraft.

    im not good at PvP at all.  Like absurd suckage.  I also don’t know much about Minecraft.  I would be a kinda crap player.  I’m willing though.  I’m the kinda player you pick for your team last. 

    i doubt that, i suck at it xd, i just know c++ so i use that...

  12. On 9/18/2020 at 12:57 PM, BobVonBob said:

    Also works with

    
    START %0\..\program.exe

     

    And I'm pretty sure

    
    START %~dp0\program.exe

    works as well.

     

    Pushd and popd save the folder you're working in to a stack, they're generally best used to change the working directory and then return to where you were.

    Yeah im sure that could work, just that worked for me when i was making the program.

     

  13. I had been spent ages trying to figure out how to open a file that was in the same folder as the bat file, and could be moved to other ones, i worked that out and i wish to share it with others, so they can have a look, i can receive feedback, and so others wishing to do the same can with ease.

    The code is:

    ::This opens file in same directory
    pushd %~dp0
    ProgramInSameFolderAsBat.exe
    popd
    ::Made By Blake McCullough

    It is also available on my github to download:

    https://github.com/Blake-McCullough/OpenFileInSameFolderBat

    I posted this as a post in the forums so others can easily find it, Please mods leave this thread open so i can get feedback and can help others using this.

×