Please help can't login error -283

Support for iMacros. The iMacros software is the unique solution for automating every activity inside a web browser, for data extraction and web testing.

Moderator: iMacros Moderators

Forum rules
Before asking a question or reporting an issue:
1. Please review the list of FAQ's.
2. Use the Google search box (at the top of each forum page) to see if a similar problem or question has already been addressed. This will search the entire contents of the forums as well as the iMacros Wiki.
3. We can respond much faster to your posts if you include the following information:

CLICK HERE FOR IMPORTANT INFORMATION TO INCLUDE IN YOUR POST

Answering your own posts (e.g. attempting to "bump" your topic) drops your topic from the list of unanswered threads, so it may actually receive less views.

Please help can't login error -283

by jherington on Tue Dec 05, 2006 5:48 pm

I have a simple script but I can not login to the site. I get an iOpus error:

-283 'Incorrect decryption password supplied. Please enter the correct password in the OPTIONS dialog or re-run the macro.'

Here is my script:

Dim iim1 As Object
Dim iret As Integer
Dim iplay As Integer
Dim strLoginUrl As String
Dim strOrdersUrl As String
Dim strLoginCode As StringBuilder = New StringBuilder("")
Dim strCodeError As String

iim1 = CreateObject("InternetMacros.iim")

iret = iim1.iimInit("", True)

iret = iim1.iimDisplay("IRS Fetch New Orders")

strLoginUrl = "https://la.www4.irs.gov/pub/rup_login/?TYPE=33554432&REALMOID=06-3e42c2f4-1c41-0019-0000-25b0000025b0&GUID=&SMAUTHREASON=0&METHOD=GET&SMAGENTNAME=$SM$JeqYLjds8JiXTULV2mmcR%2fyHgnVDnOlhSLU8YhfCOTo%3d&TARGET=$SM$https%3a%2f%2fla%2ewww4%2eirs%2egov%2fRUP%2fnewSelectPersonality%2f0%2c%2c%2c00%2ehtml%3fTYPE%3d33554432%26REALMOID%3d06-42d3d179-ae36-0006-0000-4d5700004d57%26GUID%3d%26SMAUTHREASON%3d0%26METHOD%3dGET%26SMAGENTNAME%3d$$SM$$JeqYLjds8JiXTULV2mmcR$%2fyHgnVDnOlhSLU8YhfCOTo$%3d%26TARGET%3d$$SM$$https$%3a$%2f$%2fla$%2ewww4$%2eirs$%2egov$%2fPORTAL-PROD$%2fCRM$%2fsignon$%2ehtml"

strLoginCode.Append("CODE:VERSION BUILD=521138" + vbNewLine)
strLoginCode.Append("TAB T=1" + vbNewLine)
strLoginCode.Append("TAB CLOSEALLOTHERS" + vbNewLine)
strLoginCode.Append("URL GOTO=" + strLoginUrl + vbNewLine)
strLoginCode.Append("TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:loginForm ATTR=NAME:USER CONTENT=" + txtLoginName.Text.Trim + vbNewLine)
'strLoginCode.Append("PAUSE" + vbNewLine)
strLoginCode.Append("TAG POS=1 TYPE=INPUT:PASSWORD FORM=NAME:loginForm ATTR=NAME:PASSWORD CONTENT=" + txtPassword.Text.Trim + vbNewLine)
'strLoginCode.Append("PAUSE" + vbNewLine)
strLoginCode.Append("TAG POS=1 TYPE=INPUT:SUBMIT FORM=NAME:loginForm ATTR=NAME:btnSubmit&&VALUE:I<SP>Accept")

Dim str As String = strLoginCode.ToString.Trim

iret = iim1.iimPlay(str)

strCodeError = iim1.iimGetLastError()

lblStatus2.Text = strCodeError

I get as far as entering the user name but as soon as the script tries to input the password I get the error.

Here is the website source:

<html><head><meta http-equiv="pragma" content="no-cache">
<title>Login</title>
<link href="/irs/cda/common/commonStyleSheet/irs-gov_dev.css"

rel="stylesheet" type="text/css">

<script language="JavaScript">
function getCookieVal (offset) {
var endstr = document.cookie.indexOf (";", offset);
if (endstr == -1)
endstr = document.cookie.length;

return unescape(document.cookie.substring(offset, endstr));
}

function GetCookie (name) {
var arg = name + "=";
var alen = arg.length;
var clen = document.cookie.length;
var i = 0;
while (i < clen) {
var j = i + alen;

if (document.cookie.substring(i, j) == arg)
return getCookieVal (j);

i = document.cookie.indexOf(" ", i) + 1;
if (i == 0) break;
}

return null;
}

function returnWin() {
// -1 : doing a window history back

var expdate = new Date();
// Set cookie time to expire in 1 minute
expdate.setTime (expdate.getTime() + (1 * 60 * 1000));

document.cookie = eservFrameCookie + "=-1 ; path=/ ; expires="

+ expdate;

history.go(-1);
}

/*
Cookie values:
-1 : go back in history one time
0 : coming from the REDIRECT page
1 : initial entry into the
2 : on the personality page
*/
// Check for eServices frame and correct the display
var eservFrameCookie = "ESERV_FRAME";
var c = GetCookie(eservFrameCookie);

if (window.parent != window.self) {
if (c == null) {
// 1 : Initial entry - with frame
var selfLocation = window.self.location.href;

document.cookie = eservFrameCookie + "=1 ; path=/ ";

if (selfLocation.indexOf("?", 0) > -1) {
selfLocation += "&f_redirect=1";
} else {
selfLocation += "?f_redirect=1";
}

window.parent.location.href = selfLocation;
} else if (c == 0 || c == -1) {
returnWin();
}
} else {
if (c == 0) {
returnWin();
}
}

/*
Jan 27, 2005. Using USER_TRYNO cookie instead of smretry_cookie to
tell whether user has logon attempt.
*/

function setMyCookie() {
document.cookie = "USER_TRYNO=1 ; path=/";
return true;
}

function checkForm(theForm) {
var errMsg = "";

if (theForm.USER.value == "") {
errMsg += "Please enter your username.\n";
}

if (theForm.PASSWORD.value == "") {
errMsg += "Please enter your password.\n";
}

if (errMsg != "") {
alert(errMsg);
return false;
}

return true;
}
</script>
</head>

<body class="content">
<center>
<table cellspacing="0" cellpadding="0" bgcolor="#FFFFFF" width="760"

height="84">
<tr>
<td>
<img name="IrsBanner"

src="/irs/cda/common/images/irs-sub-masthead.gif" border="0"

width="760" height="73" alt="Internal Revenue Service The Digital

Daily">
</td>
</tr>
<tr class="topnav">
<td class=topnav align=center width=760 colSpan=2 height=25>
<A href="#TopNavSkip"><IMG height=1 alt="Skip past Top Nav

Bar" src="/irs/cda/common/images/1x1-transparent.gif" width=1

border=0></A>
<A class=topnav

href="http://www.irs.gov">Home</A>&nbsp;&nbsp;|&nbsp;&nbsp;
<A class=topnav

href="http://www.irs.gov/taxstats/index.html">Tax

Stats</A>&nbsp;&nbsp;|&nbsp;&nbsp;
<A class=topnav href="http://www.irs.gov/irs/index.html">About

IRS</A>&nbsp;&nbsp;|&nbsp;&nbsp;
<A class=topnav

href="http://www.jobs.irs.gov/">Careers</A>&nbsp;&nbsp;|&nbsp;&nbsp;
<A class=topnav

href="http://www.irs.gov/foia/index.html">FOIA</A>&nbsp;&nbsp;|&nbsp;&

nbsp;
<A class=topnav

href="http://www.irs.gov/newsroom/index.html">The

Newsroom</A>&nbsp;&nbsp;|&nbsp;&nbsp;
<A class=topnav

href="http://www.irs.gov/accessibility/index.html">Accessibility</A>&n

bsp;&nbsp;|&nbsp;&nbsp;
<A class=topnav

href="http://www.irs.gov/sitemap/index.html">Site Map</A>

&nbsp;|&nbsp;&nbsp;
<A class=topnav

href="http://www.irs.gov/espanol/index.html">Espa&ntilde;ol</A>&nbsp;&

nbsp;|&nbsp;&nbsp;
<A class=topnav

href="http://www.irs.gov/help/index.html">Help</A>
<img height=1 alt=" "

src="/irs/cda/common/images/1x1-transparent.gif" width=1>
</td>
</tr>
</table>

<a name="TopNavSkip"></a>

<!-- Begin Content -->
<table width="760" border="0" cellspacing="0" cellpadding="0"

bgcolor="#ffffff">
<form name="loginForm" action="/login/login.fcc" method="post"

autocomplete="off" onSubmit="setMyCookie(); return checkForm(this);">
<tr bordercolor="#ffffff">
<td>
<a target=_self href="http://www.irs.gov"

class="breadcrumb">IRS Home</a> &gt;
<a target=_self

href="http://www.irs.gov/taxpros/index.html" class="breadcrumb">Tax

Professionals</a> &gt;
<a href="#" class="breadcrumb">Login</a><br>
</td>
</tr>
<tr bordercolor="#ffffff">
<td height="32">
<div align="right" class="content-heading">
<p>&nbsp;</p><p>Login<br>
<img src="/irs/cda/common/images/1x1-grey.gif"

width="760" height="1" alt=" "></p>
</div>
</td>
</tr>
<tr bordercolor="#ffffff"><td>&nbsp;</td></tr>
<tr>
<td>

</td>
</tr>
<tr bordercolor="#ffffff" valign="top">
<td align="center">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td><p></p></td>
</tr>
<tr>
<td

class="form-field-name-required">Username &nbsp;</td>
<td

class="form-field-name-value"><input type="text" id="userid"

