File: netcom.sms

package info (click to toggle)
smssend 3.4-2
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 2,232 kB
  • ctags: 114
  • sloc: sh: 11,314; ansic: 2,368; perl: 104; makefile: 58
file content (58 lines) | stat: -rw-r--r-- 1,550 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
## netcom.no ##
# Version 0.01
#
# by Hvard Dahle <havard@dahle.no>
#
# You have to register at planit.netcom.no or mother.netcom.no
# to get a password to this service.
# I am not sure whether this works outside of Norway...
#
# Error codes :
#  1 -> Bad Login/Password
#  2 -> No more messages left
#  9 -> Number not valid
#  99 -> Unknown Error

NbParams 4
%Login Convert : Your login from netcom.no
%Password Hidden : Your password from netcom.no
%Tel Size=11 Convert : International phone number w/prefix
%Message Size=620 Convert : Your message


# Get the session id
GetURL http://planit.netcom.no/PlanIt/
GO

# Log On
PostURL http://planit.netcom.no/Login/CheckLogin.html
Referer http://planit.netcom.no/Login/login.html?org=/PlanIt/
PostData UserId=\%Login%&Password=\%Password%&Login=Logg+inn&ORG=/PlanIt/
Search passord
ErrorMsg 1 Bad Login/Password
GO

# Check msgs left
GetURL http://planit.netcom.no/SMS/SMSSendMessage.html
Params sendSMS=ok
Search 0 gratis og 0 ekstra
ErrorMsg 2 No messages left
Else
PrintMsg Still some messages left.. let's get this puppy in the air
GO

# Send message
PostURL http://planit.netcom.no/servlet/no.netcom.interaktiv.servlets.CyberSme
Referer http://planit.netcom.no/SMS/SMSSendMessage.html?sendSMS=ok
PostData charCount=400&charCountSMS=1&Message=\%Message%&portalen=planit&smsId=&TelephoneNumber=\%Tel%&saveMode=&sende=ok&portalen=planit&categoryNr=

Search Ugyldig nummer
ErrorMsg 9 Number not valid
Else
ElseSearch ble sendt
PrintMsg Message successfully sent
Else
ErrorMsg 99 Unknown Error
GO