Re: Help regarding jarapac API

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Re: Help regarding jarapac API

Michael B Allen-4
First, the mailing list you should be communicating with is the JCIFS
list. See https://lists.samba.org/listinfo/jcifs.

Otherwise, I haven't looked at Jarapac in over a year so I can't comment
on the error.

But the first thing I would do to try to figure out what is going on
is to try a clean vanilla install of Jarapac with no modifications and
run the examples/TestAtsvc.java example that launches notepad. If that
doesn't work, based on your error message, I would then check to make
sure the at service is actually running. If you're using XP home or
something like that it might not be (in which case you might then try
a modified examples/TestSvcctl.java to start it first.

Mike

On Mon, 2 Jan 2006 15:22:12 +0530
Varma P <[hidden email]> wrote:

> Hi,
>
> I am very sorry to send this mail to your personal id.
> I have problem with remote command execution using jarapac API. I posted my
> problem in samba groups before 3 weeks, but didn't get any reply. So I am
> writing to you.
>
> My problem is have to execute command remotely from linux to windows, given
> windows with minimum credentials. So after reading samba lists, I found this
> problem can be solved using MIDLC, JCIFS, JARAPAC. After experimenting, I am
> able to create the stubs using MIDLC, and able to transfer the file using
> JCIFS. For executing command remotely, I am trying with TestAtsvc exaple.
> But I am getting following error.
>
> "java -classpath
> jarapac.jar:ncacn_np.jar:ntlm-security.jar:lib/jcifs-1.1.2.jar:. TestAtsvc
> 29.227.153.158 <http://229.227.153.158/> example.properties"
>
> >
> > I am getting following error.
> >
> > 00000: 55 13 C5 00 10 00 00 00 00 00 00 00 10 00 00 00  |U.Å.............|
> > 00010: 5C 00 5C 00 31 00 32 00 39 00 2E 00 32 00 32 00  |\.\.1.2.9...2.2.|
> >  00020: 37 00 2E 00 31 00 35 00 38 00 2E 00 38 00 00 00
> > |7...1.5.8...8...|
> >
> > Exception in thread "main" jcifs.smb.SmbException: No process is on the
> > other end of the pipe.
> >          at jcifs.smb.SmbTransport.checkStatus(SmbTransport.java:503)
> >         at jcifs.smb.SmbTransport.send(SmbTransport.java:580)
> >         at jcifs.smb.SmbSession.send(SmbSession.java:229)
> >         at jcifs.smb.SmbTree.send(SmbTree.java:102)
> >         at jcifs.smb.SmbFile.send(SmbFile.java:688)
> >         at jcifs.smb.TransactNamedPipeOutputStream.write(
> > TransactNamedPipeOutputStream.java:65)
> >         at jcifs.smb.RpcTransport.send(RpcTransport.java:107)
> >         at rpc.DefaultConnection.transmitFragment(DefaultConnection.java
> > :107)
> >         at rpc.DefaultConnection.transmit(DefaultConnection.java:57)
> >         at rpc.ConnectionOrientedEndpoint.send(
> > ConnectionOrientedEndpoint.java:140)
> >         at rpc.ConnectionOrientedEndpoint.call(
> > ConnectionOrientedEndpoint.java:86)
> >         at rpc.Stub.call(Stub.java:113)
> >          at TestSrvsvc.doRemoteTOD(TestSrvsvc.java:47)
> >         at TestAtsvc.atsvcScheduleJobAdd(TestAtsvc.java:21)
> >         at TestAtsvc.main(TestAtsvc.java:73)
>
>
> Login is successfull. UUID is correct, svchosts.exe is running on windows.
> still it's giving the aboeve error.
>
> I would appreciate if you could help me with this.
>
> Thanks,
> Varma
>
Reply | Threaded
Open this post in threaded view
|

Re: Help regarding jarapac API

Pothuri Vijay Varma

Hi,

I installed the Jarapac again, and tried with TestAtsvc.java and TestSvcctl.java, still it's giving the same error.

I downloaded the Jarapac0.3.8.zip. Then I build jars using "ant ncacn_np". Then I grind the idl's and compiled TestXxx.java files.

Then I triedto execute with command.

"java -classpath ../jarapac.jar:../ncacn_np.jar:../ntlm-security.jar:../lib/jcifs-1.1.2.jar:idl:. TestAtsvc 129.227.153.58 example.properties"


00000: 55 13 C5 00 11 00 00 00 00 00 00 00 11 00 00 00  |U.Å.............|
00010: 5C 00 5C 00 31 00 32 00 39 00 2E 00 32 00 32 00  |\.\.1.2.9...2.2.|
00020: 37 00 2E 00 31 00 35 00 33 00 2E 00 35 00 38 00  |7...1.5.3...5.8.|
00030: 00 00                                            |..              |

Exception in thread "main" jcifs.smb.SmbException: No process is on the other end of the pipe.
        at jcifs.smb.SmbTransport.sendTransaction(SmbTransport.java:869)
        at jcifs.smb.SmbSession.sendTransaction(SmbSession.java:219)
        at jcifs.smb.SmbTree.sendTransaction(SmbTree.java:74)
        at jcifs.smb.SmbFile.sendTransaction(SmbFile.java:688)
        at jcifs.smb.TransactNamedPipeOutputStream.write(TransactNamedPipeOutputStream.java:65)
        at jcifs.smb.RpcTransport.send(RpcTransport.java:107)
        at rpc.DefaultConnection.transmitFragment(DefaultConnection.java:107)
        at rpc.DefaultConnection.transmit(DefaultConnection.java:57)
        at rpc.ConnectionOrientedEndpoint.send(ConnectionOrientedEndpoint.java:140)
        at rpc.ConnectionOrientedEndpoint.call(ConnectionOrientedEndpoint.java:86)
        at rpc.Stub.call(Stub.java:113)
        at TestSrvsvc.doRemoteTOD(TestSrvsvc.java:47)
        at TestAtsvc.atsvcScheduleJobAdd(TestAtsvc.java:21)
        at TestAtsvc.main(TestAtsvc.java:73)


Thanks,
Varma


On 1/2/06, Michael B Allen <[hidden email]> wrote:
First, the mailing list you should be communicating with is the JCIFS
list. See https://lists.samba.org/listinfo/jcifs.

Otherwise, I haven't looked at Jarapac in over a year so I can't comment
on the error.

But the first thing I would do to try to figure out what is going on
is to try a clean vanilla install of Jarapac with no modifications and
run the examples/TestAtsvc.java example that launches notepad. If that
doesn't work, based on your error message, I would then check to make
sure the at service is actually running. If you're using XP home or
something like that it might not be (in which case you might then try
a modified examples/TestSvcctl.java to start it first.

Mike

On Mon, 2 Jan 2006 15:22:12 +0530
Varma P <[hidden email]> wrote:

> Hi,
>
> I am very sorry to send this mail to your personal id.

> I have problem with remote command execution using jarapac API. I posted my
> problem in samba groups before 3 weeks, but didn't get any reply. So I am
> writing to you.
>
> My problem is have to execute command remotely from linux to windows, given
> windows with minimum credentials. So after reading samba lists, I found this
> problem can be solved using MIDLC, JCIFS, JARAPAC. After experimenting, I am
> able to create the stubs using MIDLC, and able to transfer the file using
> JCIFS. For executing command remotely, I am trying with TestAtsvc exaple.
> But I am getting following error.
>
> "java -classpath
> jarapac.jar:ncacn_np.jar:ntlm-security.jar:lib/jcifs-1.1.2.jar:. TestAtsvc
> 29.227.153.158 <http://229.227.153.158/> example.properties "
>
> >
> > I am getting following error.
> >
> > 00000: 55 13 C5 00 10 00 00 00 00 00 00 00 10 00 00 00  |U.Å.............|
> > 00010: 5C 00 5C 00 31 00 32 00 39 00 2E 00 32 00 32 00  |\.\.1.2.9...2.2.|
> >  00020: 37 00 2E 00 31 00 35 00 38 00 2E 00 38 00 00 00
> > |7...1.5.8...8...|
> >
> > Exception in thread "main" jcifs.smb.SmbException: No process is on the
> > other end of the pipe.
> >          at jcifs.smb.SmbTransport.checkStatus(SmbTransport.java:503)
> >         at jcifs.smb.SmbTransport.send(SmbTransport.java:580)
> >         at jcifs.smb.SmbSession.send(SmbSession.java :229)
> >         at jcifs.smb.SmbTree.send(SmbTree.java:102)
> >         at jcifs.smb.SmbFile.send(SmbFile.java:688)
> >         at jcifs.smb.TransactNamedPipeOutputStream.write(
> > TransactNamedPipeOutputStream.java :65)
> >         at jcifs.smb.RpcTransport.send(RpcTransport.java:107)
> >         at rpc.DefaultConnection.transmitFragment(DefaultConnection.java
> > :107)
> >         at rpc.DefaultConnection.transmit (DefaultConnection.java:57)
> >         at rpc.ConnectionOrientedEndpoint.send(
> > ConnectionOrientedEndpoint.java:140)
> >         at rpc.ConnectionOrientedEndpoint.call(
> > ConnectionOrientedEndpoint.java :86)
> >         at rpc.Stub.call(Stub.java:113)
> >          at TestSrvsvc.doRemoteTOD(TestSrvsvc.java:47)
> >         at TestAtsvc.atsvcScheduleJobAdd(TestAtsvc.java:21)
> >         at TestAtsvc.main(TestAtsvc.java:73)
>
>
> Login is successfull. UUID is correct, svchosts.exe is running on windows.
> still it's giving the aboeve error.
>
> I would appreciate if you could help me with this.
>
> Thanks,
> Varma
>

Reply | Threaded
Open this post in threaded view
|

Help regarding jarapac API

Pothuri Vijay Varma
Still I am having the same problem. Can some one help me with jarapac API.

Target machine is Windows XP SP2.


Hi,

I installed the Jarapac again, and tried with TestAtsvc.java and TestSvcctl.java, still it's giving the same error.

I downloaded the Jarapac0.3.8.zip. Then I build jars using "ant ncacn_np". Then I grind the idl's and compiled TestXxx.java files.

Then I triedto execute with command.

"java -classpath ../jarapac.jar:../ncacn_np.jar:../ntlm-security.jar:../lib/jcifs-1.1.2.jar:idl:. TestAtsvc <a href="http://129.227.153.58" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">129.227.153.58 example.properties"


00000: 55 13 C5 00 11 00 00 00 00 00 00 00 11 00 00 00  |U.Å.............|
00010: 5C 00 5C 00 31 00 32 00 39 00 2E 00 32 00 32 00  |\.\.1.2.9...2.2.|
00020: 37 00 2E 00 31 00 35 00 33 00 2E 00 35 00 38 00  |7...1.5.3...5.8.|
00030: 00 00                                            |..              |

Exception in thread "main" jcifs.smb.SmbException: No process is on the other end of the pipe.
        at jcifs.smb.SmbTransport.sendTransaction(SmbTransport.java:869)
        at jcifs.smb.SmbSession.sendTransaction(SmbSession.java:219)
        at jcifs.smb.SmbTree.sendTransaction(SmbTree.java:74)
        at jcifs.smb.SmbFile.sendTransaction(SmbFile.java:688)
        at jcifs.smb.TransactNamedPipeOutputStream.write(TransactNamedPipeOutputStream.java:65)
        at jcifs.smb.RpcTransport.send(RpcTransport.java:107)
        at rpc.DefaultConnection.transmitFragment(DefaultConnection.java:107)
        at rpc.DefaultConnection.transmit(DefaultConnection.java:57)
        at rpc.ConnectionOrientedEndpoint.send(ConnectionOrientedEndpoint.java:140)
        at rpc.ConnectionOrientedEndpoint.call(ConnectionOrientedEndpoint.java:86)
        at rpc.Stub.call(Stub.java:113)
        at TestSrvsvc.doRemoteTOD(TestSrvsvc.java:47)
        at TestAtsvc.atsvcScheduleJobAdd(TestAtsvc.java:21)
        at TestAtsvc.main(TestAtsvc.java:73)


Thanks,
Varma

Reply | Threaded
Open this post in threaded view
|

Re: Help regarding jarapac API

Michael B Allen-4
Is the AT service running?

On Mon, 9 Jan 2006 15:34:36 +0530
Varma P <[hidden email]> wrote:

> Still I am having the same problem. Can some one help me with jarapac API.
>
> Target machine is Windows XP SP2.
>
>
> Hi,
>
> I installed the Jarapac again, and tried with TestAtsvc.java and
> TestSvcctl.java, still it's giving the same error.
>
> I downloaded the Jarapac0.3.8.zip. Then I build jars using "ant ncacn_np".
> Then I grind the idl's and compiled TestXxx.java files.
>
> Then I triedto execute with command.
>
> "java -classpath ../jarapac.jar:../ncacn_np.jar:../ntlm-
> security.jar:../lib/jcifs-1.1.2.jar:idl:. TestAtsvc 129.227.153.58
> example.properties"
>
>
> 00000: 55 13 C5 00 11 00 00 00 00 00 00 00 11 00 00 00  |U.Å.............|
> 00010: 5C 00 5C 00 31 00 32 00 39 00 2E 00 32 00 32 00  |\.\.1.2.9...2.2.|
> 00020: 37 00 2E 00 31 00 35 00 33 00 2E 00 35 00 38 00  |7...1.5.3...5.8.|
> 00030: 00 00                                            |..              |
>
> Exception in thread "main" jcifs.smb.SmbException: No process is on the
> other end of the pipe.
>         at jcifs.smb.SmbTransport.sendTransaction(SmbTransport.java:869)
>         at jcifs.smb.SmbSession.sendTransaction(SmbSession.java:219)
>         at jcifs.smb.SmbTree.sendTransaction(SmbTree.java:74)
>         at jcifs.smb.SmbFile.sendTransaction(SmbFile.java:688)
>         at jcifs.smb.TransactNamedPipeOutputStream.write(
> TransactNamedPipeOutputStream.java:65)
>         at jcifs.smb.RpcTransport.send(RpcTransport.java:107)
>         at rpc.DefaultConnection.transmitFragment(DefaultConnection.java
> :107)
>         at rpc.DefaultConnection.transmit(DefaultConnection.java:57)
>         at rpc.ConnectionOrientedEndpoint.send(
> ConnectionOrientedEndpoint.java:140)
>         at rpc.ConnectionOrientedEndpoint.call(
> ConnectionOrientedEndpoint.java:86)
>         at rpc.Stub.call(Stub.java:113)
>         at TestSrvsvc.doRemoteTOD(TestSrvsvc.java:47)
>         at TestAtsvc.atsvcScheduleJobAdd(TestAtsvc.java:21)
>         at TestAtsvc.main(TestAtsvc.java:73)
>
>
> Thanks,
> Varma
>
Reply | Threaded
Open this post in threaded view
|

Re: Help regarding jarapac API

Pothuri Vijay Varma
yes it's running.

Task Scheduler is running. C:\WINDOWS\System32\svchost.exe -k netsvcs.

svchost.exe and services.exe both are running. I didn't see mstask.exe in windowsXP.

I also tried with rpcclient from SAMBA-TNG. It is working fine.

I am not able to do it using JARAPAC.


Thanks,
-varma

On 1/9/06, Michael B Allen <[hidden email]> wrote:
Is the AT service running?

On Mon, 9 Jan 2006 15:34:36 +0530
Varma P <[hidden email]> wrote:

> Still I am having the same problem. Can some one help me with jarapac API.
>
> Target machine is Windows XP SP2.
>
>
> Hi,
>
> I installed the Jarapac again, and tried with TestAtsvc.java and
> TestSvcctl.java, still it's giving the same error.
>

> I downloaded the Jarapac0.3.8.zip. Then I build jars using "ant ncacn_np".
> Then I grind the idl's and compiled TestXxx.java files.
>
> Then I triedto execute with command.
>
> "java -classpath ../jarapac.jar:../ncacn_np.jar:../ntlm-
> security.jar:../lib/jcifs-1.1.2.jar:idl:. TestAtsvc 129.227.153.58
> example.properties"
>
>
> 00000: 55 13 C5 00 11 00 00 00 00 00 00 00 11 00 00 00  |U.Å.............|
> 00010: 5C 00 5C 00 31 00 32 00 39 00 2E 00 32 00 32 00  |\.\.1.2.9...2.2.|
> 00020: 37 00 2E 00 31 00 35 00 33 00 2E 00 35 00 38 00  |7...1.5.3...5.8.|
> 00030: 00 00                                            |..              |
>
> Exception in thread "main" jcifs.smb.SmbException: No process is on the
> other end of the pipe.
>         at jcifs.smb.SmbTransport.sendTransaction (SmbTransport.java:869)
>         at jcifs.smb.SmbSession.sendTransaction(SmbSession.java:219)
>         at jcifs.smb.SmbTree.sendTransaction(SmbTree.java:74)
>         at jcifs.smb.SmbFile.sendTransaction (SmbFile.java:688)
>         at jcifs.smb.TransactNamedPipeOutputStream.write(
> TransactNamedPipeOutputStream.java:65)
>         at jcifs.smb.RpcTransport.send(RpcTransport.java:107)
>         at rpc.DefaultConnection.transmitFragment(DefaultConnection.java
> :107)
>         at rpc.DefaultConnection.transmit(DefaultConnection.java:57)
>         at rpc.ConnectionOrientedEndpoint.send(
> ConnectionOrientedEndpoint.java :140)
>         at rpc.ConnectionOrientedEndpoint.call(
> ConnectionOrientedEndpoint.java:86)
>         at rpc.Stub.call(Stub.java:113)
>         at TestSrvsvc.doRemoteTOD(TestSrvsvc.java:47)
>         at TestAtsvc.atsvcScheduleJobAdd(TestAtsvc.java:21)
>         at TestAtsvc.main(TestAtsvc.java:73)
>
>
> Thanks,
> Varma
>