name="USER" class="PSEDITBOX" size="15"></td>
</tr>
<tr>
<td

class="form-field-name-required">Password &nbsp;</td>
<td

class="form-field-name-value"><input type="password" id="pwd"

name="PASSWORD" size="15"></td>
</tr>
</table>
</td>
</tr>
<tr><td>&nbsp;</td></tr>
<tr><td align="right"><a

href="/e-services/Registration/Reg_Online/Reg_RegisterUserForm">Not

registered? Register here</a></td></tr>
<tr><td>&nbsp;</td></tr>
<tr><td align="center" class="box-heading">FORGOT YOUR

PASSWORD?</td></tr>
<tr><td class="content-note">
If you have forgotten your password, or your password

is not working for some reason, <a

href="/e-services/Registration/Reg_ForgotPwd/Reg_RecoverPwPINForm.jsp"

>click here</a> to get a new one.
You will need your username, name, SSN, date of birth,

and shared secrets used in the original registration.
</td>
</tr>
<tr><td>&nbsp;</td></tr>
<tr><td class="content-note">
<span class="content-heading">WARNING!</span> You are

using an Official United States
Government System, which may be used only for

authorized purposes. Unauthorized
modification of any information stored on this system

may result in criminal prosecution.
The Government may monitor and audit the usage of this

system, and all persons are hereby notified
that the use of this system constitutes consent to

such monitoring and auditing. Unauthorized
attempts to upload information and/or change

information on these web sites are strictly prohibited
and are subject to prosecution under the Computer

Fraud and Abuse Act of 1986 and Title 18 U.S.C. Sec.
1001 and 1030.<br>
</td>
</tr>
<tr>
<td align="center" class="form-field-name-value">
<input class="button-box" type="submit"

value="I Accept" name="btnSubmit">
<img

src="/irs/cda/common/images/1x1-transparent_spacer.gif" width="30"

height="1" alt=" ">
<input class="button-box" type="button"

value="I Do Not Accept" name="btnSubmit2"

onClick="window.location='http://www.irs.gov'">
<input type=hidden name=target

value='$SM$https://la.www4.irs.gov/RUP/newSelectPersonality/0,,,00.htm

l?TYPE=33554432&REALMOID=06-42d3d179-ae36-0006-0000-4d5700004d57&GUID=

&SMAUTHREASON=0&METHOD=GET&SMAGENTNAME=$$SM$$JeqYLjds8JiXTULV2mmcR$/yH

gnVDnOlhSLU8YhfCOTo$=&TARGET=$$SM$$https$:$/$/la$.www4$.irs$.gov$/PORT

AL-PROD$/CRM$/signon$.html'>
<input type=hidden name=smauthreason

value='0'>
</td>
</tr>
<tr><td>&nbsp;</td></tr>
<tr>
<td>


</td>
</tr>
<tr><td>&nbsp;</td></tr>
</form>
</table>
<!-- End Content -->
<table class="footer" width="760">
<tr>
<td><img src="/irs/cda/common/images/1x1-grey.gif" width="760"

height="1" alt=" "></td>
</tr>
<tr>
<td align="center">
<!-- <a href="../e-services/privacy.htm">e-Services

Privacy Policy</a>&nbsp; |&nbsp; -->
<a

href="http://www.irs.gov/privacy/index.html">e-Services Privacy

Policy</a>&nbsp; |&nbsp;
<a

href="http://www.irs.gov/advocate/index.html">Taxpayer Advocate</A> |
<a

href="http://www.irs.gov/contact/index.html">Contact Us</A> <!-- |

&copy;2002 IRS.gov -->
</td>
</tr>
</table>
</center>
</center>
<script language="JavaScript">
<!--
var _theForm = document.forms[0];

if (_theForm.USER.value == "") {
_theForm.USER.focus();
}
// -->
</script>
</body>
</html>

<!--

-->
Jeff Herington
jherington
 
Posts: 21
Joined: Mon Dec 04, 2006 3:08 pm

by jherington on Tue Dec 05, 2006 6:19 pm

I was able to correct the issue by adding the following line to my script.

strLoginCode.Append("SET !ENCRYPTION NO" + vbNewLine)

I would like to be able to use the encrypted storage so if there is an explaination for why I am have this issue, please let me know.

Thanks.
Jeff Herington
jherington
 
Posts: 21
Joined: Mon Dec 04, 2006 3:08 pm

by Tech Support on Wed Dec 06, 2006 4:10 am

Hi,

You can set the password option via the security tab of the options menu, which you will find under the Tools menu of the iMacros browser. The use of password encryption is explained in the online user manual:

http://www.iopus.com/imacros/help/security.htm

If you wish to have your passwords encrypted in your script / macro then you will need to hold the master password on your machine (or enter it manually on each run).

Daniel Kerr
iOpus Support
User avatar
Tech Support
 
Posts: 4988
Joined: Tue Sep 20, 2005 12:25 pm


Return to General Support & Discussions

Who is online

Users browsing this forum: No registered users and 5 guests

Website Monitoring