Saib qhib cov chaw nres nkoj nrog NMap thiab ntsuas kom tiv thaiv peb tus kheej

Nyob zoo hnub. Hnub no kuv coj koj qee cov lus qhia me me, peb mus saib qhov qhib chaw nres nkoj uas peb muaj. Rau qhov no peb yuav siv NMap yog li peb npaj mus nruab nws.

En Debian / Ubuntu:

# apt-get install nmap

tom qab ntawd kom pom qhib cov chaw nres nkoj ntawm koj lub pc. (Hauv zos)

#nmap localhost

Cov no yog cov chaw nres nkoj uas qhib hauv zos, uas yog, lawv tsis tas yuav mus rau hauv internet. Hauv kuv qhov xwm txheej, 22 yog qhib, uas yog rau ssh thiab 25 rau smtp.

Txhawm rau pom qhib cov chaw nres nkoj ntawm kuv lub pc tab sis hauv internet Kuv ua tib lub nmap tab sis nrog kuv tus ip chaw nyob

Hauv kuv qhov teebmeem nws pom tias tus tswv tsev nyob tab sis nws tsis pom ib qho qhib qhov chaw nres nkoj (nws tsuas yog scans 1000 tauj). Qhov no yog vim hais tias txawm tias qhov chaw nres nkoj qhib ntawm kuv lub pc, Router tabtom lim nws.

Tab sis yog tias kuv qhib lub chaw nres nkoj sib txawv ntawm lub router ...

Qhov tseeb tias lawv tuaj yeem pom qhov twg cov chaw nres nkoj qhib ntawm kuv lub pc tawm suab qee qhov kev pheej hmoo ntawm kuv lub tshuab. Yog li kuv yuav luag kuv ssh server me ntsis. Rau qhov no Kuv yuav hloov pauv chaw nres nkoj (22) rau lwm qhov ...

Kuv mus ua hauv paus rau cov ntaub ntawv / thiab / ssh_config:

# nano /etc/ssh/ssh_config

mus qhov twg nws hais  # port 22 .. peb rho tawm tus # thiab hloov chaw nres nkoj rau qhov peb xav tau ..

peb tshawb nrog CTRL-W. Peb txuag nrog CTRL-O thiab kaw nrog CTRL-C lossis CTRL-X

Hauv kuv tus kheej Kuv yuav siv 2222

Peb zoo tib yam nrhiav rau lo lus "chaw nres nkoj" hauv cov ntawv / etc / ssh / sshd_config  hloov nws mus rau tib qho chaw nres nkoj uas peb tab tom siv. Tam sim no peb hloov / lwm yam / kev pabcuam

Peb tab tom nrhiav SSH thiab peb hloov ob qho chaw nres nkoj rau ib qho uas peb tau hloov ua ntej.

Tam sim no peb rov qab muab cov kev pabcuam.

Thiab peb ua nmap ntxiv lawm

Raws li koj tau pom. Tsis muaj dab tsi txog peb lub chaw nres nkoj thiab / lossis cov kev pabcuam ssh los.

Tab sis ssh puas ua hauj lwm?

Ntawm lub tsev kawm.

Tseem ceeb yog tias yog koj yuav nkag los ntawm lwm lub computer, koj yuav tsum tau qhia tias yog qhov chaw nres nkoj uas koj siv.

ssh -p 2222 IP   (Piv txwv)

 

Tej zaum thaum siv chaw nres nkoj 2222 lub nmap tawm nrog qee yam nrog Ethernet-PC. Tsuas yog saib rau lwm qhov chaw nres nkoj ntau dua 1000 uas tsis siv heev
Txhawm rau saib cov npe ntawm cov chaw nres nkoj thiab cov kev pabcuam uas khiav, koj tuaj yeem mus ntawm no
Xav paub ntau ntxiv txog nmap http://nmap.org/

 

Yog li koj tuaj yeem hloov cov chaw nres nkoj ntawm lwm yam kev pabcuam.

 

Cheers.!


Cov ntsiab lus ntawm tsab xov xwm ua raws li peb cov ntsiab cai ntawm kev tswj hwm kev ncaj nceesCov. Tshaj tawm ib qho yuam kev nyem no.

