상황
내가 파일에서 논문 라인을 추출하는 FINDSTR /C:"portid=" "scanports.xml"
를 사용하여 메일을 보내는 바람직하지 않은 포트를 추출 :Nmap은 : 일괄 및 BLAT
<port protocol="tcp" portid="21"><state state="open" reason="syn-ack" reason_ttl="124"/><service name="ftp" method="table" conf="3"/></port>
<port protocol="tcp" portid="22"><state state="open" reason="syn-ack" reason_ttl="124"/><service name="ssh" method="table" conf="3"/></port>
<port protocol="tcp" portid="80"><state state="open" reason="syn-ack" reason_ttl="124"/><service name="http" method="table" conf="3"/></port>
<port protocol="tcp" portid="443"><state state="open" reason="syn-ack" reason_ttl="124"/><service name="https" method="table" conf="3"/></port>
<port protocol="tcp" portid="3389"><state state="open" reason="syn-ack" reason_ttl="124"/><service name="ms-term-serv" method="table" conf="3"/></port>
질문
- 어떻게
21
를 추출,22
,80
,443
및3389
이 줄의?21
,22
,80
,443
및3389
제외[0-9]
에서 임의의 숫자에 대한 - 같은 질문?
열려있는 모든 포트를 이메일로 보내고 싶습니다.
나는 대본을 끝내었지만 감사합니다. 나는 당신의 대답을 읽었습니다. :) –
시간을 악용해서 정말 죄송합니다. –