Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid column name 'sysadmin' #6

Closed
starley00 opened this issue Dec 31, 2023 · 1 comment
Closed

Invalid column name 'sysadmin' #6

starley00 opened this issue Dec 31, 2023 · 1 comment

Comments

@starley00
Copy link

Invalid column name 'sysadmin'
1
2

@Tw1sm
Copy link
Owner

Tw1sm commented Dec 31, 2023

That is expected behavior - you need to use double quotes around your query if you are using single quotes inside it "select is_srvrolemember('sysadmin')"

poetry run pysqlrecon --quiet --dc-ip 192.168.0.235 -d redania.local -u user -p Password1 -t 192.168.0.235 query --query "select is_srvrolemember('sysadmin')"
[13:08:27] INFO     Connecting to 192.168.0.235:1433
[13:08:27] INFO     Executing custom query on 192.168.0.235

┏━━━┓
┃   ┃
┡━━━┩
│ 0 │
└───┘

@Tw1sm Tw1sm closed this as completed Dec 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants