Security in Go - Building a Port Scanner

  Рет қаралды 14,810

TutorialEdge

TutorialEdge

4 жыл бұрын

👨‍💻 For the price of a ☕ every month, sign up and gain access to a growing list of premium courses on my site - tutorialedge.net/pricing/ 👩‍💻
● SUBSCRIBE to see more of my Videos & hit that LIKE button to support the channel!
Text Tutorial: tutorialedge.net/projects/bui...
‎● My Twitter ► ⁦‪ / elliot_f
‎● My Website ► tutorialedge.net

Пікірлер: 21
@khashe
@khashe 4 жыл бұрын
Really appreciate these Go tutorials. Good Go content is hard to come by.
@re43p3raod3
@re43p3raod3 2 жыл бұрын
i tired making a good port scanner in rust since im building an AI and was going o add a thing where you can say a target and port scan it but sadly there wasnt any good tutorials for it so your channel and vid cam up. i followed along and i have to say amazing work man, this saved me probobly a good week trying to find a good tutorial! keep doing what your doing man
@JohnLeTerron
@JohnLeTerron 4 жыл бұрын
This was great. Have to try this with goroutines to do the checks asynchronously
@colinmsmall
@colinmsmall 4 жыл бұрын
Thanks for making these
@BabaDee08
@BabaDee08 4 жыл бұрын
This is Awesome. Thanks man.
@xrosspi
@xrosspi 4 жыл бұрын
Hey, great video! I've just got a note about the bit at the end. I don't think the UDP part of this code will provide useful results - with TCP, the connection is successful when you send a packet and get an acknowledgement in response; with UDP, the connection is considered successful if you just send the packet (regardless of if anyone actually receives it). Notice that the UDP scan results report all ports as open.
@Tutorialedge
@Tutorialedge 4 жыл бұрын
Thanks! Yeah I was going based on the 5 most commonly used port scanning methods, one of which is UDP. I believe tools like nmap actually send custom UDP packets to each of these ports in order to elicit a response from them which gives them more information which can be used in a pentest. I'm thinking about going more in-depth with this and starting to add more advanced features like this, but it will be built up gradually as I'm still at the beginning of my journey learning about pen-testing!
@vishwavasudevan6848
@vishwavasudevan6848 4 жыл бұрын
Keep rocking buddy
@CinemaRaps
@CinemaRaps 2 жыл бұрын
Hi, what IDE are you using in this tutorial?
@rokettayfas9711
@rokettayfas9711 4 жыл бұрын
Hey, What is that font?
@benalpha2297
@benalpha2297 2 жыл бұрын
Hello bro! How can I get the body (JSON, plain text,...) of a request from the packets I've got?
@JoakimBB
@JoakimBB 4 жыл бұрын
Black hat go?;) I subbed btw!
@rcoder9507
@rcoder9507 3 жыл бұрын
performance can be improved using go routines
@williamwatkins6669
@williamwatkins6669 2 жыл бұрын
Why are all the udp opened?
@joelpjphnson2347
@joelpjphnson2347 Жыл бұрын
All tcp are closed
@ygjt76v0-----
@ygjt76v0----- 3 жыл бұрын
Github repo doesnt work /gone
@joelpjphnson2347
@joelpjphnson2347 Жыл бұрын
All tcp closed all udp opened
@r4ndsen
@r4ndsen 2 жыл бұрын
amazing how you dont use go routines
@codeconcept
@codeconcept 10 ай бұрын
Great tutorial thanks :) I tried adding goroutines: the scan becomes almost immediate. func InitialScan(hostname string) []ScanResult { var results []ScanResult wg := sync.WaitGroup{} for i := 1; i < 1024; i++ { wg.Add(1) go func(port int) { fmt.Printf("Go routine created for port %v ", port) results = append(results, ScanPort("tcp", hostname, port)) results = append(results, ScanPort("udp", hostname, port)) fmt.Printf("Go routine %v done ", port) wg.Done() }(i) } wg.Wait() return results } Way faster but the results are displayed in a random order :)
Building a Go REST API using Gorm and Fiber!
26:10
TutorialEdge
Рет қаралды 77 М.
39kgのガリガリが踊る絵文字ダンス/39kg boney emoji dance#dance #ダンス #にんげんっていいな
00:16
💀Skeleton Ninja🥷【にんげんっていいなチャンネル】
Рет қаралды 8 МЛН
Secret Experiment Toothpaste Pt.4 😱 #shorts
00:35
Mr DegrEE
Рет қаралды 35 МЛН
Little girl's dream of a giant teddy bear is about to come true #shorts
00:32
BSides DC 2019 - Hands-on Writing Malware in Go
35:42
BSides DC
Рет қаралды 11 М.
Understanding Contexts in Go in 5(-ish?) Minutes
15:14
TutorialEdge
Рет қаралды 60 М.
How To Build A Custom TCP Server In Golang!?
19:32
Anthony GG
Рет қаралды 26 М.
This Is The BEST Way To Structure Your GO Projects
11:08
Melkey
Рет қаралды 68 М.
Working with JSON in Go - Tutorial
14:14
TutorialEdge
Рет қаралды 42 М.
packagemain #20: Building a TCP Chat in Go
35:08
package main
Рет қаралды 48 М.
Beginners Guide to gRPC in Go!
18:15
TutorialEdge
Рет қаралды 132 М.
Concurrency in Go
18:40
Jake Wright
Рет қаралды 611 М.
Vim Tips I Wish I Knew Earlier
23:00
Sebastian Daschner
Рет қаралды 46 М.
39kgのガリガリが踊る絵文字ダンス/39kg boney emoji dance#dance #ダンス #にんげんっていいな
00:16
💀Skeleton Ninja🥷【にんげんっていいなチャンネル】
Рет қаралды 8 МЛН