Bypass Server Upload Restrictions & Create a Reverse Shell [Tutorial]

Поділитися
Вставка
  • Опубліковано 5 лис 2020
  • Get Our Premium Ethical Hacking Bundle (90% Off): nulb.app/cwlshop
    How to Pop a Shell on a Website with a File Upload
    Full Tutorial: nulb.app/x7j1j
    Subscribe to Null Byte: goo.gl/J6wEnH
    Nick's Twitter: / nickgodshall
    Cyber Weapons Lab, Episode 197
    File uploads are a potential vulnerability on most websites. These attacks range from XSS to full-blown code execution, so file uploads are an attractive target for hackers. However, there are usually restrictions in place that can make it challenging to execute an attack. On this episode of Cyber Weapon Lab, we will look at various techniques a hacker could use to beat file upload restrictions and get a shell.
    To learn more, check out the article by drd_ on Null Byte: nulb.app/x7j1j
    Follow Null Byte on:
    Twitter: / nullbyte
    Flipboard: flip.it/3.Gf_0
    Website: null-byte.com
    Weekly newsletter: eepurl.com/dE3Ovb
    Vimeo: vimeo.com/channels/nullbyte
  • Навчання та стиль

КОМЕНТАРІ • 124

  • @blackychan8570
    @blackychan8570 3 роки тому +58

    You can actually hide it deeper! Using a hex editor, you can copy your code into the hex data of the picture, even with png file formats! Once you see your picture you have to right click it and select "open in new tab". Hence your image (although corrupted) loads, along with your code!!!

  • @if3isasin480
    @if3isasin480 3 роки тому +68

    Mr no blink is my favorite tutor, but I'm coming around to mr smiley too. They are both dope

  • @yekh
    @yekh 3 роки тому +55

    **looking at a filthy frank picture**
    "as u can see it's a normal picture"

  • @josephdurnal
    @josephdurnal 3 роки тому +19

    All of this talk about file name filtering reminds me of a time back in the mid 2000s when a user was not able to access outlook web access. Escalation after escalation the problem landed on my desk. It took me a little while to figure it out, but the guy's last name was Bat and the user name format was first.last, which would end up in the URL used to access OWA. The IIS url filter was blocking him. Fun times.

    • @jayb2067
      @jayb2067 2 роки тому

      User Error - Suggest telling user to change their legal name

  • @Slimothy
    @Slimothy 3 роки тому +22

    7:53 "completely normal picture"
    👀

  • @realhomy
    @realhomy 3 роки тому +2

    Keep making those videos loving the effort put into them

  • @pranaynaidu1571
    @pranaynaidu1571 3 роки тому

    Amazing Video .....will you be making videos about NAT slipstreaming in future???

  • @supersonic118boi8
    @supersonic118boi8 3 роки тому +3

    My Mans got a Massive Attack shirt AWSOME!!!

  • @yasyasmarangoz3577
    @yasyasmarangoz3577 3 роки тому +3

    Could you guys could make a video about the defending strategies?

  • @MRGCProductions20996
    @MRGCProductions20996 3 роки тому +5

    Is that papa Franku on the thumbnail?

  • @neetdemon
    @neetdemon 3 роки тому +8

    I finally just learned how to upload files to my server now I gotta worry about this?! 🤦‍♂️

    • @zipf
      @zipf 3 роки тому

      Lmao

  • @aadichawla6744
    @aadichawla6744 3 роки тому

    AMAZING !!!!!
    HATS OFF TO YOU

  • @PuneethHere
    @PuneethHere 3 роки тому

    Awesome bro good job

  • @HGAMES69
    @HGAMES69 3 роки тому +2

    Didn't know that you guys were fans of Filthy frank. Cultured gentleman

  • @maverick627uk
    @maverick627uk Рік тому

    Looking forward to watching more of your content. Very well put together, you've done a really good job my friend. Excellent 😉

  • @realhomy
    @realhomy 3 роки тому

    Let’s go another video

  • @ghassenbarkache1676
    @ghassenbarkache1676 7 місяців тому

    Hey
    What if the web application does not check the file content type or the code in it; but the server side filter the file extensions ; and also when you upload a picture anything before .jpeg or .png is given a random name
    Even if it pic.php%00.png => randomname.png so it will not be executed
    Even if I changed the content type to application/x-php nothing is executed
    What do you suggest ?

  • @Handy-Handy
    @Handy-Handy 3 роки тому

    Perfekt für die Nacht!

  • @--JYM-Rescuing-SS-Minnow
    @--JYM-Rescuing-SS-Minnow 3 роки тому

    pretty wild stuff..reminds me of the hacks my personal home server usta get...was usually a name of a file I had..better 1's were referenced back to my native software...they never gave me any nice pictures 2 hang on the wall.....

  • @cookingwithme1471
    @cookingwithme1471 2 роки тому

    how can I upload a pdf file tricking the system to thinking it's from an official website. An apartment I applied for wants them to be uploaded form original website

  • @binod7461
    @binod7461 3 роки тому

    Biggest fan of you ever

  • @aneesh6157
    @aneesh6157 3 роки тому

    I have a shell, i want to inject that shell into a jpg file, where should i paste the php code of the shell?

  • @binod7461
    @binod7461 3 роки тому +1

    We need more videos

  • @xthukuh
    @xthukuh 3 роки тому +3

    It would have been nice if we saw this in action.

  • @Zeeye
    @Zeeye 3 роки тому +3

    You said that renaming a php file to a jpg file to bypass the system. Bypass.php.jpg. But this is not a valid php file and can’t be executed by the server. So perhaps you would have bypassed the check, but is it useful?

    • @makerootexploitsecurity8503
      @makerootexploitsecurity8503 3 роки тому

      yeah really man.
      he just opens a terminal and renames and files but doesn't practice it to the server yes at least DVWA or bwapp to prove his theory

    • @emadmorad6977
      @emadmorad6977 Рік тому

      Bro he is just writing anything that is stuped .
      U cant execute php.jpg , he was hidding the code in image comment LOL

  • @shashank.s1492
    @shashank.s1492 3 роки тому

    GREAT!!

  • @javierrosa1954
    @javierrosa1954 3 роки тому +4

    dude im just looking on how to prank my friend and change his google screen
    not get in trouble with the law

    • @lx4302
      @lx4302 2 роки тому

      you will not likely get in trouble unless your friend's father is fbi

  • @NeelamSingh-tk7dw
    @NeelamSingh-tk7dw 3 роки тому

    Bro i have problems with telephony in wireshark can u explain please

  • @MygenteTV
    @MygenteTV 2 роки тому +2

    as bounty hunter myself i can tell you that these methods will barely work today

    • @jayb2067
      @jayb2067 2 роки тому +1

      That is one of the things that kept me from learning this for so many years. I always thought "I'm too old, theresnno way I can learn the old stuff AND whatever is has evolved to now."
      I put off my interest for a decade, but now I am finally applying myself and learning. Can you point to any links to some more recent techniques currently in use?

    • @MygenteTV
      @MygenteTV 2 роки тому +1

      @@jayb2067 I have to be brutal honest. The thing about this life is not finding vulnerabilities but the right triager to respect your work. Any ways I can't really vouch for anyone or anything but Amazon have amazing books with new stuff, some even for free or with trials. If you know how to program you are step ahead of anyone. pythong, js, php, java will help you a lot on this.

  • @muhdamir2228
    @muhdamir2228 Рік тому

    can u make a video on how to bypass coursehero upload limit file or bypass its verification code? pleaseee

  • @zesch7843
    @zesch7843 3 роки тому +1

    Hi if i use à vpn on Windows but im un a virtual machine with kali thats stil good ?

  • @RakeshKurup7
    @RakeshKurup7 Рік тому

    Can you explain how to fix this or prevent this

  • @chartandrews8919
    @chartandrews8919 3 роки тому +1

    how to bypass " current IP is restricted "

  • @g36nml67
    @g36nml67 3 роки тому +3

    Is this his son?

  • @dailyapple6160
    @dailyapple6160 3 роки тому +1

    Can you plzzz make a video on all the methods to hack social media?

  • @cybermaniac1
    @cybermaniac1 3 роки тому +2

    can you do a video on using certain tool to combat human trafficking ? showing a investigative process from start to end?

    • @cybermaniac1
      @cybermaniac1 3 роки тому +1

      @@outlaw8379 there many approaches please stay on your couch! You can combat via digital and boots on ground .. different departments my guy! Check out my tactics channel T.O.P.S maybe it’ll make you think or ask question before jumping out your face .. have a good day

    • @lx4302
      @lx4302 2 роки тому

      @@outlaw8379 29 years of experience and you're still doing finals lmao, you clearly aren't lying.

  • @ethicalhackingconsultant4206
    @ethicalhackingconsultant4206 3 роки тому +1

    Did this actually work for anyone? I was able to encode the PHP code into the JPEG using exiftool and I can confirm the comment is there. Nothing runs it though. I tried ImageMagik, GD, and loading the image via Apache. The image loads but the code does not execute.

    • @venessaparker22
      @venessaparker22 3 роки тому

      There is a tool you haven't used yet that why it not going

    • @balazsmerx
      @balazsmerx 2 роки тому

      Nope. I guess it does not work for him either, this is why there is no demo at the end of the video. But I can imagine it works with old crap servers.

  • @dannylee9609
    @dannylee9609 2 роки тому

    nice tutorial , thank you
    but pls can i have link download your shell.jpg ? because i test on exiftool windows ,its not work for , but its worked only for , i dont know why ?

  • @aswincv6284
    @aswincv6284 3 роки тому

    hi,
    Is there any way by which we can get gps cords of a mobile number ?..

  • @seratonyn
    @seratonyn 3 роки тому +2

    About Exif data on photos: I'm interested in data forensics as a study. Is it true that there are easy ways to edit (I.e. remove, and or add) meta or exif data to photos using Creative Suite or other programming? I am almost certain steganography would do the trick.

    • @seratonyn
      @seratonyn 3 роки тому

      Ex: "it tells you the aspect ratio... or it should" as you can see, there is no aspect ratio listed.

    • @seratonyn
      @seratonyn 3 роки тому

      @Mark Fisher I know from experience in design that editing doesn't strip out all meta. I've gone into old edits to find metadata of photos embedded into graphic; that doesn't necessarily belay the effect of editing tools "fill-in" software specifically for editing such data however

    • @seratonyn
      @seratonyn 3 роки тому

      @Mark Fisher ok so from a forensic standpoint if you were to run the photo would you be able to extrapolate exactly the source? I ask for reasons of fraud and copyright protection curiosities etc. This is probably the wrong forum for that XD

    • @seratonyn
      @seratonyn 3 роки тому

      @Mark Fisher I found some info on authentication that works better for me but thank you for your help :) there are always ways around understanding photo data and its manipulation

    • @seratonyn
      @seratonyn 3 роки тому

      @Mark Fisher editing exif and meta data is a good trick to obfuscation in preliminary deception but I'm not certain it holds up in professional circles that seek out the nitty gritty

  • @Karthikeya_patnala
    @Karthikeya_patnala 2 роки тому

    0:16 Look it carefully Illuminati Confirmed👀

  • @reastle1307
    @reastle1307 3 роки тому

    This work

  • @mrobvious6112
    @mrobvious6112 3 роки тому

    Where's kody?
    Make sense why kody wasn't in the video...

  • @bottleogames
    @bottleogames 3 роки тому

    Also yes

  • @treyanderson6254
    @treyanderson6254 3 роки тому

    Sweet

  • @emperordarius6558
    @emperordarius6558 3 роки тому +1

    Im a simple man
    I see filthy frank i *Clicc*

  • @Shmancy_pants_69
    @Shmancy_pants_69 3 роки тому +1

    Ayo is Kody in the basement or?

  • @R1M337
    @R1M337 Рік тому

    i try to upload a image with curl on a website where user can upload an image lol. i can post text and get text but image upload is very hard challange for me lol

  • @nya0783
    @nya0783 3 роки тому

    yes

  • @Robert_777
    @Robert_777 3 роки тому

    Where is Micheal and Kody

  • @binod7461
    @binod7461 3 роки тому

    Teach tutorials on web app pentesting

    • @TalsonHacks
      @TalsonHacks 3 роки тому

      This tutorial is about how to make apple pies 🥧

  • @aliasraonic
    @aliasraonic 3 роки тому

    saw the thumbnail "filthy frank????"

  • @realslimchaggy
    @realslimchaggy 2 роки тому

    are you new?

  • @harshp5454
    @harshp5454 3 роки тому +1

    Kayak canbus tool

  • @kevingarciaramos5929
    @kevingarciaramos5929 2 роки тому

    ponle traduccion a tus cursos hermano que te los compro

  • @haithamali5170
    @haithamali5170 3 роки тому

    Wow

  • @bottleogames
    @bottleogames 3 роки тому +3

    I am the 100th like :)

  • @zeithie
    @zeithie 3 роки тому +1

    im speed
    *9 sec ago*

  • @husar5543
    @husar5543 3 роки тому

    gg's

  • @rectify2003
    @rectify2003 3 роки тому

    LOL Awesome

  • @rodricbr
    @rodricbr 3 роки тому

    epic

  • @grizzle8911
    @grizzle8911 3 роки тому

    Moral of the story, don't use php

  • @Thelostblud
    @Thelostblud 3 роки тому

    Are u son or bigger null byte hacker 😂😅

  • @karimsalem3499
    @karimsalem3499 3 роки тому +1

    How can I install kali Linux, please answer

    • @venessaparker22
      @venessaparker22 3 роки тому

      Are you new to hacking?

    • @lx4302
      @lx4302 2 роки тому

      there is a virtual machine emulator in windows called VirtualBox, just look in the internet for a kali .iso file and follow some instructions to setup. alternatively there is VMware, which is another popular choice.
      if you are in chromeos, which is unlikely, download crouton from github, boot to developer mode, then follow instructions as stated. its still in development though so not recommended.
      if everything above seems too hard, just buy a bootable kali linux usb drive for your specific system.

  • @ceramintreal
    @ceramintreal 3 роки тому

    S

  • @sus4416
    @sus4416 3 роки тому +1

    Ayy first viewer

  • @jeffer746
    @jeffer746 3 роки тому

    6:45 this is like that moment in a movie where they say the name of the movie

  • @agnibhachakraborty5463
    @agnibhachakraborty5463 3 роки тому +1

    Sir, can you please help me how ro convert a hccapx file into text or hccapx file to hccap file... Please help me out sir.....
    Love from india. Sir.
    Thank you sir

    • @cro-thehacker7018
      @cro-thehacker7018 3 роки тому +1

      Just google the format it is to whatever you want it to convert too

    • @lx4302
      @lx4302 2 роки тому

      @@cro-thehacker7018 which site specifically?

    • @cro-thehacker7018
      @cro-thehacker7018 2 роки тому

      @@lx4302 it legit doesn't matter.

  • @statusduniyagkp5529
    @statusduniyagkp5529 3 роки тому

    Hello sir good morning
    Sir I don't no this language English
    Sir speak you hindi take this video after his uploaded video sir

  • @emadmorad6977
    @emadmorad6977 Рік тому

    WTF You are not serious.🤦

  • @yuvi_white_hat1942
    @yuvi_white_hat1942 3 роки тому

    Hey hi,please spoke slowly. because i don't know well in english but i can understand but u spoke too fast so i can't get the point.. Please spoke slowly😇😇 Thank you