Error invalid number of arguments for encryption

•What you are going to need is this tool http://www.psx-place.com/threads/ps2-classic-gui-v2-1-by-aldostools-adds-ps2-config-support.17182/ •Once you have it,extract it somewhere on your pc. •Next navigate to the folder exdata and there you will find a rap file. •Copy and paste it inside the...

•What you are going to need is this tool
http://www.psx-place.com/threads/ps2-classic-gui-v2-1-by-aldostools-adds-ps2-config-support.17182/

•Once you have it,extract it somewhere on your pc.

•Next navigate to the folder exdata and there you will find a rap file.

•Copy and paste it inside the rifgen_for_ps3xploit folder,then drag the rap file to the exe to create a rif file (before you do this make sure you have your act.dat and idps.hex file inside the folder)

•Once you have the rif file for the ps2 classics,inject it along with the act.dat and turn the han enabler on if you havent injected anything yet before.

You should be able to follow along now for the next part which is encrypting and turning your ps2 iso’s into pkg’s

«Before you go installing any old iso ps2 game,here is a compatability list you can check to see if the game you want to install will work «
http://www.psdevwiki.com/ps3/PS2_Classics_Emulator_Compatibility_List

•Start off by dragging your ps2 iso into the PS2Classics_GUI.exe,then press encrypt,if you get a pop up message click yes and save the file as ISO.BIN.ENC (make sure the file is named exactly that)

•Go to the make pkg tab on the top of the program and if you right click the ps2 classics icon you can press set image and change the icon of the game when it shows up on the xmb.Just google search icons for the game and you should find somthing that looks nice.

•Once your done setting the ps2 icon up,press make pkg and navigate to your ISO.BIN.ENC file.If you get a CONFIG search pop up hit cancel (unless the config matches your games code and has bug fixes which are listed in the compatibility list.)

•Once its finished you should now have a pkg file,all you need to do is drag it to your rif generator (like we did with the rap file)and you will have a sighned version that can be installed through either your usb stick or through pkg linker on your webserver if the file is over 4gb.

•Once you install the game using the package manager it should have your custom icon set and the game should run with han on if you injected the rif file earlier in the tutorial.

Thats pretty much all there is to it

Last edited by ,
Apr 1, 2018

  • #21

Do I need to install a placeholder? Tried without one and I got a start operation error. Also using a rif installer PKG. Do I need to install it manually instead?

Ive done it without the placeholder without any issues but its up to you if you think it will work.Installing the rif pkg will work just fine and that should fix your error.

tomman321

  • #22

Can’t get Half-Life to boot up. I’m still getting the same error… :/

  • #23

Can’t get Half-Life to boot up. I’m still getting the same error… :/

You are using a secondary psn account right? Did you inject a modified act.dat atleast once?

tomman321

  • #24

You are using a secondary psn account right? Did you inject a modified act.dat atleast once?

a while back, yeah

——————— MERGED —————————

  • #25

a while back, yeah

——————— MERGED —————————

Ok then.It should work if you injected the sighned_act.dat once.Try installing the rif manually and see if there is still a issue.Make sure han mode is on when launching a injected game.

Also in the terminal when your fake sighning your pkgs,if it asks you if you are converting a psmini or psx game,make sure you press no.

Last edited by ,
Apr 12, 2018

tomman321

  • #26

Ok then.It should work if you injected the sighned_act.dat once.Try installing the rif manually and see if there is still a issue.Make sure han mode is on when launching a injected game.

Also in the terminal when your fake sighning your pkgs,if it asks you if you are converting a psmini or psx game,make sure you press no.

I’ll try that in a bit, thanks.

——————— MERGED —————————

I’ll try that in a bit, thanks.

Is the rif a one time installation for all PS2 injected games?

Agent_Kallus

  • #27

It’d be a good time to mention that after playing a PS2 game, you MUST reactivate HAN afterwards, every time you quit the game, because the system reboots, which deactivates HAN.

Ryccardo

  • #28

Is the rif a one time installation for all PS2 injected games?

The purpose of a klic/rif/rap is to provide a decryption key for some content; if you only use one contentID and Klicensee while converting iso to iso.bin.edat, everything will have the same key… in particular, if you leave the defaults, the key will be the same as the one used by the famous «PS2 Classics Placeholder» forwarder, the rap for which happens to be included with PS2Classics GUI

(klicensee is the actual titlekey, rap is the klic encrypted with a common key, rif is the klic encrypted with your act.dat’s key)

relauby

  • #29

Is there somewhere with a collection of pre-made PS2 Classics? I tried Googling around but all I could find were templates. I’m fine making my own, I just thought I would ask before I went through the headache of doing it myself.

  • #30

Every time I try to use this I get the error

«
0 [main] ps2classic 10900 find_fast_cwd: WARNING: Couldn’t compute FAST_CWD pointer. Please report this problem to
the public mailing list [email protected]
Error: invalid number of arguments for encryption
«

Any suggestion?

  • #31

Every time I try to use this I get the error

«
0 [main] ps2classic 10900 find_fast_cwd: WARNING: Couldn’t compute FAST_CWD pointer. Please report this problem to
the public mailing list [email protected]
Error: invalid number of arguments for encryption
«

Any suggestion?

Where you able to encrypt the iso and turn it into a pkg? I dont know anything about an error like that so what exactly is the problem?

Last edited by ,
Apr 22, 2018

  • #32

After many many hours of just poking the program.. found out the ISO has to have -NO- spaces in the name. So say Eternal Mana.ISO needs to be EternalMana.iso for it to work.

  • #33

After many many hours of just poking the program.. found out the ISO has to have -NO- spaces in the name. So say Eternal Mana.ISO needs to be EternalMana.iso for it to work.

I see,im glad you figured it out.

Necron

  • #34

I’ll try that in a bit, thanks.

——————— MERGED —————————

Is the rif a one time installation for all PS2 injected games?

Hey, sorry for this delayed question, but I hope it helps.

CD games are usually problematic when it comes to soft modding, so I might suggest converting it to a dvd. Also, you could sign the the ISO.BIN.ENC instead of the pkg. If you do, don’t sign the pkg after and when you enable HAN, you have to enable debug pkgs. I had this issue with FF12 (would get to around 16% and error) and signing the ISO.BIN.ENC helped.

relauby

  • #35

Does anyone know how to install multi-disc PS2 games to the XMB? Specifically, I’d like to get the Xenosaga games installed.

Last edited by relauby,
May 1, 2018

  • #36

I wanna comment this to help anyone in the future that might get the «invalid number of arguments for encryption» error. If you already have removed spaces from the ISO file and you still get this error your hard drive being named something that has a space in it can cause this issue too so make sure you do this on a drive that is not named.

Androu1

  • #37