22 lus, tawm koj li

Tso koj saib

Koj email chaw nyob yuav tsis tsum luam tawm. Yuav tsum tau teb cov cim nrog *

*

*

  1. Lub luag haujlwm rau cov ntaub ntawv: Miguel Ángel Gatón
  2. Lub hom phiaj ntawm cov ntaub ntawv: Tswj SPAM, kev tswj xyuas tawm tswv yim.
  3. Sau raws cai: Koj kev tso cai
  4. Kev sib txuas lus ntawm cov ntaub ntawv: Cov ntaub ntawv yuav tsis raug xa mus rau lwm tus neeg thib peb tsuas yog los ntawm kev txiav txim siab raug cai.
  5. Cov ntaub ntawv khaws cia: Cov Ntaub Ntawv khaws tseg los ntawm Occentus Networks (EU)
  6. Txoj Cai: Txhua lub sijhawm koj tuaj yeem txwv, rov qab thiab tshem tawm koj cov ntaub ntawv.

  1.   adxaj87 said

    Tsaug rau qhov taub, nthuav.

  2.   Alf said

    Thiab hauv lus Spanish? ha ha ha ha sib sis

    Qhov no yog kev tshawb fawb, kuv tau sim nws thiab nws tsis txuas rau hauv internet ntxiv lawm, haha, ib tug phooj ywg pab kuv daws nws tom qab nyeem kab lus ntawm nws tus ceg tawv, nws nyiam nws heev thiab nws tau txhim kho ubuntu ntawm nws lub laptop, thaum ua ntej nws tau hais rau kuv tias nws tsis yog rau nws.

    regards

    1.    @Jlcmux said

      haha Kuv tsis paub dab tsi koj tau txav tsis dhau lawm .. Tab sis kuv muab nws siv kom meej li meej tau. Tab sis yog tias koj xav tau kuv tuaj yeem ua daim video rau koj. 🙂

  3.   Alf said

    Naaaaah, Kuv raug tsis pom zoo rau tes hauj lwm thiab lus Askiv, Kuv tau xav kawm ntev thiab kuv tsis tau pom tus kws qhia ua siab ntev rau kuv, xav txog tej yam.
    Qhia ib tus txiv neej hnub nyoog 40 xyoo zoo li nws muaj 10, hahahaha

    1.    @Jlcmux said

      haha Nws tsis muaj dab tsi ntxiv .. Nrog hangout lossis tej yam zoo li ntawd .. Kom koj nkag siab kuv.

      1.    chinoloco said

        Txais tos rau ntawd hangout !!
        ^^

  4.   Yawg linux said

    Kev sib koom ua ke, kev muaj txiaj ntsig zoo.

  5.   taregon said

    Kuv twv kom nthuav tawm qhov kev sib tw no seb yog qhov chaw nres nkoj 2222 oO tsis tshwm sim

    Khiav: sudo nmap -v -sS -A -p 1-65535 localhost

    PS: lub scan yuav qeeb ... Kuv ntxiv qhov "-v" kev xaiv kom koj tsis txhob dhuav saib lub davhlau ya nyob twg ua dab tsi.

    1.    @Jlcmux said

      Pom tseeb yog tias .. Tab sis kuv tab tom tham txog ib txwm muaj scan. Tus nmap muaj ntau txoj kev xaiv thiab cov yam ntxwv, paub siv nws. tsis muaj chaw nres nkoj escapes nws.

    2.    @Jlcmux said

      Dhau li ntawm uas ib txwm muaj txoj kev .. Tshwj xeeb tshaj yog nyob rau hauv linux, tsis muaj ib yam dab tsi muaj kev nyab xeeb tag nrho .. Nws tsuas yog ib qho me me: p

      1.    taregon said

        Kuv lub tswv yim tsis yog thim cov cloaking tactic tab sis nmap cov lus txib uas kuv tawm rau thaum ib qho tsis nco txog qhov chaw nres nkoj uas tau xaiv los ua lub neej ntawd hloov yog qhov zoo (nws nyuaj rau nco txog ips thiab ports ...). Hauv kuv qhov teeb meem Kuv yuav tsum tau txuas rau deb ntawm VNC rau PCs qhov twg lawv qhov chaw nres nkoj tsis yog qhov qub 5900 lossis 5901; ib qho scan yuav qhia kuv tias tsis muaj chaw nres nkoj mloog rau vnc yog li cov tshuaj yog dab tsi? Teb: Siv nmap thiab yuam nws txhawm rau nug txhua lub ports. 😉

        1.    @Jlcmux said

          Kom paub meej, Kuv tsis tau tawm siab deb ntawm nws, peb paub tias txhua yam tsis muaj kev nyab xeeb kiag li. Tsuas muaj kev nyab xeeb nkaus xwb. Thiab yeej ib txwm muaj ib yam dab tsi dhau ... yeej muaj qee yam uas ua txhaum kev ruaj ntseg. Nws yog ib qho txiaj ntsig zoo, koj tuaj yeem ua me ntsis qhia ntawm nmap. Txais tos.

  6.   xov hexborg said

    Ib qho zoo meej ntxiv rau kev xa ua ntej. Kuv tsis paub yog tias koj tau ua nws lub hom phiaj, tab sis nws tau muab tawm zoo kawg. 🙂

  7.   javitopir ua said

    Qhov no tsuas yog kev ruaj ntseg rau qhov tsis pom kev zoo, hmoov tsis nrog kev xaiv -v ntawm nmap koj txheeb xyuas tias qhov chaw nres nkoj uas koj muab tso rau qhov nmap. Txhawm rau tiv thaiv koj tus kheej los ntawm nmap, koj yuav tsum siv txoj cai iptables, uas tsis tuaj yeem tiv thaiv kev thaij txhua tus. Tab sis hav, nws ua haujlwm tawm tsam kev nyiag nkas ...

  8.   jpablo said

    Nyob zoo, cov lus nug, Kuv tsis nkag siab vim li cas nmap tsis tshem tawm cov chaw nres nkoj tom qab tau hloov nws, nws puas nqa tawm chaw nres nkoj los luam theej duab los ntawm lub neej ntawd?

    1.    @Jlcmux said

      Yog, nmap los ntawm lub neej ntawd scans 1000 ports.Yog peb paub tias yuav ua li cas thiaj lis tau, qhov no tsis txaus los tiv thaiv ssh lossis lwm yam kev pab cuam los ntawm clutches ntawm nmap. Qhov zoo tshaj plaws yuav yog fail2ban thiab psad.

  9.   martin said

    @Jlcmux
    Tso cai rau kuv los kho qee qhov kev hloov pauv hais txog qhov koj tshaj tawm, Kuv kho kho hauv feem:

    1.
    "Cov no yog cov chaw nres nkoj uas qhib hauv zos, uas yog, lawv tsis tas yuav mus rau hauv is taws nem. Hauv kuv qhov xwm txheej, 22 yog qhib rau ssh thiab 25th rau smtp."
    Qhov no tsis yog. Cov ntawd yog cov chaw nres nkoj uas qhib rau ntawm tus tswv uas koj yuav soj ntsuam hauv thaj tsam ntawm thawj 1024 chaw nres nkoj, uas yog qhov ntau uas NMAP ntsuas los ntawm lub neej ntawd.

    "Cov no yog cov chaw nres nkoj uas qhib hauv zos, uas yog, lawv tsis tas yuav mus rau hauv is taws nem .."
    Koj yuav tsum hais meej tias tsuas yog txoj hauv kev uas lawv tsis "tawm mus" rau hauv net yog los ntawm kev ua koj lub tshuab rau ntawm qhov chaw ua luam dej (NAT los ntawm lub ntsiab lus yog nyob rau hauv lem thawj qhov hluav taws xob) thiab ntev npaum li cov chaw nres nkoj tsis qhib ntawm lub cuab yeej uas ua NAT (feem ntau yog router) thiab thim rov qab (FORWARDING) cov chaw nres nkoj qhib rau koj lub tshuab.
    Yog lawm, yog tias lub tshuab txuas ncaj qha rau modem ces nws tau IS rau hauv net.
    Rau cov lus txib uas luam tawm los ntawm @taregon, uas yog qhov tseeb rau luam theej duab thiab coj mus rhaub txhua qhov chaw nres nkoj ntawm lub tshuab, koj tuaj yeem ntxiv, ntawm lwm cov kev xaiv, -sV kom nmap sim nrhiav qhov kev pabcuam twg ntawm txhua qhov chaw nres nkoj: sudo nmap -v -sS -sV -A -p 1-65535 localhost
    Piv Txwv:
    Pib Nmap 6.25 ( http://nmap.org ) rau xyoo 2012-12-06 13:39 ART
    Nmap scan qhia rau localhost.localdomain (127.0.0.1)
    Host yog li (0.00021s latency).
    Tsis pom: 999 lub pob ze
    LUB CAIJ NTUJ CEEB TSHWJ XEEB VERSION
    631 / tcp qhib ipp CUPS 1.6
    2222 / tcp qhib ssh OpenSSH 6.1 (raws tu qauv 2.0)

    2.
    «Qhov tseeb tias lawv tuaj yeem pom qhov twg cov chaw nres nkoj qhib ntawm kuv lub pc ua rau qee qhov pheej hmoo ntawm kuv lub tshuab. Yog li kuv yuav luag kuv ssh server me ntsis. Rau qhov no Kuv yuav hloov pauv lub neej ntawd chaw nres nkoj (22) rau lwm qhov ...

    Kuv mus ua cag rau / / etc / ssh_config file:

    # nano / thiab / ssh / ssh_config

    peb mus qhov twg nws hais tias # chaw nres nkoj 22 .. peb rho tawm tus # thiab hloov chaw nres nkoj rau ib qhov peb xav tau .. »

    TSIS MUAJ! Ib qho tsis muaj dabtsi ua nrog rau lwm qhov!
    / etc / ssh / ssh_config saib xyuas cov kev xaiv cov neeg siv nkaus xwb yog li cov chaw nres nkoj koj teeb yuav muaj ib qho ssh tus neeg siv los ntawm lub neej ntawd txuas rau ssh servers hloov chaw nres nkoj 22.

    Koj tsuas yog hloov pauv ntawm kev mloog chaw nres nkoj uas koj tab tom nrhiav los ntawm kev hloov cov kev xaiv uas tau hais hauv / / etc / ssh / sshd_config file.

    Thaum kawg, nrog lub vev xaib no peb tuaj yeem sim seb cov chaw nres nkoj twg los yog tsis qhib ntawm peb lub tshuab, uas tau muab zais, xyuas seb ping ncha puas xiam thiab qee yam: https://www.grc.com/x/ne.dll?bh0bkyd2

    Txais tos.

  10.   Fenriz said

    Zoo heev tshuaj xyuas. kuv nyiam ua tsaug 😀

  11.   Andres said

    Zoo heev tutorial ntawm nmap
    Reet Txais tos !!!

  12.   yuav said

    cov npoj yaig, puas muaj leej twg paub li cas kuv tuaj yeem ua kom paub qhib lub pob ntawm lwm tus neeg ??? ntawm kuv lub computer ???

    1.    Adrian said

      Siv cov lus txib: nmap XXXX
      Qhov twg tus x yog qhov ip ntawm lub khoos phis tawm

  13.   Adrian said

    Nyob zoo, ua ntej ntawm txhua tus ua tsaug rau sib qhia.
    Kuv muaj teeb meem, vam tias koj tuaj yeem pab kuv: Thaum ua nmap nrog kuv tus ip los ntawm tib lub tshuab nws qhia kuv tias chaw nres nkoj 3306 qhib thiab nrog netstat Kuv pom tias qhov chaw nres nkoj tau mloog; Txawm li cas los xij, thaum ua lub scan nrog nmap los ntawm lwm lub pc, nws tsis qhia qhov qhib chaw nres nkoj 3306.
    Tsis tas li kuv twb hloov tso rau hauv bin-address rau 0.0.0.0
    Kuv sim txuas java daim ntawv thov nrog DB ntawm LAMP server thiab daim ntawv thov ua haujlwm vim tias kuv tau ua cov lus nug ntawm lwm lub pc qhov twg kuv teeb tsa wamp server rau kuaj thiab txhua yam tsis ua li cas.
    Ib lub tswv yim twg? Kuv tsis paub xyov yuav ua dab tsi ntxiv