How can I make PKGs for multi-disc games like Onimusha: Dawn of Dreams?

  • M4x1mumReZ

    @

    M4x1mumReZ:

    @AncientBoi, Bet we’ve all seen your dick pics without knowing it’s actually you

    +1

    23 minutes ago

  • 23 minutes ago

  • Veho

    @

    Veho:

    Vintage porn.

    +1

    22 minutes ago

  • Veho

    @

    Veho:

    Ancientdong.

    +1

    22 minutes ago

  • AncientBoi

    @

    AncientBoi:

    :O STOP PEEKING ! :angry:

    +1

    22 minutes ago

  • 22 minutes ago

  • AncientBoi

    @

    AncientBoi:

    Vintage porn got me :rofl2: real good

    19 minutes ago

  • ZeroT21

    @

    ZeroT21:

    I’m pretty sure a good percentage of ’em are traps

    +1

    17 minutes ago

  • 16 minutes ago

  • M4x1mumReZ

    @

    M4x1mumReZ:

    Hand them over

    16 minutes ago

  • M4x1mumReZ

    @

    M4x1mumReZ:

    I’ve also got plenty when you need ’em

    16 minutes ago

  • 14 minutes ago

  • ZeroT21

    @

    ZeroT21:

    u dun say ,me am afraid to get scarred for life

    :glare:

    +1

    13 minutes ago

  • ZeroT21

    @

    ZeroT21:

    even if I have more lives than a cat

    +1

    13 minutes ago

  • 12 minutes ago

  • M4x1mumReZ

    @

    M4x1mumReZ:

    @ZeroT21, You’ve got thousands of lives, I’m sure you’ll deal with them pretty well

    11 minutes ago

  • 11 minutes ago

  • ZeroT21

    @

    ZeroT21:

    nobody can survive watching all ’em twisted uremum nudes much less those filled with traps… probably
    :unsure:

    +1

    9 minutes ago

  • M4x1mumReZ

    @

    M4x1mumReZ:

    @ZeroT21, Is Kenny’s mum a trap? :3

    5 minutes ago

  • ZeroT21

    @

    ZeroT21:

    dunno, but I wouldn’t even dare placing a safe bet

    +1

    4 minutes ago

  • 4 minutes ago

  • sombrerosonic

    @

    sombrerosonic:

    Cartman mom is.

    4 minutes ago

  • M4x1mumReZ

    @

    M4x1mumReZ:

    Guess there’s one way to find out :evil::shy:

    4 minutes ago

  • 3 minutes ago

  • ZeroT21

    @

    ZeroT21:

    you know it’s bad when you feel your heartbeat through only your weewee than in your chest

    2 minutes ago

    ZeroT21

    @

    ZeroT21:

    you know it’s bad when you feel your heartbeat through only your weewee than in your chest

    2 minutes ago

    у меня есть сертификат EV SSL. Я следую учебникам о том, как использовать мой сертификат с NGINX на Ubuntu

    когда я пытаюсь перезапустить свой nginx, я получаю:

    **invalid number of arguments in "ssl_certificate_key" directive in   /etc/nginx/sites-enabled/default
    

    что я сделал до сих пор:

    sudo nano /etc/nginx/sites-enabled/default
    
    
    upstream app {
    # Path to Unicorn SOCK file, as defined previously
    server unix:/home/zhall/zoulfia/shared/sockets/unicorn.sock fail_timeout=0;
    }
    
    server {
    listen 80;
    server_name moneytree.space www.moneytree.space " " 178.62.19.65;
    rewrite ^/(.*) https://moneytree.space/ permanent;
    }
    
    # HTTPS server
    
    server {
    listen 443;
    server_name moneytree.space www.moneytree.space " " 178.62.19.65;
    root /home/zhall/zoulfia/public;
    
    
    ssl on;
    ssl_certificate /home/zhall/moneytree.space.chained.crt;
    
    **ssl_certificate_key /home/zhall/ moneytree.space.key**
    
    ssl_session_timeout 10m;
    
    ssl_protocols SSLv3 TLSv1 TLSv1.1 TLSv1.2;
    ssl_ciphers "HIGH:!aNULL:!MD5 or HIGH:!aNULL:!MD5:!3DES";
    ssl_prefer_server_ciphers on;
    
    location / {
    try_files $uri $uri/ =404;
    }
    }
    

    когда я перезапускаю nginx с — — —

    sudo service nginx restart
    

    в моем файле — — — — журнал

    sudo nano /var/log/nginx/error.log, I get:
    
    **invalid number of arguments in "ssl_certificate_key" directive in    /etc/nginx/sites-enabled/default
    

    все это для меня ново, поэтому мне нужна ваша помощь, чтобы решить это. Что я делаю неправильно и, самое главное, как это исправить ошибка?

    спасибо,
    Zoulfia

    2 ответов


    похоже, что вы можете пропустить точку с запятой в конце ssl_certificate_key линии.


    У вас есть пространство между «/home/zhall/» и «moneytree.пространство.ключ » и nginx видят 2 аргумента вместо одного


    Expanding on the working answer from @mikhail-prigorodov:

    The situation described by the OP arises when using the Nginx Docker container with Docker Compose. In the documentation, it reads:

    Out-of-the-box, nginx doesn’t support environment variables inside most configuration blocks. But this image has a function, which will extract environment variables before nginx starts.

    So, if you are using environment variables in your docker-compose.yml as part of a 12-Factor App design, you have to figure out how to get them into your Nginx config file properly.

    The solution in the Nginx Docker documentation is to run envsubst on a template configuration file and send the output to the Nginx config file. The Dockerfile syntax, which is mentioned in this GitHub issue is:

    CMD envsubst < /etc/nginx/templates/default.conf.template > /etc/nginx/conf.d/default.conf && exec nginx -g 'daemon off;'
    

    But that solution runs into a problem if you have Nginx-defined variables AND environment variable placeholders in your configuration template. In the directory where I’m building my Nginx container (where my Dockerfile is), I have a templates directory with a file called default.conf.template, as directed in the documentation. The file contains Nginx variables and environment variables. For example:

    proxy_set_header Host               $host;
    proxy_set_header X-Real-IP          $remote_addr;
    
    location /static {
        alias /usr/share/nginx/html/${STATIC_DIR};
    }
    

    The problem (I think) is that envsubst is looking for the «$» character that marks the start of the environment variables. In any case, you’ll find that after running envsubst successfully, each line in your new Nginx config file that has a Nginx-defined variable (leading «$») in the template gives an error when you try and start Nginx.

    To solve this problem, use the syntax provided by @mikhail-prigorodov. Applied to my example:

    CMD envsubst '$STATIC_DIR' < /etc/nginx/templates/default.conf.template > /etc/nginx/conf.d/default.conf && exec nginx -g 'daemon off;'
    

    This was the solution that worked for me after hours of frustration.

    @fevangelou I think there’s been some misunderstanding if I’m reading this regex correctly, it’s searching for an <IfModule ssl_module> block, inside every <VirtualHost example.com:443> block, but that isn’t how my certs are stored at all, I’ll just go ahead and paste a sanitized example of a live domain for you to better understand it, but I think this is definitely something with how EA4 or Apache 2.4 generates the httpd.conf, maybe even how AutoSSL interacts with it, I’m not sure, but all I know is that when I debug the https_vhosts file with print_r’s and echos, it returns 0 results even though it can read/parse the file.

    <VirtualHost 1.2.3.4:8443>
        ServerName example.com
        ServerAlias mail.example.com www.example.com
        DocumentRoot /home/user/public_html
    ...
        SSLEngine on
        
        SSLCertificateFile /var/cpanel/ssl/installed/certs/example_com.crt
        SSLCertificateKeyFile /var/cpanel/ssl/installed/keys/example_com.key
        SSLCACertificateFile /var/cpanel/ssl/installed/cabundles/cPanel_Inc__example.cabundle
    ...
    </VirtualHost>
    

    any idea why the ssl_module block isn’t in there on any of them? I haven’t changed anything.

    edit1: apparently its due to cpanels apache templates (/var/cpanel/templates/apache2_4), gonna see if I can update those.
    edit2: I’ve deleted vhost.local and ssl_vhost.local files, and now its using the default ones which work correctly, I don’t understand how this happened and I’ve never edited or touched those files.

    I’m building a simple fund raising smart contract and having problems deploying this through Remix. I’m wanting to set the «goal» and «minimum contribution» values (in wei) during the contract deployment and so have the following code:

    pragma solidity ^0.5.0;
    
    contract FundRaiser {
      // Initial storage variables
      uint256 public goal;
      uint256 public minimumContribution;
      address public owner;
    
      constructor(uint256 _goal, uint256 _minimumContribution) public {
        goal = _goal;
        minimumContribution = _minimumContribution;
        owner = msg.sender;
      }
    }
    

    This compiles fine in Remix and then I try to deploy and have the following prompt:
    enter image description here

    However, if I enter two large values here (1000000000000000000, 10000000000000000 — which equates to a goal of 1ETH with a minimum contribution of 0.01ETH) then I get the error:

    creation of FundRaiser errored: Error encoding arguments: Error: invalid number value (arg="", coderType="uint256", value=10000000000000000, version=4.0.32)
    

    If I then click the drop-down arrow next to the Deploy option it then shows the following:
    enter image description here

    Strangely Remix seems to have converted the first value into a string (surrounded by quotes) but not the second value. If I now update the values so that either both are strings or both are numbers and click «transact» then it deploys fine.

    Is this an error on my part in using Remix or a bug??

    ORA-00909: invalid number of arguments error occurs when there is a discrepancy between the number of arguments expected and the number of arguments provided when executing an Oracle function in a SQL query.In an Oracle function, if no arguments are given or if fewer than the required number of arguments are passed, the Oracle function will fail to execute. If the required number of arguments are not provided in the oracle function, an error message ORA-00909: invalid number of arguments is shown.

    The Oracle function accepts a list of arguments as input, executes the function logic, and outputs a value. If an incorrect number of parameters is provided while invoking an Oracle function, the function logic cannot be executed. If no parameters or a less number of arguments are used, Oracle will display an error message ORA-00909: invalid number of arguments instead of executing the function.

    If the number of argument values expected and the number of argument values passed in an oracle function do not match, the oracle function cannot execute without the argument value. The discrepancy is caused by a missed single quotes in the arguments, a line break between arguments, or some of the argument values being missed in the Oracle function. The error message ORA-00909: invalid number of arguments is displayed.

    When the ORA-00909 error occurs

    An error message is displayed if an Oracle function that takes one or more parameters is used in a SQL Statement and no or few arguments are used to invoke the function. Create a SQL statement that invokes an Oracle function. Without any arguments, use the Oracle function. Oracle will provide an error message indicating that the incorrect number of arguments were used in an Oracle function.

    Problem

    select sum() from emp;

    Error

    ORA-00909: invalid number of arguments
    00909. 00000 -  "invalid number of arguments"
    *Cause:    
    *Action:
    Error at Line: 40 Column: 8

    Root Cause

    Oracle functions can be executed with or without arguments. The Oracle function is defined by the number of arguments that must be passed to it when it is created. The number of arguments should be used in the SQL statements that call the Oracle function. Oracle functions could not be executed in the presence of the required number of arguments. The oracle error message will be displayed if any SQL Statement provides no arguments or the incorrect number of arguments in the oracle function.

    Solution 1

    Oracle functions can be defined either with or without parameters. The argument values are not required to be given to the function that does not require a value argument. If an Oracle function has one or more arguments, the argument values should be sent to the function when it is executed in a SQL query. If the number of arguments values given to the function is lesser than the expected number of arguments, an error message ORA-00909: invalid number of arguments will be shown.

    Problem

    select sum() from emp;
    
    ORA-00909: invalid number of arguments
    00909. 00000 -  "invalid number of arguments"

    Solution

    select sum(salary) from emp;

    Solution 2

    The number of necessary argument values in the Oracle nvl function is two in the example below. In the nvl() function, one of the parameter values is given. The function was not provided with an argument value for the other parameter. The number of arguments passed to the function and the number of parameters in the oracle function should both be the same.

    When you execute the Oracle function in the sql query, the number of arguments, the datatype of the arguments, and the order of the arguments should all be the same. If there is a discrepancy in the list, an error message ORA-00909: invalid number of arguments will be displayed.

    Problem

    select nvl(name) from emp;
    
    ORA-00909: invalid number of arguments
    00909. 00000 -  "invalid number of arguments"

    Solution

    select nvl(name,'NA') from emp;

    Понравилась статья? Поделить с друзьями:
  • Error invalid magic number ubuntu
  • Error invalid magic number error you need to load the kernel first
  • Error invalid magic number error please load the kernel first
  • Error invalid login при обновлении joomla 3
  • Error invalid license environment application closing